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 分