MCP.so
登录

Calculator MCP Server

@githejie

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

githejie

关于 Calculator MCP Server

A Model Context Protocol server for calculating.

Calculator MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server-calculator": {
      "command": "python",
      "args": [
        "-m",
        "mcp_server_calculator"
      ]
    }
  }
}

Calculator MCP Server 工具

1

Calculates/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 calculate tool for expression evaluation.
  • Accepts a required expression string 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.

常见问题

1

What tool does the Calculator MCP Server provide?

It exposes a single tool called `calculate` that takes an `expression` (string, required) and evaluates it.

2

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`.

3

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"]`.

4

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.

5

Is the Calculator MCP Server open source?

Yes, it is licensed under the MIT License, allowing free use, modification, and distribution.

评论

其他 分类下的更多 MCP 服务器