Skip to main content
Glama

NumPy Calculator

NumPy MCP サーバー

NumPy による数値計算用のモデルコンテキストプロトコル (MCP) サーバー

NumPyを用いた数学的な計算と演算を提供するモデルコンテキストプロトコル(MCP)サーバー。このサーバーは、標準化されたMCPインターフェースを通じて様々な数学ツールを公開しており、Claudeやその他のMCP互換LLMを介して直接数値計算を実行することが容易になります。

特徴

  • 基本的な算術演算(加算)
  • 線形代数計算(行列の乗算、固有値分解)
  • 統計分析(平均、中央値、標準偏差、最小値、最大値)
  • 多項式フィッティング

インストール

Claude Desktop によるクイックセットアップ

最も早く始める方法は、このサーバーを Claude Desktop に直接インストールすることです。

# Install the server in Claude Desktop mcp install server.py --name "NumPy Calculator"

手動インストール

このプロジェクトは依存関係の管理にUVを使用しています。インストールするには:

# Install UV if you haven't already curl -LsSf https://astral.sh/uv/install.sh | sh # Clone the repository git clone https://github.com/yourusername/math-mcp.git cd math-mcp # Create virtual environment and install dependencies uv venv source .venv/bin/activate # On Unix/macOS # or # .venv\Scripts\activate # On Windows uv pip install -r requirements.txt

使用法

開発テスト

MCP Inspector を使用してサーバーをローカルでテストします。

mcp dev server.py

クロードデスクトップ統合

  1. Claude Desktop にサーバーをインストールします。
    mcp install server.py --name "NumPy Calculator"
  2. サーバーはClaude Desktopの「NumPy Calculator」で利用できるようになります。
  3. たとえば、Claude に数学演算を実行してもらうことでこれを使用できます。
    • 「行列[[1, 2], [3, 4]]の固有値を計算する」
    • [1, 2, 3, 4, 5]の平均と標準偏差を求めよ」
    • 「行列[[1, 0], [0, 1]]と[[2, 3], [4, 5]]を乗算します」

直接実行

高度な使用法またはカスタム展開の場合:

python server.py # or mcp run server.py

利用可能な機能

サーバーは、MCP インターフェイスを通じて次の数学関数を提供します。

基本的な算術

  • add(a: int, b: int) -> int : 2つの整数を加算する

線形代数

  • matrix_multiply(matrix_a: List[List[float]], matrix_b: List[List[float]]) -> List[List[float]] : 2つの行列を乗算する
  • eigen_decomposition(matrix: List[List[float]]) -> Tuple[List[float], List[List[float]]] : 正方行列の固有値と固有ベクトルを計算する

統計

  • statistical_analysis(data: List[float]) -> dict[str, float] : 以下のデータを含むデータセットの基本統計を計算します。
    • 平均
    • 中央値
    • 標準偏差
    • 最小値
    • 最大値

データ分析

  • polynomial_fit(x: List[float], y: List[float], degree: int = 2) -> List[float] : 指定された次数の多項式を与えられたデータポイントに適合させる

発達

プロジェクト構造

math-mcp/ ├── requirements.txt ├── README.md └── server.py

コード品質

このプロジェクトは厳格なコード品質基準に準拠しています。

  • コードベース全体の型ヒント
  • Googleスタイルに準拠した包括的なドキュメント文字列
  • 数値演算のエラー処理

依存関係

  • NumPy: 数値計算と線形代数演算用
  • FastMCP: モデルコンテキストプロトコルサーバ実装用

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています。

謝辞

  • 優れた科学計算ライブラリを提供するNumPyチーム
  • 標準化された LLM インタラクションを可能にするモデル コンテキスト プロトコル (MCP)
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

NumPy を使用して数学的な計算と操作を提供するモデル コンテキスト プロトコル (MCP) サーバー。これにより、ユーザーは、Claude を通じて直接、行列演算、統計分析、多項式フィッティングなどの数値計算を実行できます。

  1. 特徴
    1. インストール
      1. Claude Desktop によるクイックセットアップ
      2. 手動インストール
    2. 使用法
      1. 開発テスト
      2. クロードデスクトップ統合
      3. 直接実行
    3. 利用可能な機能
      1. 基本的な算術
      2. 線形代数
      3. 統計
      4. データ分析
    4. 発達
      1. プロジェクト構造
      2. コード品質
    5. 依存関係
      1. ライセンス
        1. 謝辞

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A Python-based server that implements the Model Context Protocol to interface with Claude Desktop as an MCP client, supporting interaction through efficient memory management.
            Last updated -
            1
            Python
            MIT License
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.
            Last updated -
            32
            5
            TypeScript
            • Apple
          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol (MCP) server that allows Claude AI to interact with custom tools, enabling extension of Claude's capabilities through the MCP framework.
            Last updated -
            TypeScript
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol (MCP) server that demonstrates mathematical capabilities through a LangChain integration, allowing clients to perform math operations via the MCP protocol.
            Last updated -
            Python
            • Apple
            • Linux

          View all related MCP servers

          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/colesmcintosh/numpy-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server