MCP 计算服务器

MCP 计算服务器

一个用于执行精确数值计算的模型上下文协议服务器。

快速入门

安装

使用 uv(推荐)

运行以下命令安装 uv 工具: curl -LsSf https://astral.sh/uv/install.sh | sh 通过 uvx 直接运行 mcp-server-calculator。

使用 PIP

通过 pip 安装: pip install mcp-server-calculator 运行服务: python -m mcp_server_calculator

配置

使用 uv(推荐)

在 MCP 客户端配置中添加: "mcpServers": { "calculator": { "command": "uvx", "args": ["mcp-server-calculator"] } }

使用 PIP

在 MCP 客户端配置中添加: "mcpServers": { "calculator": { "command": "python", "args": ["-m", "mcp_server_calculator"] } }