MCP Calculate Server
MCP 計算サーバー
MCPプロトコルとSymPyライブラリに基づいた数学的計算サービスであり、強力な記号計算機能を提供します。
主な機能
基本演算: 加算、減算、乗算、除算、べき乗
代数演算: 式の展開、因数分解、簡略化
微積分: 微分、積分(定積分/不定積分)、極限計算
方程式の解法: 代数方程式、連立方程式
行列演算: 行列の逆行列、固有値/固有ベクトルの計算
級数展開: テイラー級数展開
特殊関数: 三角関数、対数関数、指数関数
Related MCP server: Calculator MCP
使用例
# Basic operations
"2 + 3*5" → 17
# Algebraic operations
"expand((x + 1)**2)" → x² + 2x + 1
"factor(x**2 - 2*x - 15)" → (x - 5)(x + 3)
# Calculus
"diff(sin(x), x)" → cos(x)
"integrate(exp(x), (x, 0, 1))" → E - 1
"limit(tan(x)/x, x, 0)" → 1
# Equation solving
"solve(x**2 - 4, x)" → [-2, 2]
"solve([x**2 + y**2 - 1, x + y - 1], [x, y])" → [(0, 1), (1, 0)]
# Matrix operations
"Matrix([[1, 2], [3, 4]]).inv()" → [[-2, 1], [3/2, -1/2]]
"Matrix([[1, 2, 3], [4, 5, 6]]).eigenvals()" → {9/2 - sqrt(33)/2: 1, 9/2 + sqrt(33)/2: 1}インストール
Smithery経由でのインストール
Smithery を使用してClaude Desktop用のCalculate Serverを自動的にインストールするには:
npx -y @smithery/cli install @611711Dark/mcp_sympy_calculate_server --client claudeローカルインストール
リポジトリをクローンします:
git clone https://github.com/611711Dark/mcp-calculate-server.git cd mcp-calculate-server仮想環境を作成し、依存関係をインストールします:
uv venv source .venv/bin/activate uv pip install -e .設定:
"calculate_expression1": { "isActive": false, "command": "uv", "args": [ "run", "--directory", "/path/to/mcp_calculate_server", "server.py" ], }
APIの使用方法
MCPプロトコル経由で calculate_expression ツールを呼び出し、数学的な式の文字列を渡すと、計算結果が返されます。
依存関係
mcp>=1.5.0
sympy>=1.13.3
fastapi>=0.95.0
uvicorn>=0.21.0
謝辞
紹介記事を提供してくださったこちらのブログ投稿と、協力および責任ある開示をしてくださったStefano氏に感謝いたします。
ライセンス
このプロジェクトはMITライセンスの下でライセンスされています。LICENSEファイルを参照してください。
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/611711Dark/mcp_calculate_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server