mcpField
M
Math Mcp Server

Math Mcp Server

ローカル
github.com/111-test-111開発ツール572 週間前に更新

Math Mcp Server について

Math Mcp Serverは、LLM向けに数学計算ツールと作図機能を提供するPython製MCPサーバーです。uvxで起動する方法と、Pythonのサーバーファイルを直接実行する方法があります。

主な機能

  1. 01数学計算ツール
  2. 02行列計算
  3. 03作図機能

活用シーン

  1. 01LLMを介した数学計算
  2. 02行列演算の実行
  3. 03数学用途のグラフ作成

MCP 対応

MCPクライアント向けに、数学計算と作図のツールを登録します。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"math-mcp-server-111-test-111": {
"command": "uvx",
"args": [
"math-mcp"
],
"env": {
"OUTPUT_PATH": "<OUTPUT_PATH>",
"FONT_PATH": "<FONT_PATH>"
}
}
}
}
起動コマンドuvx math-mcp
設定が必要な環境変数
OUTPUT_PATH
FONT_PATH

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
pypimath-mcp

ツール

22

掲載時のツール一覧 · 2 週間前に更新

パラメーター型必須説明
numbersarrayはい演算対象の数値リスト。1 つ以上の数値が必要です
operationstringはい算術演算の種類。対応:'add'、'subtract'、'multiply'、'product'、'divide'、'power'、'modulo'、'gcd'、'lcm'、'sum'、'average'
precisionanyいいえ結果の小数点以下の桁数。範囲:0-15
use_decimalbooleanいいえ高精度の十進計算を使用するかどうか

詳細

数学 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"
            }
        }
    }
}

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。