- Home
- MCP servers
- Mathematica
Mathematica
- python
0
GitHub Stars
python
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"lars20070-mathematica-mcp": {
"command": "uvx",
"args": [
"mathematica-mcp"
]
}
}
}You can evaluate Wolfram Language code and query Wolfram Engine information through an MCP server that wraps Mathematica’s wolframscript. This lets you execute scripts, check versions, and determine license details from your MCP client in a streamlined way.
How to use
Use an MCP client to connect to the Mathematica MCP Server and access its tools. You can evaluate Wolfram Language code, retrieve the version of wolframscript, check the Wolfram Engine version, and query the license type. Each tool is designed to return results directly to your client for quick feedback.
How to install
Before installing, ensure WolframScript is installed and activated on your system.
wolframscript -version
wolframscript -activate
wolframscript -code "Integrate[x*Sin[x], x]"
Additional guidance
Install the uv package manager to simplify MCP server management.
curl -LsSf https://astral.sh/uv/install.sh | sh
MCP setup for Claude Desktop on macOS
Add the Mathematica MCP Server to Claude Desktop by editing the Claude Desktop config file. The environment is prepared by uvx, which installs the mathematica-mcp package and runs the server using the mathematica-mcp entry point defined in pyproject.toml. Logs are written to the default user log directory.
{
"mcpServers": {
"mathematica-mcp": {
"command": "uvx",
"args": [
"mathematica-mcp"
]
}
}
}
Alternative local installation via cloning
If you prefer, you can clone the repository and run the MCP server from the local directory. Claude Desktop will reference the local path to the repository.
{
"mcpServers": {
"mathematica-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/yourname/Code/mathematica-mcp",
"run",
"mathematica-mcp"
]
}
}
}
Notes on logs and environment
Logs are written to the default user log directory, such as the macOS path ~/Library/Logs/mathematica_mcp/mathematica_mcp.log.
Available tools
evaluate
Evaluates a Wolfram Language script and returns the result to your MCP client.
version_wolframscript
Returns the installed version of wolframscript.
version_wolframengine
Returns the version of the Wolfram Engine in use.
licensetype
Returns the license type of the Wolfram Engine in the current setup.