HC

huhabla/calculator-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

63 stars 35 forks 품질 64 트렌드 13MIT

mCP 서버는 https://github.com/huhabla/calculator-mcp-server.]에서 가져온 MCP 서버 후보입니다

개요

mCP 서버는 https://github.com/huhabla/calculator-mcp-server.]에서 가져온 MCP 서버 후보입니다

개요(AI 번역)

이 모델 Context Protocol (MCP) 서버는 Symbolic math, statistical analysis, matrix operation을 포함한 고급 수학 계산 기능으로 Claude를 제공합니다.

특징

수학 계산기 MCP Server는 다음과 같은 도구를 제공합니다:

  • 기본 계산: 불쾌한 수학 표현
  • **Symbolic 수학 **:
  • Solve 방정식(linear, quadratic, polynomial 등)
  • 표식의 파생물 계산
  • Compute의 표현
  • Statistical Analysis:
  • 평균, 미디어, 모드
  • Variance, 표준 편차
  • 상관 계수
  • 선형 회귀
  • Confidence 간격
  • **Matrix 운영 **:
  • Matrix 추가
  • 매트릭스
  • 매트릭스 transposition

설치

# 필수품

  • Python 3.10+ (추천: Python 3.11+)
  • uv (권장) 또는 pip
  • Claude 데스크톱 앱 (CMCP 서버를 Claude로 사용하려면)

설치 단계

  1. 저장소를 복제:

  2. (옵션 1) 제공된 스크립트로 설정:

(옵션 2) 또는 수동으로 가상 환경을 설정:

  1. 모든 작업을 확인하기 위해 doc-tests 실행:

Claude Desktop과 통합

방법 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" ] } } }