MCP Calculate Server

by 611711Dark
MIT License
1

Integrations

  • Utilized as the server framework to expose SymPy's mathematical computation capabilities through an API accessible via the MCP protocol.

  • Offers matrix operations including inversion and eigenvalue/eigenvector calculations through SymPy's Matrix implementation.

  • Provides access to SymPy's symbolic computation capabilities including basic operations, algebraic manipulations, calculus, equation solving, matrix operations, series expansion, and special functions.

MCP Calculate Server

A mathematical calculation service based on MCP protocol and SymPy library, providing powerful symbolic computation capabilities.

Key Features

  • Basic Operations: Addition, subtraction, multiplication, division, exponentiation
  • Algebraic Operations: Expression expansion, factorization, simplification
  • Calculus: Differentiation, integration (definite/indefinite), limit calculation
  • Equation Solving: Algebraic equations, systems of equations
  • Matrix Operations: Matrix inversion, eigenvalues/eigenvectors calculation
  • Series Expansion: Taylor series expansion
  • Special Functions: Trigonometric, logarithmic, exponential functions

Usage Examples

# 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}

Installation

Installing via Smithery

To install Calculate Server for Claude Desktop automatically via Smithery:

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

Local Installation

  1. Clone repository:
    git clone https://github.com/611711Dark/mcp-calculate-server.git cd mcp-calculate-server
  2. Create virtual environment and install dependencies:
    uv venv source .venv/bin/activate uv pip install -e .
  3. Configuration:
    "calculate_expression1": { "isActive": false, "command": "uv", "args": [ "run", "--directory", "/path/to/mcp_calculate_server", "server.py" ], }

API Usage

Call calculate_expression tool via MCP protocol by passing mathematical expression string, returns computation result.

Dependencies

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

License

This project is licensed under MIT License. See LICENSE file.

中文版本

You must be authenticated.

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

A mathematical computation service that enables users to perform symbolic calculations including basic arithmetic, algebra, calculus, equation solving, and matrix operations through the MCP protocol.

  1. Key Features
    1. Usage Examples
      1. Installation
        1. Installing via Smithery
        2. Local Installation
      2. API Usage
        1. Dependencies
          1. License

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol (MCP) server that provides mathematical calculations and operations using NumPy, enabling users to perform numerical computations like matrix operations, statistical analysis, and polynomial fitting directly through Claude.
              Last updated -
              Python
              • Linux
              • Apple
            • A
              security
              F
              license
              A
              quality
              A server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.
              Last updated -
              4
              JavaScript
              • Apple
            • -
              security
              -
              license
              -
              quality
              A Model Context Protocol (MCP) server that converts LaTeX mathematical expressions to MathML format.
              Last updated -
              3
              JavaScript
              MIT License
            • -
              security
              A
              license
              -
              quality
              A mathematical expression calculator that processes user-input expressions and returns computed results, supporting basic operations and built-in constants like PI and E.
              Last updated -
              408
              2
              TypeScript
              MIT License

            View all related MCP servers

            ID: 4ls84tw6lt