MCP server · Audited from source
SymPy MCP server
by sdiehl/sympy-mcpApache-2.0 licenceAudited 7 Oct 2026 · source 94c8d79b8512
Is it safe? With care — CAUTION, grade B (89/100). It exposes 32 tools: 26 read, 5 write and 1 destructive. The audit recorded 6 findings (0 critical, 0 high, 4 medium, 0 low). Maintainer's description: A MCP server for symbolic manipulation of mathematical expressions
Cite
Cite this page
ModelsAtlas. “SymPy MCP server (sdiehl/sympy-mcp)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/sdiehl/sympy
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
6 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared2 observations
- NetworkDeclared4 observations
- ShellNone observedNothing seen in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 1 finding |
L1 Static source | Secrets, path traversal, supply chain | WARN 2 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | WARN 2 findings |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
sdiehlUser accountAccount type recorded when we read the repository. - PackagePublished on PyPI
sympy-mcp, no version recorded - LicenceApache-2.0From the repository, as read at the audited commit.
- Last push2 days agoActivity of the repository when we read it.
- Source commit read94c8d79b8512The audit covers exactly this commit, read on 7 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory32 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (6)
Sorted by severity
MEDIUMFilesystem / pathfs.system_paths · Dockerfile:15
ENV PATH="/root/.local/bin/:$PATH"
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.raw_ip · server.py:97
url = f"http://127.0.0.1:{mcp_port}/mcp"- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
reset_state
- Why
- 1 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
MEDIUMAuth / authzmcp.remote_no_auth
streamable-http
- Why
- a network transport with no auth environment variable found
- Fix
- require a token
INFOInventory / provenanceinv.oversize · .github/logo.png
.github/logo.png
- Why
- 1217866 bytes not read
- Fix
- —
INFOSupply chainprompt.pipe_to_shell · README.md:30
- **Curl** : `curl -LsSf https://astral.sh/uv/install.sh | sh`
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
32 declared in source · 1 destructive
1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
reset_state | destructive | Resets the state of the SymPy MCP server. |
create_coordinate_system | write | Creates a 3D coordinate system for vector calculus operations. |
create_custom_metric | write | Creates a custom metric tensor from provided components and symbols. |
create_matrix | write | Creates a SymPy matrix from the provided data. |
create_predefined_metric | write | Creates a predefined spacetime metric from einsteinpy.symbolic.predefined. |
create_vector_field | write | Creates a vector field in the specified coordinate system. |
calculate_curl | read | Calculates the curl of a vector field using SymPy |
calculate_divergence | read | Calculates the divergence of a vector field using SymPy |
calculate_gradient | read | Calculates the gradient of a scalar field using SymPy |
calculate_tensor | read | Calculates a tensor from a metric using einsteinpy.symbolic. |
convert_to_units | read | Converts a quantity to the given target units using sympy.physics.units.convert_to. |
differentiate_expression | read | Differentiates an expression with respect to a variable using SymPy |
dsolve_ode | read | Solves an ordinary differential equation using SymPy |
integrate_expression | read | Integrates an expression with respect to a variable using SymPy |
intro | read | Introduces a sympy variable with specified assumptions and stores it. |
intro_many | read | Introduces multiple sympy variables with specified assumptions and stores them. |
introduce_expression | read | Parses a sympy expression string using available local variables and stores it. Assigns it to either a temporary name (expr_0, expr_1, etc.) or a user-specified global name. |
introduce_function | read | Introduces a SymPy function variable and stores it. |
matrix_determinant | read | Calculates the determinant of a matrix using SymPy |
matrix_eigenvalues | read | Calculates the eigenvalues of a matrix using SymPy |
matrix_eigenvectors | read | Calculates the eigenvectors of a matrix using SymPy |
matrix_inverse | read | Calculates the inverse of a matrix using SymPy |
pdsolve_pde | read | Solves a partial differential equation using SymPy |
print_latex_expression | read | Prints a stored expression in LaTeX format, along with variable assumptions. |
print_latex_tensor | read | Prints a stored tensor expression in LaTeX format. |
quantity_simplify_units | read | Simplifies a quantity with units using sympy |
search_predefined_metrics | read | Searches for predefined metrics in einsteinpy.symbolic.predefined. |
simplify_expression | read | Simplifies a mathematical expression using SymPy |
solve_algebraically | read | Solves an equation (expression = 0) algebraically for a given variable. |
solve_linear_system | read | Solves a system of linear equations using SymPy |
solve_nonlinear_system | read | Solves a system of nonlinear equations using SymPy |
substitute_expression | read | Substitutes a variable in an expression with another expression using SymPy |
Install
audited commit 94c8d79
Read the findings first. The most severe is Filesystem / path (medium) at Dockerfile.
One-click links open your editor with the config below filled in, exactly as the snippets show it. The audit covers commit 94c8d79 only.
claude mcp add sympy-mcp -- uvx sympy-mcp
{
"mcpServers": {
"sympy-mcp": {
"command": "uvx",
"args": [
"sympy-mcp"
]
}
}
}The command does not pin a version; the audit covers commit 94c8d79b8512. Transport: streamable-http. No environment variables required.
Audit history
- !CAUTION B 89 / 100
First audit ·
94c8d79b8512
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/sdiehl/sympy/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about SymPy MCP server
What is the SymPy MCP server?
What tools does SymPy expose?
Is SymPy safe to connect to an agent?
What credentials does SymPy need?
How does SymPy run?
How current is this page?
Sources
- sdiehl/sympy-mcp on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit 94c8d79b8512Observed · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the SymPy MCP server?
- What tools does SymPy expose?
- Is SymPy safe to connect to an agent?