Mathematica MCP Server
Allows interaction with Wolfram Engine via WolframScript, enabling evaluation of Wolfram Language code and retrieval of installation details such as version and license type.
Provides tools to evaluate Wolfram Language scripts, leveraging the full symbolic computation capabilities of the Wolfram Language through the Wolfram Engine.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mathematica MCP Serverevaluate Integrate[x*Sin[x], x]"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| Evaluates a Wolfram Language script |
| Returns version of |
| Returns version of Wolfram Engine |
| 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.
Related MCP server: Mathematica MCP Server
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 | shEdit 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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lars20070/mathematica-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server