Skip to main content
Glama

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

ローカルインストール

  1. リポジトリのクローン:

    git clone https://github.com/611711Dark/mcp-calculate-server.git
    cd mcp-calculate-server
  2. 仮想環境を作成し、依存関係をインストールします。

    uv venv
    source .venv/bin/activate
    uv pip install -e .
  3. 構成:

    "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

  • ファストAPI>=0.95.0

  • uvicorn>=0.21.0

ライセンス

このプロジェクトはMITライセンスの下でライセンスされています。LICENSEファイルをご覧ください。

中国語版

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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