Sagemath MCP Server
by justice8096io.github.justice8096/sagemath-mcp-serverv1.0.1
MCP server wrapping SageMath's full computer algebra system — 10 symbolic-math tools for LLMs.
context tax
queued
security
queued
cold start
queued
freshness
Slowing5mo ago
Install Sagemath MCP server
Install in Claude Code
claude mcp add sagemath-justice8096 -e API_KEY='<api-key>' -- npx -y @justice8096/sagemath-mcp-serverInstall in Cursor
{
"mcpServers": {
"sagemath-justice8096": {
"command": "npx",
"args": [
"-y",
"@justice8096/sagemath-mcp-server"
],
"env": {
"API_KEY": "<api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"sagemath-justice8096": {
"command": "npx",
"args": [
"-y",
"@justice8096/sagemath-mcp-server"
],
"env": {
"API_KEY": "<api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"sagemath-justice8096": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@justice8096/sagemath-mcp-server"
],
"env": {
"API_KEY": "<api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"sagemath-justice8096": {
"command": "npx",
"args": [
"-y",
"@justice8096/sagemath-mcp-server"
],
"env": {
"API_KEY": "<api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| SAGE_TIMEOUT | — | — | Per-call SageMath timeout in milliseconds. Default 30000. |
| SAGE_DOCKER_IMAGE | — | — | Docker image used when SageMath is not installed locally. Default sagemath/sagemath:latest. |
| TRANSPORT | — | — | Transport mode: 'stdio' (default) or 'http'. |
| PORT | — | — | HTTP port when TRANSPORT=http. Default 3000. |
| API_KEY | — | yes | If set, HTTP transport requires matching API_KEY header. Ignored for stdio. |
Freshness
Slowing — last maintenance signal 5mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-05-18 · 5mo ago · GitHub
Latest release
2026-05-18 · 5mo ago · GitHub · v1.0.1
Package published
no data · npm/PyPI
Registry entry updated
2026-05-18 · 5mo ago · official registry · v1.0.1
FAQ
›How do I install the Sagemath MCP server in Claude Code?
Run: claude mcp add sagemath-justice8096 -e API_KEY='<api-key>' -- npx -y @justice8096/sagemath-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Sagemath require an API key?
Yes. It expects API_KEY, of which 1 is a secret.
›Can I use Sagemath as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Sagemath in the official MCP registry?
Yes, as io.github.justice8096/sagemath-mcp-server.