Skip to main content
Glama

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.

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.

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
        16
        TypeScript
        MIT License
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol (MCP) server that converts LaTeX mathematical expressions to MathML format.
        Last updated -
        3
        JavaScript
        MIT License
      • 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
        109
        14
        TypeScript
        MIT License
        • Linux
      • -
        security
        A
        license
        -
        quality
        A backend service that provides accurate arithmetic calculation capabilities to AI models via the Model Context Protocol, allowing LLMs to offload mathematical computations for numerical queries.
        Last updated -
        1
        Python
        MIT License

      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/githejie/mcp-server-calculator'

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