Sympy MCP Server

Sympy-MCP is a Model Context Protocol server for allowing LLMs to autonomously perform symbolic mathematics and computer algebra. It exposes numerous

Local serverstdioPython

What is the Sympy MCP MCP server?

If you want an AI assistant working directly with Sympy MCP, the sympy mcp mcp server is the bridge. Sympy-MCP is a Model Context Protocol server for allowing LLMs to autonomously perform symbolic mathematics and computer algebra. It exposes numerous tools from SymPy's core functionality to MCP clients for manipulating mathematical expressions and equations.

What Sympy MCP does

Sympy-MCP is a Model Context Protocol server for allowing LLMs to autonomously perform symbolic mathematics and computer algebra. It exposes numerous tools from SymPy's core functionality to MCP clients for manipulating mathematical expressions and equations.

Tools it exposes

Once connected, the assistant can call these 14 tools directly:

  • Homebrew — brew install uv
  • Curl — curl -LsSf https://astral.sh/uv/install.sh | sh
  • Simplifier — simplify_expression
  • Substitution — substitute_expression
  • Integration — integrate_expression
  • Differentiation — differentiate_expression
  • Coordinates — create_coordinate_system
  • Divergence — calculate_divergence
  • Gradient — calculate_gradient
  • Determinant — matrix_determinant
  • Eigenvalues — matrix_eigenvalues
  • Eigenvectors — matrix_eigenvectors
  • Property — Value
  • commutative — true

Installing the sympy mcp mcp server

The server is distributed via a container image as ghcr.io/sdiehl/sympy-mcp, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Sympy MCP sits in that group, and the shape of its toolset — Homebrew, Curl, Simplifier among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • With 14 tools exposed, expect a noticeable bump in prompt size — disable it in projects that never use Sympy MCP.
  • Maintained by sdiehl, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the sympy mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
Homebrewbrew install uv
Curlcurl -LsSf https://astral.sh/uv/install.sh | sh
Simplifiersimplify_expression
Substitutionsubstitute_expression
Integrationintegrate_expression
Differentiationdifferentiate_expression
Coordinatescreate_coordinate_system
Divergencecalculate_divergence
Gradientcalculate_gradient
Determinantmatrix_determinant
Eigenvaluesmatrix_eigenvalues
Eigenvectorsmatrix_eigenvectors
PropertyValue
commutativetrue

How to install the Sympy MCP MCP server

{
  "mcpServers": {
    "sympy-mcp": {
      "command": "/opt/homebrew/bin/uv",
      "args": [
        "run",
        "--with",
        "einsteinpy",
        "--with",
        "mcp[cli]",
        "--with",
        "pydantic",
        "--with",
        "sympy",
        "mcp",
        "run",
        "/ABSOLUTE_PATH_TO_SYMPY_MCP/server.py"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Sympy MCP to Homebrew.
  • Use Sympy MCP to Curl.
  • Use Sympy MCP to Simplifier.

Frequently asked questions

It connects Sympy MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Homebrew, Curl, Simplifier, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Sympy MCP directly.