MCP server for WolframScript
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mathematica_mcp-0.1.9.tar.gz.
File metadata
- Download URL: mathematica_mcp-0.1.9.tar.gz
- Upload date:
- Size: 99.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.1 {"installer":{"name":"uv","version":"0.10.1","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4aef0efee72be65a2f8241a8eda22df811c39fa8458d45f02465753f7ba07bdf
|
|
| MD5 |
d72d0e2489871442da6b8ba90e29896b
|
|
| BLAKE2b-256 |
b33536369e5a8c44c4eea1bfbe1ec630b51d6734d423cbb83cdc55a9e3dd1594
|
File details
Details for the file mathematica_mcp-0.1.9-py3-none-any.whl.
File metadata
- Download URL: mathematica_mcp-0.1.9-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.1 {"installer":{"name":"uv","version":"0.10.1","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2944f5e5f32a618ba7db4ef1fa0583ade7fffe1f5a4fad9ab6d27e104ca5a5e3
|
|
| MD5 |
3468560594d67f5755667bdd3c1cf73a
|
|
| BLAKE2b-256 |
3d5e5839eb993fc06c1d38a5ee0f4b4cf8a0b5d1bf30ab8091bc12949491a405
|