Mathematica Mcp

io.github.lars20070由 GitHub 账号 lars20070 发布v0.1.11更新于 Oct 24, 2026

MCP server for WolframScript

已验证STDIO仅桌面开发者工具数据与分析

概览

AI 生成的概览

本地 MCP 服务器,封装 WolframScript,让助手可以执行 Wolfram Language 代码并查看 Wolfram Engine 安装信息。

可以做什么
通过本地 wolframscript 命令行执行 Wolfram Language 脚本并把结果返回给助手。查询已安装的 wolframscript 版本。查询 Wolfram Engine 版本。查询 Wolfram Engine 的许可证类型。
适用场景
适合让助手在本机执行符号运算、微积分或其他 Wolfram Language 计算,或查看当前安装的 Wolfram Engine 与 wolframscript 版本。
运行要求
作为本地进程在用户机器上运行(仅限桌面端)。需要已安装并激活的 WolframScript,以及 uv 包管理器;README 通过 uvx 或本地克隆进行配置。未声明 API 密钥或环境变量。
安装前请注意
evaluate 工具会通过 wolframscript 在本机执行任意 Wolfram Language 代码,请只运行可信代码。它依赖本地已激活的 Wolfram Engine 许可证;README 说明 Wolfram Engine 和 WolframScript 对个人使用免费,其他用途可能需要许可证。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mathematica Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Mathematica MCP Server

[codecov] [Build] [Python Version] [License] [PyPI version]

MCP server that wraps Mathematica's wolframscript command-line interface. It provides tools to evaluate Wolfram Language code and retrieve information about the Wolfram Engine installation.

ToolDescription
evaluateEvaluates a Wolfram Language script
version_wolframscriptReturns version of wolframscript
version_wolframengineReturns version of Wolfram Engine
licensetypeReturns license type of Wolfram Engine

Background

  • Wolfram Language: symbolic programming language e.g. Integrate[x*Sin[x], x]
  • Wolfram Engine: kernel for running Wolfram Language code
  • WolframScript: command-line interface to Wolfram Engine
  • Mathematica: notebook interface to Wolfram Engine

Both Wolfram Engine and WolframScript are freely available for personal use.

Installation

  1. Please ensure WolframScript is installed and activated on your system.
bash
wolframscript -versionwolframscript -activatewolframscript -code "Integrate[x*Sin[x], x]"
  1. Install the uv package manager.
bash
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Edit the Claude Desktop config file and add the mathematica-mcp server. Note that uvx sets up an environment, installs the mathematica-mcp package, and runs the server by calling the mathematica-mcp entry point defined in pyproject.toml. No cloning of the repository is necessary. The logs are written to the default user log directory, e.g. ~/Library/Logs/mathematica_mcp/mathematica_mcp.log on macOS.
json
{  "mcpServers": {    "mathematica-mcp": {      "command": "uvx",      "args": [        "mathematica-mcp"      ]    }  }}

Claude Desktop config file on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  1. Alternatively, you can clone the repository and then modify or extend the MCP server code. In this case, make sure to update the path to the local repository in the Claude Desktop config file.
json
{  "mcpServers": {    "mathematica-mcp": {      "command": "uv",      "args": [        "--directory",        "/Users/lars/Code/mathematica-mcp",        "run",        "mathematica-mcp"      ]    }  }}

Claude Desktop config file on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

来源:README.md,提交 2ddd459

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.11最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分