HC

huhabla/calculator-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

63 stars 35 forks 品質 64 トレンド 0MIT

huhabla/calculator-mcp-server は [https://github.com/huhabla/calculator-mcp-server.] からインポートされた MCP サーバーの候補です

概要

huhabla/calculator-mcp-server は [https://github.com/huhabla/calculator-mcp-server.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

これは、シンボリック数学、統計分析、および行列操作を含む高度な数学計算機能を備えたClaudeを提供するモデルコンテキストプロトコル(MCP)サーバーです。

##特徴

数学計算機 MCP サーバは、以下のツールを提供しています。

-基本計算: 数学的表現を安全に評価

  • Symbolic数学:
  • 解決のequations (線形、質学、多項、等)
  • 式の派生物を計算する
  • 式を計算する
  • 統計分析:
  • 意味、メディアン、モード
  • 変化、標準的な偏差
  • 相関係数
  • 線形回帰
  • 機密間隔
  • マトリックスの操作:
  • マトリックスの追加
  • マトリックスの乗算
  • マトリックスのトランスポジション

インストール

前提条件

  • Python 3.10+(推奨:Python 3.11+)
  • uv(推奨)またはピップ
  • Claudeデスクトップアプリ(ClaudeでMCPサーバーを使用する)

インストール手順

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

  2. (オプション1) 指定したスクリプトで設定:

(オプション 2) または手動で仮想環境を設定します。

3。 doc-testsを実行して、すべての作品を検証します。

#Claudeデスクトップとの統合

方法1:Claudeデスクトップの設定

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Mathematical Calculator MCP Server

This is a Model Context Protocol (MCP) server that provides Claude with advanced mathematical calculation capabilities, including symbolic math, statistical analysis, and matrix operations.

Features

The Mathematical Calculator MCP Server provides the following tools:

  • Basic Calculations: Evaluate mathematical expressions safely
  • Symbolic Mathematics:
    • Solve equations (linear, quadratic, polynomial, etc.)
    • Calculate derivatives of expressions
    • Compute integrals of expressions
  • Statistical Analysis:
    • Mean, median, mode
    • Variance, standard deviation
    • Correlation coefficient
    • Linear regression
    • Confidence intervals
  • Matrix Operations:
    • Matrix addition
    • Matrix multiplication
    • Matrix transposition

Installation

Prerequisites

  • Python 3.10+ (recommended: Python 3.11+)
  • uv (recommended) or pip
  • Claude Desktop app (to use the MCP server with Claude)

Installation Steps

  1. Clone the repository:

    git clone https://github.com/huhabla/calculator-mcp-server.git
    cd calculator-mcp-server
    
  2. (Option 1) Setup with the provided script:

    chmod +x setup_venv.sh
    ./setup_venv.sh
    

    (Option 2) Or manually set up the virtual environment:

    python3 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
    
  3. Run doc-tests to verify everything works:

    bash run_doctests.sh
    

Integration with Claude Desktop

Method 1: Configure in Claude Desktop

Add the server to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the following to the mcpServers section:

{
  "mcpServers": {
    "calculator": {
      "command": "uvx",
      "args": [
        "--from",
        "calculator-mcp-server@git+https://github.com/huhabla/calculator-mcp-server.git",
        "--",
        "calculator-mcp-server",
        "--stdio"
      ]
    }
  }
}

Note: The --stdio flag is required for proper integration with Claude Desktop. The -- separates uvx arguments from the calculator server arguments.

Method 2: Install with FastMCP

  1. Make sure you have uv installed (Installation Guide)

  2. Install the MCP server in Claude Desktop:

    fastmcp install calculator_server.py
    

    Or with a custom name:

    fastmcp install calculator_server.py --name "Math Calculator"
    
  3. Once installed, Claude will automatically have access to all the mathematical tools and functions.

Usage Examples

After integrating with Claude Desktop, you can ask Claude to perform various mathematical operations. Here are some examples:

Basic Calculations

Can you calculate 3.5^2 * sin(pi/4)?

Solving Equations

GitHub で README 全文を見る

インストール

uvx --from calculator-mcp-server@git+https://github.com/huhabla/calculator-mcp-server.git -- calculator-mcp-server --stdio
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "calculator": { "command": "uvx", "args": [ "--from", "calculator-mcp-server@git+https://github.com/huhabla/calculator-mcp-server.git", "--", "calculator-mcp-server", "--stdio" ] } } }