Mathematical Calculation
STDIOA mathematical calculation service based on MCP protocol and SymPy library.
A mathematical calculation service based on MCP protocol and SymPy library.
A mathematical calculation service based on MCP protocol and SymPy library, providing powerful symbolic computation capabilities.
# Basic operations "2 + 3*5" → 17 # Algebraic operations "expand((x + 1)**2)" → x² + 2x + 1 "factor(x**2 - 2*x - 15)" → (x - 5)(x + 3) # Calculus "diff(sin(x), x)" → cos(x) "integrate(exp(x), (x, 0, 1))" → E - 1 "limit(tan(x)/x, x, 0)" → 1 # Equation solving "solve(x**2 - 4, x)" → [-2, 2] "solve([x**2 + y**2 - 1, x + y - 1], [x, y])" → [(0, 1), (1, 0)] # Matrix operations "Matrix([[1, 2], [3, 4]]).inv()" → [[-2, 1], [3/2, -1/2]] "Matrix([[1, 2, 3], [4, 5, 6]]).eigenvals()" → {9/2 - sqrt(33)/2: 1, 9/2 + sqrt(33)/2: 1}
To install Calculate Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @611711Dark/mcp_sympy_calculate_server --client claude
Clone repository:
git clone https://github.com/611711Dark/mcp-calculate-server.git cd mcp-calculate-server
Create virtual environment and install dependencies:
uv venv source .venv/bin/activate uv pip install -e .
Configuration:
"calculate_expression1": { "isActive": false, "command": "uv", "args": [ "run", "--directory", "/path/to/mcp_calculate_server", "server.py" ], }
Call calculate_expression
tool via MCP protocol by passing mathematical expression string, returns computation result.
This project is licensed under MIT License. See LICENSE file.