Overview
This MCP (Model Context Protocol) server provides a dedicated calculator capability for precise numerical computations within LLM workflows. It exposes a single tool, calculate, which evaluates a mathematical expression supplied as a string in the expression parameter (required). The server can be installed and run either via the uv runtime (recommended) by installing uvx and executing mcp-server-calculator, or via Python's pip by installing mcp-server-calculator and running python -m mcp_server_calculator. Client configuration examples show how to reference the server under the 'calculator' key in mcpServers, with command/args appropriate for uvx or Python. In uv-based setups, the command is uvx and args are ['mcp-server-calculator']; in pip-based setups, the command is python and args are ['-m','mcp_server_calculator']. The project is released under the MIT License, allowing use, modification, and redistribution in accordance with the license.
Features
Calculate
Calculates and evaluates the given expression. expression (string, required): Expression to be calculated.
Who Is This For?
- LLMs:Enable LLMs to perform precise numerical calculations by invoking the calculate tool via MCP.




