Calculator MCP Server

Calculator MCP Server

Enables LLMs to perform precise numerical calculations via Model Context Protocol.

131
Stars
21
Forks
131
Watchers
6
Issues
Calculator MCP Server provides a Model Context Protocol-compliant server which allows large language models to use calculator functionality for accurate numerical operations. It offers a single tool called 'calculate' for evaluating mathematical expressions that can be integrated into MCP ecosystems. Installation and configuration options are available via pip or uvx to support multiple client workflows. The server simplifies connecting LLMs to robust, external calculation capabilities for enhanced mathematical reasoning.

Key Features

MCP-compliant server implementation
Supports mathematical expression evaluation
Single unified 'calculate' tool interface
Seamless integration with LLM clients
Flexible installation via pip or uvx
Simple configuration for MCP clients
Lightweight and easy to run
Designed for extensibility within MCP ecosystem
Open-source under MIT License
Script mode operation via Python module

Use Cases

Enhancing LLMs with precise calculation capabilities
Providing backend calculation services to AI agents
Automating evaluation of complex mathematical expressions
Integrating external calculators with chatbot workflows
Serving as a computation plugin for MCP-based frameworks
Improving numerical reasoning in educational AI tools
Supporting research prototypes requiring remote calculation
Facilitating accurate number crunching in virtual assistants
Enabling compute extensions for data science conversational agents
Supplying reliable calculation APIs for developer experiments

README

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

Using uv (recommended)

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

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

Using PIP

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

bash
pip install mcp-server-calculator

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

bash
python -m mcp_server_calculator

Configuration

Using uv (recommended)

Add this to your MCP client settings:

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

Using PIP

Alternatively add this to your MCP client settings:

json
"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.

Star History

Star History Chart

Repository Owner

githejie
githejie

User

Repository Details

Language Python
Default Branch main
Size 36 KB
Contributors 1
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

Python
89.59%
Dockerfile
10.41%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Cal Server

    Cal Server

    Lightweight mathematical expression calculator as an MCP service

    Cal Server is a simple mathematical expression calculation tool built on the FastMCP framework and designed to operate as a Model Context Protocol (MCP) service. It evaluates mathematical expressions provided via standard input/output using the expr-eval library and runs in the Bun runtime environment. The service supports core mathematical operations, built-in constants, and parameter validation with zod, making it efficient and easy to integrate into other workflows.

    • 13
    • MCP
    • pwh-pwh/cal-mcp
  • MCP-wolfram-alpha

    MCP-wolfram-alpha

    An MCP server for querying the Wolfram Alpha API.

    MCP-wolfram-alpha provides an implementation of the Model Context Protocol, enabling integration with the Wolfram Alpha API. It exposes prompts and tools to facilitate AI systems in answering natural language queries by leveraging Wolfram Alpha's computational knowledge engine. The server requires an API key and offers configuration examples for seamless setup and development.

    • 64
    • MCP
    • SecretiveShell/MCP-wolfram-alpha
  • Plane MCP Server

    Plane MCP Server

    Enables LLMs to manage Plane.so projects and issues via the Model Context Protocol.

    Plane MCP Server provides a standardized interface to connect large language models with Plane.so project management APIs. It enables LLMs to interact directly with project and issue data, supporting tasks such as listing projects, retrieving detailed information, creating and updating issues, while prioritizing user control and security. Installation is streamlined through tools like Smithery, and configuration supports multiple clients including Claude for Desktop.

    • 32
    • MCP
    • kelvin6365/plane-mcp-server
  • Climatiq MCP Server

    Climatiq MCP Server

    MCP server providing AI assistants with real-time carbon emissions calculations via Climatiq API.

    Climatiq MCP Server implements the Model Context Protocol to bridge AI assistants with the Climatiq API for precise carbon emissions calculations. It exposes a set of tools for various emissions scenarios, including electricity use, travel, freight, and more. The server generates resource URIs for detailed emission reports and provides natural language explanations on climate impact. Configuration is streamlined via environment variables, CLI tools, or files, supporting easy integration with platforms like Claude Desktop.

    • 6
    • MCP
    • jagan-shanmugam/climatiq-mcp-server
  • mcp-time

    mcp-time

    A Model Context Protocol server for time and date operations

    mcp-time is a Model Context Protocol (MCP) server that enables AI assistants and MCP clients to perform standardized time and date-related operations. It provides natural language parsing for relative time expressions, supports flexible formatting, and allows manipulation and comparison of times. The server offers multiple integration methods, including stdio, HTTP stream, Docker, and npx for compatibility with various clients. It is designed for robust time handling and easy integration with AI tools.

    • 8
    • MCP
    • TheoBrigitte/mcp-time
  • OpenAI MCP Server

    OpenAI MCP Server

    Bridge between Claude and OpenAI models using the MCP protocol.

    OpenAI MCP Server enables direct querying of OpenAI language models from Claude via the Model Context Protocol (MCP). It provides a configurable Python server that exposes OpenAI APIs as MCP endpoints. The server is designed for seamless integration, requiring simple configuration updates and environment variable setup. Automated testing is supported to verify connectivity and response from the OpenAI API.

    • 77
    • MCP
    • pierrebrunelle/mcp-server-openai
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results