MCP.so
Sign In
Servers

Mathematica Documentation MCP server

@benhaotang

MCP server for checking Mathematica documentation via local MMA installation

Overview

What is Mathematica Documentation MCP server?

This MCP server integrates Mathematica documentation with AI assistants like Claude. It allows querying documentation for Mathematica functions, including those from packages and add-ons. Built with mcp-python-sdk, it requires Mathematica or a callable wolframscript (e.g., via the free Wolfram Engine for Developers).

How to use Mathematica Documentation MCP server?

After installing the Python requirements (pip install -r requirements.txt) and ensuring Mathematica/wolframscript is available, run mcp dev path/to/mcp-mma-doc.py to initialize the server, or mcp install path/to/mcp-mma-doc.py to install it into Claude. Alternatively, add the corresponding JSON configuration to your Claude or Cline config file. If wolframscript is not in the system path, set the WOLFRAMSCRIPT_PATH environment variable in your shell or MCP config.

Key features of Mathematica Documentation MCP server

  • Retrieve documentation for any Wolfram Language symbol.
  • Support for functions from installed packages (e.g., LieART).
  • Support for functions from loaded add-ons (e.g., FeynArts).
  • List all symbols or functions contained in a package.
  • Customisable wolframscript path via environment variable.

Use cases of Mathematica Documentation MCP server

  • Quickly look up the syntax and usage of built‑in Mathematica functions like Plot.
  • Access documentation for specialized package functions, e.g., FCFeynmanParametrize from FeynCalc.
  • Enumerate all symbols in a package to discover available functions.

FAQ from Mathematica Documentation MCP server

What runtime dependencies does the server require?

Python (with packages from requirements.txt) and Mathematica (or at least wolframscript callable from the terminal, e.g., via the free Wolfram Engine for Developers).

Can I use a custom path for wolframscript?

Yes. Set the environment variable WOLFRAMSCRIPT_PATH to the full path of your wolframscript binary, either in your shell or inside the MCP client configuration.

Why am I seeing INFO Processing request of type ... ListToolsRequest messages?

These are harmless debug messages from the Python SDK that cannot be suppressed. They do not affect the server’s functionality.

How do I get documentation for a function in a specific package?

Use the get_docs tool with the packages argument, e.g., get_docs("WeightSystem", packages=["LieART"]).

Can I get documentation for functions that require an add‑on?

Yes. Provide both the packages and load_addons arguments to get_docs, e.g., get_docs("FCFeynmanParametrize", packages=["FeynCalc"], load_addons=["FeynArts"]).

Tags

More from Memory & Knowledge