Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
mathematica_mcpclaude mcp add mathematica-mcp -- uvx mathematica_mcp==0.1.11
{
"mcpServers": {
"mathematica-mcp": {
"command": "uvx",
"args": [
"mathematica_mcp==0.1.11"
]
}
}
}
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
Mathematica MCP Server
MCP server that wraps Mathematica's wolframscript command-line interface. It provides tools to evaluate Wolfram Language code and retrieve information about the Wolfram Engine installation.
| Tool | Description |
|---|---|
evaluate | Evaluates a Wolfram Language script |
version_wolframscript | Returns version of wolframscript |
version_wolframengine | Returns version of Wolfram Engine |
licensetype | Returns license type of Wolfram Engine |
Background
- Wolfram Language: symbolic programming language e.g.
Integrate[x*Sin[x], x] - Wolfram Engine: kernel for running Wolfram Language code
- WolframScript: command-line interface to Wolfram Engine
- Mathematica: notebook interface to Wolfram Engine
Both Wolfram Engine and WolframScript are freely available for personal use.
Installation
- Please ensure WolframScript is installed and activated on your system.
wolframscript -version
wolframscript -activate
wolframscript -code "Integrate[x*Sin[x], x]"
- Install the uv package manager.
curl -LsSf https://astral.sh/uv/install.sh | sh
- Edit the Claude Desktop config file and add the
mathematica-mcpserver. Note thatuvxsets up an environment, installs themathematica-mcppackage, and runs the server by calling themathematica-mcpentry point defined inpyproject.toml. No cloning of the repository is necessary. The logs are written to the default user log directory, e.g.~/Library/Logs/mathematica_mcp/mathematica_mcp.logon macOS.
{
"mcpServers": {
"mathematica-mcp": {
"command": "uvx",
"args": [
"mathematica-mcp"
]
}
}
}
Claude Desktop config file on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Alternatively, you can clone the repository and then modify or extend the MCP server code. In this case, make sure to update the path to the local repository in the Claude Desktop config file.
{
"mcpServers": {
"mathematica-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/lars/Code/mathematica-mcp",
"run",
"mathematica-mcp"
]
}
}
}
Claude Desktop config file on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Frequently asked questions
What is io.github.lars20070/mathematica-mcp?
MCP server for WolframScript
How do I install io.github.lars20070/mathematica-mcp?
It runs on your machine. In Claude Code: claude mcp add mathematica-mcp -- uvx mathematica_mcp==0.1.11. For other clients, paste the JSON configuration from this page into their MCP settings.
Does io.github.lars20070/mathematica-mcp need an API key?
Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.
Is io.github.lars20070/mathematica-mcp open source?
Yes. Its code is on GitHub under the MIT license.
Who maintains io.github.lars20070/mathematica-mcp?
It is published by lars20070. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.