Math Mcp Server について
Math Mcp Serverは、LLM向けに数学計算ツールと作図機能を提供するPython製MCPサーバーです。uvxで起動する方法と、Pythonのサーバーファイルを直接実行する方法があります。
主な機能
- 01数学計算ツール
- 02行列計算
- 03作図機能
活用シーン
- 01LLMを介した数学計算
- 02行列演算の実行
- 03数学用途のグラフ作成
MCP 対応
MCPクライアント向けに、数学計算と作図のツールを登録します。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
ツール
22掲載時のツール一覧 · 2 週間前に更新
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
| numbers | array | はい | 演算対象の数値リスト。1 つ以上の数値が必要です |
| operation | string | はい | 算術演算の種類。対応:'add'、'subtract'、'multiply'、'product'、'divide'、'power'、'modulo'、'gcd'、'lcm'、'sum'、'average' |
| precision | any | いいえ | 結果の小数点以下の桁数。範囲:0-15 |
| use_decimal | boolean | いいえ | 高精度の十進計算を使用するかどうか |
詳細
数学 MCP サーバー
数学計算ツールとプロットユーティリティ一式を提供する、Python ベースの数学計算 MCP サーバーです。
MCP サーバーの実行
uvx math-mcp # using uvx
# Or run the .py file directly (dependencies must be installed manually)
python math_mcp/math_mcp_server.py
プロジェクト構成
math_mcp/
├── __init__.py # Package initialization
├── __main__.py # CLI entry point
├── math_mcp_server.py # Main server file (MCP tool registration)
├── file_utils.py # File path utilities
# Core computation modules
├── basic.py # Basic math computation
├── matrix.py # Matrix computations
├── mstatistics.py # Statistical analysis (avoid conflicts)
├── calculus.py # Calculus
├── optimization.py # Optimization algorithms
├── regression.py # Regression analysis
├── plotting.py # Data visualization
├── geometry.py # Geometric computations
├── number_theory.py # Number theory
├── complex_analysis.py # Complex analysis
├── probability.py # Probability and statistics
# Extended specialized modules
├── signal_processing.py # Signal processing
├── financial.py # Financial mathematics
└── graph_theory.py # Graph theory analysis
Claude Desktop の設定
Claude Desktop の設定ファイルに、次の設定を追加してください。
{
"mcpServers": {
"math-calculator": {
"command": "uvx",
"args": ["math-mcp"],
"env": {
"OUTPUT_PATH": "path/to/output",
"FONT_PATH": "path/to/font"
}
}
}
}
または、サーバーを直接起動してください。
{
"mcpServers": {
"math-calculator-local": {
"command": "path/to/python_interpreter",
"args": [
"path/to/math_mcp_server.py"
],
"env": {
"OUTPUT_PATH": "path/to/output",
"FONT_PATH": "path/to/font"
}
}
}
}
コメント
Markdown 対応
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。