Mathematica Documentation MCP server
General & Usage
Made with mcp-python-sdk
[!IMPORTANT]
if you are still using FastMCP version of this mcp server, please consider pull this repo again and update to newer versions as FastMCP is already deprecated.
Requirements: pip install -r requirements.txt and have Mathematica installed (or at least wolframscript callable from terminal, e.g. via free wolfram engine for developers).
Run mcp dev path/to/mcp-mma-doc.py to initialize the server.
Run mcp install path/to/mcp-mma-doc.py to install to claude or add following to claude/cline config:
"mathematica-docs": {
"command": "uv",
"args": [
"run",
"--with",
"mcp",
"mcp",
"run",
"/path/to/mcp-mma-doc.py"
]
}
[!NOTE] Currently using
uvwithmcpseems to break certain Linux/macOS version of Claude-desktop, you might need to set as:"mathematica-docs": { "command": "/path/to/mcp", "args": [ "run", "/path/to/mcp-mma-doc.py" ] }instead, with
/path/to/mcpgot from runningwhich mcpin terminal
Custom wolframscript install path
If you need custom path to wolframscript, or it is not in system path, you can set via environmental variable by
export WOLFRAMSCRIPT_PATH="/usr/bin/wolframscript"
or set as an env key in mcp config
"mathematica-docs": {
"command": ...,
"args": ....
"env": {
"WOLFRAMSCRIPT_PATH": "/usr/bin/wolframscript"
}
}
Tools
The plugin provides the following commands:
- get_docs: support factory functions, function via an addon, and function via a package.
- Basic usage: get_docs(“Plot”)
- With package: get_docs(“WeightSystem”, packages=[“LieART”])
- With addon: get_docs(“FCFeynmanParametrize”, packages=[“FeynCalc”], load_addons=[“FeynArts”])
- list_package_symbols: list all symbols/functions in a package.
- Basic usage: list_package_symbols(“FeynCalc”)
Known issues
- If you see things like
INFO Processing request of type __init__.py:431 ListToolsRequestin cline, you can ignore them as this will not affect it from working, this is because cline parse tool list together with console debug infos, and current python-sdk cannot disable console messages. This will not affect any function calling part other than seeing this warning. - Some MMA docs may contain complex styling format, and is not easy to remove with simple regex, your llm may be influenced by this, please instruct it to ignore the styling format and write in InputForm only.
Screenshots

Mathematica Documentation Server
Project Details
- benhaotang/mcp-mma-docs
- MIT License
- Last Updated: 4/12/2025
Recomended MCP Servers
This read-only MCP Server allows you to connect to Neo4J data from Claude Desktop through CData JDBC Drivers....
A system monitoring tool that exposes system metrics via the Model Context Protocol (MCP). This tool allows LLMs...
A TypeScript implementation of a flight & stay search MCP server that uses the Duffel API to search...
A Model Context Protocol (MCP) server for Eagle. Manages local media files (e.g., images, mp3, mp4)
CMR Model Context Protocol example
Ecovacs MCP Server
MCP server for kintone https://www.r3it.com/blog/kintone-mcp-server-20250115-yamauchi
A Model Context Protocol (MCP) server that enables AI models to interact with Kaltura's media management platform. Allows...





