MCP.so
ログイン

Calculator MCP Server

@githejie

Calculator MCP Server について

A Model Context Protocol server for calculating.

基本情報

カテゴリ

その他

ライセンス

MIT

ランタイム

python

トランスポート

stdio

公開者

githejie

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

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

ツール

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.

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.

コメント

「その他」の他のコンテンツ