Skip to main content
Glama

MCP Calculate Server

by 611711Dark

MCP计算服务器

基于MCP协议和SymPy库的数学计算服务,提供强大的符号计算能力。

主要特点

  • 基本运算:加法、减法、乘法、除法、指数运算
  • 代数运算:表达式展开、因式分解、简化
  • 微积分:微分、积分(定积分/不定积分)、极限计算
  • 方程求解:代数方程、方程组
  • 矩阵运算:矩阵求逆、特征值/特征向量计算
  • 级数展开:泰勒级数展开
  • 特殊函数:三角函数、对数函数、指数函数

使用示例

# Basic operations "2 + 3*5" → 17 # Algebraic operations "expand((x + 1)**2)" → x² + 2x + 1 "factor(x**2 - 2*x - 15)" → (x - 5)(x + 3) # Calculus "diff(sin(x), x)" → cos(x) "integrate(exp(x), (x, 0, 1))" → E - 1 "limit(tan(x)/x, x, 0)" → 1 # Equation solving "solve(x**2 - 4, x)" → [-2, 2] "solve([x**2 + y**2 - 1, x + y - 1], [x, y])" → [(0, 1), (1, 0)] # Matrix operations "Matrix([[1, 2], [3, 4]]).inv()" → [[-2, 1], [3/2, -1/2]] "Matrix([[1, 2, 3], [4, 5, 6]]).eigenvals()" → {9/2 - sqrt(33)/2: 1, 9/2 + sqrt(33)/2: 1}

安装

通过 Smithery 安装

要通过Smithery自动安装 Claude Desktop 的 Calculate Server:

npx -y @smithery/cli install @611711Dark/mcp_sympy_calculate_server --client claude

本地安装

  1. 克隆存储库:
    git clone https://github.com/611711Dark/mcp-calculate-server.git cd mcp-calculate-server
  2. 创建虚拟环境并安装依赖项:
    uv venv source .venv/bin/activate uv pip install -e .
  3. 配置:
    "calculate_expression1": { "isActive": false, "command": "uv", "args": [ "run", "--directory", "/path/to/mcp_calculate_server", "server.py" ], }

API 使用

通过MCP协议调用calculate_expression工具,传递数学表达式字符串,返回计算结果。

依赖项

  • mcp>=1.5.0
  • sympy>=1.13.3
  • fastapi>=0.95.0
  • uvicorn>=0.21.0

执照

本项目采用 MIT 许可证。请参阅LICENSE文件。

中文版本

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

一种数学计算服务,使用户能够通过 MCP 协议执行符号计算,包括基本算术、代数、微积分、方程求解和矩阵运算。

  1. 主要特点
    1. 使用示例
      1. 安装
        1. 通过 Smithery 安装
        2. 本地安装
      2. API 使用
        1. 依赖项
          1. 执照

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              Provides basic arithmetic operations and advanced mathematical functions through the Model Context Protocol (MCP), with features like calculation history tracking and expression evaluation.
              Last updated -
              Python
            • A
              security
              F
              license
              A
              quality
              A numerical calculator based on Model Context Protocol (MCP) that provides simple arithmetic operations including addition, subtraction, multiplication, division, power, square root and integer factorial calculations.
              Last updated -
              7
              Python
            • -
              security
              F
              license
              -
              quality
              A server that provides basic mathematical operations (addition, subtraction, multiplication, division, power, square root) through MCP tools for use with AI assistants like Claude.
              Last updated -
              Python
            • -
              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/611711Dark/mcp_calculate_server'

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