mcp-server-calculator

The Calculator MCP Server repository provides a Model Context Protocol server, enabling LLMs to perform precise calculations using a `calculate` tool that evaluates given mathematical expressions. The Calculator MCP Server

89
0

Calculator MCP Server

This is a Model Context Protocol (MCP) server designed to provide LLMs with calculator functionality for precise numerical calculations. It allows LLMs to perform calculations by leveraging the calculate tool.

Installation

Using uv (recommended)

Installation is streamlined with uv. Use uvx to directly execute mcp-server-calculator. Install uv using the provided bash script.

Using PIP

Alternatively, install mcp-server-calculator using pip: pip install mcp-server-calculator. Run it as a script using: python -m mcp_server_calculator.

Configuration

Using uv (recommended)

Configure your MCP client with the following settings:

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

Using PIP

Alternatively, configure your MCP client with these settings:

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

License

mcp-server-calculator is licensed under the MIT License, allowing free use, modification, and distribution under the license terms. See the LICENSE file for details.

Repository

GI
githejie

githejie/mcp-server-calculator

Created

March 19, 2025

Updated

March 28, 2025

Language

Python

Category

AI