# Mathematica MCP

> Mathematica MCP is an open-source MCP server for developer tools. MCP server giving AI clients access to Wolfram Language evaluation via wolframscript. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows, self-hosted
- **Repository:** https://github.com/lars20070/mathematica-mcp
- **MCP Registry name:** io.github.lars20070/mathematica-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The server wraps the wolframscript command-line tool, so an AI client can send Wolfram Language code and get results back without opening a notebook. It exposes an evaluate tool for running scripts, plus tools that report the wolframscript version, the Wolfram Engine version and the Engine license type.

The README describes a setup in which WolframScript is installed and activated on the local machine first, then the server is launched through uvx from PyPI, with Claude Desktop named as the client in the config examples. A cloned repository can be used instead if the server code needs to be changed.

The server suits people who already work with Wolfram Language and want an assistant to run symbolic calculus, algebra or other computations on their own machine. The README notes that Wolfram Engine and WolframScript are free for personal use.

## Features

- **Evaluate Wolfram code:** The evaluate tool runs Wolfram Language scripts through wolframscript and returns the output.
- **Version reporting:** Separate tools report the wolframscript and Wolfram Engine versions.
- **License type check:** A licensetype tool returns the license type of the local Wolfram Engine installation.
- **PyPI installation via uvx:** The package can be launched with uvx without cloning the repository.
- **Editable local clone:** Users can clone the repository and modify the server code for their own needs.

## Good for

- Solving symbolic integrals or algebra problems from an AI chat client
- Checking which Wolfram Engine version and license are active on a machine
- Running Wolfram Language scripts as part of an AI-assisted workflow
- Extending the MCP server with custom Wolfram-based tools

## Install

### Claude Code (Terminal)

```sh
claude mcp add mathematica-mcp -- uvx mathematica_mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mathematica-mcp": {
      "command": "uvx",
      "args": [
        "mathematica_mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mathematica-mcp": {
      "command": "uvx",
      "args": [
        "mathematica_mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mathematica-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mathematica_mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mathematica-mcp": {
      "command": "uvx",
      "args": [
        "mathematica_mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mathematica-mcp": {
      "command": "uvx",
      "args": [
        "mathematica_mcp"
      ]
    }
  }
}
```

## Tools

- `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

## FAQ

### What does the server need to run?

The README says WolframScript must be installed and activated on the system, and uv is used to launch the server.

### Is Wolfram Engine free to use?

The README says Wolfram Engine and WolframScript are freely available for personal use.

### Which client is used in the setup examples?

The configuration examples are written for Claude Desktop.

### Is Mathematica MCP free?

Yes. Mathematica MCP is open source, so you can use and self-host it for free.

### How do I add Mathematica MCP to Claude Code?

Run this command in your terminal: claude mcp add mathematica-mcp -- uvx mathematica_mcp

### What are the best alternatives to Mathematica MCP?

The closest alternatives to Mathematica MCP are MCP Server Commands, Weblate MCP by usefulapi, unity-mcp, KitWright Unity MCP and MCP Z3 Prover.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MCP Server Commands](https://ai-powered.com/mcp/mcp-server-commands): MCP Server Commands is an open-source MCP server for developer tools.
- [Weblate MCP by usefulapi](https://ai-powered.com/mcp/weblate-mcp-by-usefulapi): Weblate MCP by usefulapi is a freemium MCP server for developer tools.
- [unity-mcp](https://ai-powered.com/mcp/unity-mcp-2): unity-mcp is an open-source MCP server for ai models and llm tooling.
- [KitWright Unity MCP](https://ai-powered.com/mcp/kitwright-unity-mcp): KitWright Unity MCP is an open-source MCP server for developer tools.
- [MCP Z3 Prover](https://ai-powered.com/mcp/mcp-z3-prover): MCP Z3 Prover is an open-source MCP server for developer tools.
- [Lens MCP](https://ai-powered.com/mcp/lens-mcp-2): Lens MCP is an open-source MCP server for developer tools.
- [MCPProxy](https://ai-powered.com/mcp/mcpproxy): MCPProxy is an open-source MCP server for developer tools.
- [Api Test MCP](https://ai-powered.com/mcp/api-test-mcp): Api Test MCP is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mathematica-mcp
