Official · MODEL CONTEXT PROTOCOL
mcp-server-calculator
A Model Context Protocol server for calculating.
连接能力
mcp-server-calculator 为 AI Agent 提供什么
来源目录未提供结构化功能列表,请在使用前阅读源仓库文档。
安全
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。
README
仓库文档
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 calculated
When 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 | shAlternatively you can install mcp-server-calculator via pip:
pip install mcp-server-calculatorAfter installation, you can run it as a script using:
python -m mcp_server_calculatorAdd 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.
社区