Mcp Sympy

io.github.daedalus由 GitHub 帳號 daedalus 發布v0.1.0更新於 Oct 25, 2026

MCP server that exposes SymPy's symbolic mathematics functionality

已驗證STDIO僅桌面AI 與機器學習

概覽

AI 產生的概覽

一個本機 MCP 伺服器,開放 SymPy 的符號數學能力,讓助理進行化簡、求解、微分、積分等精確符號運算。

可以做什麼
化簡、展開與因式分解符號表達式,定義符號並透過 sympify 將字串轉為 SymPy 表達式。進行微積分運算:導數、積分、極限與級數。求解方程式與方程組,包含數值求解與微分方程求解。處理矩陣:運算、反矩陣、行列式與特徵值。使用三角函數、特殊函數、數論與集合,並將結果輸出為 LaTeX、MathML 或 Python 程式碼。
適用情境
適合助理需要精確符號數學而非浮點近似時使用:代數化簡、方程式求解、微積分、矩陣運算、數論,或產生供文件使用的 LaTeX 輸出。
執行需求
以本機程序在使用者電腦上執行,透過 pip 從 PyPI 安裝(mcp-sympy),並以 mcp-sympy 指令啟動。未宣告驗證、環境變數或標頭。僅限桌面端,無法在網頁中執行。
安裝前請注意
未顯示需要憑證、付款或寫入資料的操作。運算在本機進行,結果取決於 SymPy 函式庫的正確性;重要的符號結果應自行核對。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Sympy,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mcp-sympy

MCP server that exposes SymPy's symbolic mathematics functionality

[PyPI] [Python] [Coverage] [Ruff]

Install

bash
pip install mcp-sympy

MCP Server

mcp-name: io.github.daedalus/mcp-sympy

Usage

As MCP Server

Configure in your MCP client:

json
{  "mcpServers": {    "mcp-sympy": {      "command": "mcp-sympy",      "env": {}    }  }}

Python API

python
from mcp_sympy import tools
# Simplify expressionsresult = tools.sympy_simplify("sin(x)**2 + cos(x)**2")print(result)  # "1"
# Solve equationsresult = tools.sympy_solve("x**2 - 4", "x")print(result)  # "[2, -2]"
# Differentiateresult = tools.sympy_diff("x**2", "x")print(result)  # "2*x"
# Integrateresult = tools.sympy_integrate("x**2", "x")print(result)  # "x**3/3"
# Create matricesresult = tools.sympy_matrix("1,2; 3,4")print(result)  # "Matrix([[1, 2], [3, 4]])"
# Number theoryresult = tools.sympy_isprime("7")print(result)  # "True"

Available Tools

The MCP server exposes comprehensive SymPy functionality including:

  • Symbolic Expressions: symbols, sympify, simplify, expand, factor
  • Calculus: diff, integrate, limit, series, Derivative, Integral
  • Solving: solve, solveset, nsolve, diophantine, dsolve
  • Matrices: Matrix operations, inverse, determinant, eigenvalues
  • Trigonometry: sin, cos, tan, and their inverses
  • Special Functions: gamma, zeta, erf, fibonacci, etc.
  • Number Theory: isprime, prime, gcd, lcm, totient
  • Sets: FiniteSet, Interval, Union, Intersection
  • Logic: And, Or, Not, Xor
  • Printing: LaTeX, MathML, Python code

Development

bash
git clone https://github.com/daedalus/mcp-sympy.gitcd mcp-sympypip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

License

MIT License - see LICENSE file.

來源:README.md,提交 83530c0

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分