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 "Deploy 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 Server evaluate 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
Available Tools
4 toolsevaluateA
Evaluate a Wolfram Language script by running the wolframscript -print -file <script> command.
Documentation for Wolfram Language: https://context7.com/websites/reference_wolfram_language/llms.txt
IMPORTANT: The tool is returning the result of the last line executed in the script, and any expression printed explicitly with Print[].
Arguments: script (str): Wolfram Language script to execute.
Returns: str: The result of the Wolfram Language script as a string.
Inputs: script (required). Returns: result
licensetypeA
Get the license type of the Wolfram Engine.
Returns: str: License type of the Wolfram Engine e.g. 'Professional'.
Inputs: no named parameters. Returns: result
version_wolframengineA
Get the version of the Wolfram Engine.
Returns: str: Version of the Wolfram Engine.
Inputs: no named parameters. Returns: result
version_wolframscriptA
Get the version of the wolframscript tool.
Returns:
str: Version of the wolframscript tool.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: evaluate executes scripts, licensetype returns license info, and the two version tools return specific version strings. There is no overlap.
Tool names mix conventions: evaluate is a verb, licensetype is a compound noun without underscore, and version_wolframengine/script use noun_verb pattern. Inconsistency in verb usage and separators.
With 4 tools, the server covers core evaluation and basic information retrieval. Slightly thin but reasonable for a focused Mathematica evaluation server.
The server provides the essential evaluate tool but lacks auxiliary capabilities like error handling, file management, or interactive sessions. Some gaps for advanced use cases.
Maintenance
Related MCP Connectors
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Start and manage Reason cloud coding agents, projects and sessions from any MCP client.
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
Related MCP Servers
- AlicenseAqualityFmaintenanceAn MCP server that connects AI assistants to a local Wolfram Engine, enabling symbolic math, numerical analysis, and data visualization through Wolfram Language. It provides secure expression filtering, client authentication, and supports both local stdio and HTTP transports.232MIT
- AlicenseBqualityDmaintenanceEnables MCP clients to execute Mathematica code via wolframscript and verify mathematical derivations.224MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients like Codex to control Ansys Workbench and ICEM CFD locally, executing scripts, managing projects, and running simulations.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables local project file access, editing, command execution, recoverable long-running jobs, Apple MPS checks, and macOS UI automation through MCP.MIT