Calculator MCP Server

Calculator MCP Server

A Model Context Protocol server for calculating. This server enables LLMs to use calculator for precise numerical calculations.

Available Tools

  • calculate - Calculates/evaluates the given expression.
    • expression (string, required): Expression to be calculated

Installation

When using uv no specific installation is needed. We will use uvx to directly run mcp-server-calculator.

curl -LsSf https://astral.sh/uv/install.sh | sh

Using PIP

Alternatively you can install mcp-server-calculator via pip:

pip install mcp-server-calculator

After installation, you can run it as a script using:

python -m mcp_server_calculator

Configuration

Add this to your MCP client settings:

"mcpServers": { "calculator": { "command": "uvx", "args": ["mcp-server-calculator"] } }

Using PIP

Alternatively add this to your MCP client settings:

"mcpServers": { "calculator": { "command": "python", "args": ["-m", "mcp_server_calculator"] } }

License

mcp-server-calculator is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

You must be authenticated.

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.

A Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.

  1. Available Tools
    1. Installation
      1. Using uv (recommended)
      2. Using PIP
    2. Configuration
      1. Using uv (recommended)
      2. Using PIP
    3. License

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that provides basic mathematical and statistical functions to LLMs, enabling them to perform accurate numerical calculations through a simple API.
        Last updated -
        13
        2
        TypeScript
        MIT License
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that connects LLMs to the Compiler Explorer API, enabling them to compile code, explore compiler features, and analyze optimizations across different compilers and languages.
        Last updated -
        Python
      • A
        security
        F
        license
        A
        quality
        A simple Model Context Protocol server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models.
        Last updated -
        4
        JavaScript
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that provides basic calculator functionality for LLMs, enabling them to perform mathematical operations like addition, subtraction, multiplication, division, modulo, and square root.
        Last updated -
        6
        180
        10
        TypeScript
        MIT License
        • Linux

      View all related MCP servers

      ID: h6n79597nw