Back to Browse

Sympy MCP Server

Developer ToolsUse Caution4.5MCP RegistryLocal
Free

Server data from the Official MCP Registry

MCP server that exposes SymPy's symbolic mathematics functionality

About

MCP server that exposes SymPy's symbolic mathematics functionality

Security Report

4.5
Use Caution4.5High Risk

Valid MCP server (0 strong, 3 medium validity signals). 5 known CVEs in dependencies (1 critical, 3 high severity) Package registry verified. Imported from the Official MCP Registry.

3 files analyzed · 6 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-daedalus-mcp-sympy": {
      "args": [
        "mcp-sympy"
      ],
      "command": "uvx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

mcp-sympy

MCP server that exposes SymPy's symbolic mathematics functionality

PyPI Python Coverage Ruff

Install

pip install mcp-sympy

MCP Server

mcp-name: io.github.daedalus/mcp-sympy

Usage

As MCP Server

Configure in your MCP client:

{
  "mcpServers": {
    "mcp-sympy": {
      "command": "mcp-sympy",
      "env": {}
    }
  }
}

Python API

from mcp_sympy import tools

# Simplify expressions
result = tools.sympy_simplify("sin(x)**2 + cos(x)**2")
print(result)  # "1"

# Solve equations
result = tools.sympy_solve("x**2 - 4", "x")
print(result)  # "[2, -2]"

# Differentiate
result = tools.sympy_diff("x**2", "x")
print(result)  # "2*x"

# Integrate
result = tools.sympy_integrate("x**2", "x")
print(result)  # "x**3/3"

# Create matrices
result = tools.sympy_matrix("1,2; 3,4")
print(result)  # "Matrix([[1, 2], [3, 4]])"

# Number theory
result = tools.sympy_isprime("7")
print(result)  # "True"

Available Tools

The MCP server exposes comprehensive SymPy functionality including:

  • Symbolic Expressions: symbols, sympify, simplify, expand, factor
  • Calculus: diff, integrate, limit, series, Derivative, Integral
  • Solving: solve, solveset, nsolve, diophantine, dsolve
  • Matrices: Matrix operations, inverse, determinant, eigenvalues
  • Trigonometry: sin, cos, tan, and their inverses
  • Special Functions: gamma, zeta, erf, fibonacci, etc.
  • Number Theory: isprime, prime, gcd, lcm, totient
  • Sets: FiniteSet, Interval, Union, Intersection
  • Logic: And, Or, Not, Xor
  • Printing: LaTeX, MathML, Python code

Development

git clone https://github.com/daedalus/mcp-sympy.git
cd mcp-sympy
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

License

MIT License - see LICENSE file.

Reviews

No reviews yet

Be the first to review this server!

Sympy MCP Server - MCP server that exposes SymPy's symbolic mathematics | MCP Marketplace