by githejie
mcp-server-calculator is a Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to perform precise numerical calculations. Its main purpose is to enhance LLM capabilities by providing accurate mathematical operation functionality.
mcp-server-calculator is a Model Context Protocol (MCP) server that provides calculator functionality to Large Language Models (LLMs). It allows LLMs to perform precise numerical calculations by integrating with this server.
Installation:
uvx
after installing uv
.
curl -LsSf https://astral.sh/uv/install.sh | sh
pip install mcp-server-calculator
. After installation, run as a script: python -m mcp_server_calculator
.Configuration: Add the following to your MCP client settings:
"mcpServers": {
"calculator": {
"command": "uvx",
"args": ["mcp-server-calculator"]
}
}
"mcpServers": {
"calculator": {
"command": "python",
"args": ["-m", "mcp_server_calculator"]
}
}
calculate
Tool: Provides a single, clear tool for evaluating expressions.
expression
(string, required): The mathematical expression to be calculated.uv
(recommended) or pip
.uv
(recommended, no specific installation needed, just run with uvx
) or pip
(pip install mcp-server-calculator
).calculate
tool.A Model Context Protocol server for calculating. This server enables LLMs to use calculator for precise numerical calculations.
calculate
- Calculates/evaluates the given expression.
expression
(string, required): Expression to be calculatedWhen 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
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
Add this to your MCP client settings:
"mcpServers": {
"calculator": {
"command": "uvx",
"args": ["mcp-server-calculator"]
}
}
Alternatively add this to your MCP client settings:
"mcpServers": {
"calculator": {
"command": "python",
"args": ["-m", "mcp_server_calculator"]
}
}
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.
Please log in to share your review and rating for this MCP.