Calculator MCP Server
@githejie
关于 Calculator MCP Server
A Model Context Protocol server for calculating.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-calculator": {
"command": "python",
"args": [
"-m",
"mcp_server_calculator"
]
}
}
}工具
1Calculates/evaluates the given expression.
概览
What is Calculator MCP Server?
A Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions. It provides a single tool for calculating expressions.
How to use Calculator MCP Server?
Install it via uvx (recommended) or pip install mcp-server-calculator. Then add the following configuration to your MCP client settings: for uvx use "command": "uvx", "args": ["mcp-server-calculator"]; for pip use "command": "python", "args": ["-m", "mcp_server_calculator"].
Key features of Calculator MCP Server
- Provides a single
calculatetool for expression evaluation. - Accepts a required
expressionstring parameter. - Designed for integration with any MCP‑compatible client.
- No persistent storage or external dependencies beyond Python.
- Licensed under the MIT License for free use and modification.
Use cases of Calculator MCP Server
- An LLM performing arithmetic or algebraic calculations during a conversation.
- Validating complex numerical expressions before presenting results.
- Offloading exact computation to a dedicated tool to reduce errors.
- Embedding precise mathematical capabilities into AI assistants.
FAQ from Calculator MCP Server
What tool does the Calculator MCP Server provide?
It exposes a single tool called calculate that takes an expression (string, required) and evaluates it.
How do I install the Calculator MCP Server?
You can install it using uvx (no separate install needed) or via pip install mcp-server-calculator. After pip installation, run python -m mcp_server_calculator.
How do I configure the Calculator MCP Server with my MCP client?
Add a JSON block to your client’s settings: for uvx use "command": "uvx", "args": ["mcp-server-calculator"]; for pip use "command": "python", "args": ["-m", "mcp_server_calculator"].
Does the Calculator MCP Server require any specific runtime?
It requires Python and the MCP client. When using uvx, the uv tool handles the runtime automatically.
Is the Calculator MCP Server open source?
Yes, it is licensed under the MIT License, allowing free use, modification, and distribution.
其他 分类下的更多 MCP 服务器
Codelf
unbugA search tool helps dev to solve the naming things problem.

EverArt
modelcontextprotocolModel Context Protocol Servers
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Awesome Mcp Servers
punkpeyeA collection of MCP servers.
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
评论