Mathematica Documentation MCP server
MCP server for checking Mathematica code via local MMA installation
Overview
MCP-MMA-Docs is a server designed for checking Mathematica code through a local MMA installation, utilizing FastMCP for efficient operation.
To use MCP-MMA-Docs, ensure you have Mathematica installed and run the command fastmcp dev path/to/mcp-mma-doc.py to initialize the server. You can also install it to claude using the provided JSON configuration.
- Supports factory functions and functions via addons and packages. - Commands like
get_docsandlist_package_symbolsfor easy access to documentation and symbols. - Customizable path forwolframscriptif needed.
- Checking and validating Mathematica code snippets.
- Accessing documentation for various Mathematica functions and packages.
- Integrating with other tools like claude for enhanced functionality.
Add to your AI client
Use these steps to connect Mathematica Documentation MCP server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-mma-docs-benhaotang": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-mma-docs-benhaotang"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-mma-docs-benhaotang": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-mma-docs-benhaotang"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-mma-docs-benhaotang": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-mma-docs-benhaotang"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-mma-docs-benhaotang": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-mma-docs-benhaotang"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-mma-docs-benhaotang": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-mma-docs-benhaotang"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-mma-docs-benhaotang": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-mma-docs-benhaotang"
]
}
}
}FAQ
What are the requirements to run MCP-MMA-Docs?
You need to have Mathematica installed and run `pip install -r requirements.txt` to set up the environment.
Can I customize the path for wolframscript?
Yes! You can change the path in the Python file to point to your custom installation of wolframscript.
Are there any known issues?
Yes, some issues related to incomplete implementation of function description and complex styling formats in MMA docs may occur, but they do not affect functionality.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":972,"uuid":"c6f02a86-ca96-4b8b-9cd8-6dde34cd7d74","name":"mcp-mma-docs","title":"Mathematica Documentation MCP server","description":"MCP server for checking Mathematica code via local MMA installation","avatar_url":"https://avatars.githubusercontent.com/u/50174724?v=4","created_at":"$D2025-01-28T02:21:33.551Z","updated_at":"$D2025-02-23T07:19:18.552Z","status":"created","author_name":"benhaotang","author_avatar_url":"https://avatars.githubusercontent.com/u/50174724?v=4","tags":"mcp-server","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/benhaotang/mcp-mma-docs","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/benhaotang/mcp-mma-docs/raw/main/image.png","type":null,"metadata":"{\"star\":\"2\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-16 15:15:56\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]