MCP Calculate Server provides mathematical computation capabilities through a Python-based server that leverages the SymPy library for symbolic mathematics. Developed by 611711Dark, this implementation enables AI assistants to perform complex calculations, equation solving, and symbolic manipulation without needing direct access to mathematical libraries. The server requires Python 3.11 or higher and depends on both the MCP framework and SymPy, making it ideal for use cases requiring advanced mathematical operations within AI assistant conversations.
No reviews yet. Be the first to review!
Sign in to join the conversation
Call this tool by passing a mathematical expression string. It supports a restricted set of SymPy expressions such as arithmetic operations, algebraic operations (expand, factor, simplify), calculus (diff, integrate, limit), and matrix operations (det, inv, eigenvals, eigenvects).
Expand a mathematical expression. Example: expand((x + 1)**2) results in x² + 2x + 1.
Factor a mathematical expression. Example: factor(x**2 - 2*x - 15) results in (x - 5)(x + 3).
Simplify a mathematical expression.
Differentiate a function with respect to a variable. Example: diff(sin(x), x) results in cos(x).
Integrate a function. Supports definite and indefinite integration. Example: integrate(exp(x), (x, 0, 1)) results in E - 1.
Calculate the limit of a function as a variable approaches a value. Example: limit(tan(x)/x, x, 0) results in 1.
Solve algebraic equations or systems of equations. Example: solve(x**2 - 4, x) results in [-2, 2].
Calculate the inverse of a matrix. Example: Matrix([[1, 2], [3, 4]]).inv() results in [[-2, 1], [3/2, -1/2]].
Calculate the eigenvalues of a matrix. Example: Matrix([[1, 2, 3], [4, 5, 6]]).eigenvals() results in eigenvalue dictionary.
Calculate the sum of a series. Example: Sum(k, (k, 1, 10)).doit() results in 55.
Compute the series expansion of a function. Example: series(cos(x), x, 0, 4) results in 1 - x²/2 + O(x⁴).