Symbolic Algebra MCP Server is an open-source MCP server that connects large language models to the SymPy computer algebra library and EinsteinPy. Developed for researchers, engineers, students, and mathematicians, it allows AI agents to perform rigorous symbolic mathematics and computer algebra calculations without hallucinating mathematical steps, constants, or algebraic permutations. By offloading computational tasks to a dedicated symbolic kernel, the server enables connected clients to accurately parse and manipulate expressions, introduce typed mathematical variables with explicit assumptions, and render exact LaTeX outputs. The server supports a wide array of mathematical domains, including algebraic equation solving, ordinary and partial differential equation solving, and linear algebra routines like matrix inverses and eigensystem calculations. It also handles multidimensional vector calculus such as curl, divergence, and gradient computations, physical unit conversions, and advanced tensor calculus operations for general relativity metrics like Schwarzschild, Kerr, and Minkowski spacetimes.
Category: Data & Analytics
Tags: algebra, mathematics, python, symbolic-computation, sympy
Visit Symbolic Algebra MCP Server
uv is installed on your system via Homebrew (brew install uv) or curl (curl -LsSf https://astral.sh/uv/install.sh | sh). 2. Clone the repository and install dependencies: shell git clone https://github.com/sdiehl/sympy-mcp.git cd sympy-mcp uv sync 3. If you require general relativity calculations, run uv sync --group relativity. 4. Install the server to Claude Desktop automatically by running: shell uv run mcp install server.py 5. Alternatively, manually configure Claude Desktop, Cursor, or VS Code by adding the server configuration pointing to your absolute path of server.py using uv with arguments --with einsteinpy --with mcp[cli] --with pydantic --with sympy mcp run /ABSOLUTE_PATH_TO_SYMPY_MCP/server.py.Part of MCP Servers
Symbolic Algebra MCP Server is a Model Context Protocol tool that exposes SymPy's computer algebra capabilities to AI assistants. It allows language models to delegate symbolic operations, solving equations, differentiation, integration, and matrix computations to an exact mathematical engine instead of computing approximations.
You can install it using uv by cloning the repository and running uv sync. You can register it into Claude Desktop automatically using the uv run mcp install server.py command, or configure it manually as an executable subprocess in your client configuration file.
The server works with Claude Desktop, Cursor, Visual Studio Code via agent mode, Cline using the local HTTP endpoint, and 5ire. It supports both local subprocess execution and streamable HTTP network transport.
Yes, Symbolic Algebra MCP Server is open source and hosted on GitHub under the repository sdiehl/sympy-mcp.
Yes, the server supports general relativity and tensor calculus by integrating EinsteinPy. By installing the optional relativity dependency group, it can calculate Ricci, Einstein, and Weyl tensors from predefined or custom spacetime metrics.