MCP server wrapping SageMath's full computer algebra system — 10 symbolic-math tools for LLMs.
Connect Sagemath to Claude, Cursor or any other MCP client and it stops being a tab you switch to. MCP server wrapping SageMath's full computer algebra system — 10 symbolic-math tools for LLMs. The sagemath mcp server is what makes that connection.
LLMs are bad at exact arithmetic, brittle with multi-step algebra, and unreliable when symbolic manipulation matters. The right pattern is to keep the conceptual reasoning in the model and delegate mechanical computation to a tool — the same trick a person with dyscalculia uses with a calculator. SageMath gives you the broadest tool surface for that delegation: factoring, integration, eigenvalues, number theory, LaTeX rendering, and plotting all behind one interface.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
sage_evaluate — Run an arbitrary SageMath expressionsage_solve_equation — Solve algebraic / transcendental equations symbolicallysage_differentiate — Compute derivatives (any order, any variable)sage_integrate — Indefinite and definite integralssage_simplify — Simplify expressions (default, full, trig, rational)sage_factor — Factor polynomials or integerssage_matrix_ops — Determinant, inverse, eigenvalues, rank, RREF, transpose over QQ / RR / ZZ / CCsage_plot — Plot an expression and return a base64 PNGsage_latex_convert — Convert a SageMath expression to LaTeXsage_number_theory — is_prime, next_prime, factor, euler_phi, gcd, lcm, prime_range, sigma, moebius@justice8096/sagemath-mcp-server on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Sagemath's toolset — sage_evaluate, sage_solve_equation, sage_differentiate and 7 more — is a fair guide to whether it matches your workflow. It is maintained by justice8096; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| sage_evaluate | Run an arbitrary SageMath expression. |
| sage_solve_equation | Solve algebraic / transcendental equations symbolically. |
| sage_differentiate | Compute derivatives (any order, any variable). |
| sage_integrate | Indefinite and definite integrals. |
| sage_simplify | Simplify expressions (default, full, trig, rational). |
| sage_factor | Factor polynomials or integers. |
| sage_matrix_ops | Determinant, inverse, eigenvalues, rank, RREF, transpose over QQ / RR / ZZ / CC. |
| sage_plot | Plot an expression and return a base64 PNG. |
| sage_latex_convert | Convert a SageMath expression to LaTeX. |
| sage_number_theory | is_prime, next_prime, factor, euler_phi, gcd, lcm, prime_range, sigma, moebius. |
{
"mcpServers": {
"sagemath": {
"command": "sagemath-mcp"
}
}
}Configuration as documented by the project. Restart the client after saving.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.