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
Metadata
Release files for mathematica_mcp 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mathematica_mcp-0.1.11.tar.gz | 100.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mathematica_mcp-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 107.3 kB
Release files / mathematica_mcp-0.1.11.tar.gz
| Download URL | mathematica_mcp-0.1.11.tar.gz |
|---|---|
| Size | 100.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e69b248c374f0102552a31ecb34a922ea0fd2e2579da5c3c951a12eb72131c3
|
|
BLAKE2b-256 checksum How to use checksums |
07be24af575d01f2c79e583a34e0d7eb34f3d6e35f262081859f8f71fd982a5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / mathematica_mcp-0.1.11-py3-none-any.whl
| Download URL | mathematica_mcp-0.1.11-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a9397c06420a4023ce37661d26b2d01fb61efe119f7b0f9a36ac0c411dcceaa
|
|
BLAKE2b-256 checksum How to use checksums |
c22b8d133548e8d3ca81a59cac872c6e0dbaf5d5109701719c89f9622b9acd7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|