Skip to content
Cursor

SageMath for Cursor

io.github.xbp-europe/sagemath-mcp

Stateful SageMath MCP server with 40 tools and a sandboxed Sage session per client.

client:Cursor transport:stdio runtime:pypi

Install SageMath in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

{
  "mcpServers": {
    "sagemath-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "sagemath-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

SageMath in other clients