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
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 is streamlined with uv
. Use uvx
to directly execute mcp-server-calculator. Install uv
using the provided bash script.
Alternatively, install mcp-server-calculator
using pip: pip install mcp-server-calculator
. Run it as a script using: python -m mcp_server_calculator
.
Configure your MCP client with the following settings:
"mcpServers": {
"calculator": {
"command": "uvx",
"args": ["mcp-server-calculator"]
}
}
Alternatively, configure your MCP client with these settings:
"mcpServers": {
"calculator": {
"command": "python",
"args": ["-m", "mcp_server_calculator"]
}
}
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.
githejie/mcp-server-calculator
March 19, 2025
March 28, 2025
Python