Mcp Sympy

io.github.daedalusPublished by GitHub account daedalusv0.1.0Updated Oct 25, 2026

MCP server that exposes SymPy's symbolic mathematics functionality

VerifiedSTDIODesktop onlyAI & ML

Overview

AI-generated overview

A local MCP server that exposes SymPy's symbolic mathematics so an assistant can simplify, solve, differentiate, integrate and compute with exact expressions.

What you can do
Simplify, expand and factor symbolic expressions, and define symbols and convert strings to SymPy expressions via sympify. Compute calculus: derivatives, integrals, limits and series. Solve equations and systems, including numeric and differential solving. Work with matrices: operations, inverse, determinant and eigenvalues. Use trigonometry, special functions, number theory and sets, and render results as LaTeX, MathML or Python code.
When to use it
Useful when an assistant needs exact symbolic math rather than floating-point approximations: algebra simplification, equation solving, calculus, matrix work, number theory or producing LaTeX output for documents.
Requirements
Runs as a local process on the user's machine, installed from PyPI with pip (mcp-sympy) and started with the mcp-sympy command. No authentication, environment variables or headers are declared. Desktop only; not web-executable.
Before you install
No credentials, payments or data-writing actions are shown. Computation runs locally, so results depend on the SymPy library's correctness; verify important symbolic results.

Installation

In SourceWeft

  1. Open Mcp Sympy in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

mcp-sympy

MCP server that exposes SymPy's symbolic mathematics functionality

[PyPI] [Python] [Coverage] [Ruff]

Install

bash
pip install mcp-sympy

MCP Server

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

Usage

As MCP Server

Configure in your MCP client:

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

Python API

python
from mcp_sympy import tools
# Simplify expressionsresult = tools.sympy_simplify("sin(x)**2 + cos(x)**2")print(result)  # "1"
# Solve equationsresult = tools.sympy_solve("x**2 - 4", "x")print(result)  # "[2, -2]"
# Differentiateresult = tools.sympy_diff("x**2", "x")print(result)  # "2*x"
# Integrateresult = tools.sympy_integrate("x**2", "x")print(result)  # "x**3/3"
# Create matricesresult = tools.sympy_matrix("1,2; 3,4")print(result)  # "Matrix([[1, 2], [3, 4]])"
# Number theoryresult = 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

bash
git clone https://github.com/daedalus/mcp-sympy.gitcd mcp-sympypip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

License

MIT License - see LICENSE file.

Source: README.md at commit 83530c0

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts