Skip to main content
Glama
Calculator MCP

Calculator MCP

by kelseyee

计算器 MCP

基于 Model Context Protocol (MCP) 的数值计算器,提供了简单的加减乘除、幂运算、平方根运算和整数阶乘运算。

Tools

{
  "tools": [
    {
      "name": "add",
      "description": "执行浮点数加法运算",
      "inputSchema": {
        "type": "object",
        "properties": {
          "a": {
            "title": "A",
            "type": "number"
          },
          "b": {
            "title": "B",
            "type": "number"
          }
        },
        "required": [
          "a",
          "b"
        ],
        "title": "addArguments"
      }
    },
    {
      "name": "subtract",
      "description": "执行浮点数减法运算",
      "inputSchema": {
        "type": "object",
        "properties": {
          "a": {
            "title": "A",
            "type": "number"
          },
          "b": {
            "title": "B",
            "type": "number"
          }
        },
        "required": [
          "a",
          "b"
        ],
        "title": "subtractArguments"
      }
    },
    {
      "name": "multiply",
      "description": "执行浮点数乘法运算",
      "inputSchema": {
        "type": "object",
        "properties": {
          "a": {
            "title": "A",
            "type": "number"
          },
          "b": {
            "title": "B",
            "type": "number"
          }
        },
        "required": [
          "a",
          "b"
        ],
        "title": "multiplyArguments"
      }
    },
    {
      "name": "divide",
      "description": "执行浮点数除法运算\n    Args:\n        b: 除数(必须非零)\n    ",
      "inputSchema": {
        "type": "object",
        "properties": {
          "a": {
            "title": "A",
            "type": "number"
          },
          "b": {
            "title": "B",
            "type": "number"
          }
        },
        "required": [
          "a",
          "b"
        ],
        "title": "divideArguments"
      }
    },
    {
      "name": "power",
      "description": "计算幂运算",
      "inputSchema": {
        "type": "object",
        "properties": {
          "base": {
            "title": "Base",
            "type": "number"
          },
          "exponent": {
            "title": "Exponent",
            "type": "number"
          }
        },
        "required": [
          "base",
          "exponent"
        ],
        "title": "powerArguments"
      }
    },
    {
      "name": "sqrt",
      "description": "计算平方根",
      "inputSchema": {
        "type": "object",
        "properties": {
          "number": {
            "title": "Number",
            "type": "number"
          }
        },
        "required": [
          "number"
        ],
        "title": "sqrtArguments"
      }
    },
    {
      "name": "factorial",
      "description": "计算整数阶乘",
      "inputSchema": {
        "type": "object",
        "properties": {
          "n": {
            "title": "N",
            "type": "integer"
          }
        },
        "required": [
          "n"
        ],
        "title": "factorialArguments"
      }
    }
  ]
}

Related MCP server: Calculator MCP Server

MCP 服务器配置

[
  {
    "mcpServers": {
        "calculator": {
        "command": "uvx",
        "args": [
            "mcp-calculator-kel@latest"
            ]
        }
    }
  }
]

Available Tools

7 tools
addB

执行浮点数加法运算

Inputs: a (required), b (required). Returns: result

divideB

执行浮点数除法运算 Args: b: 除数(必须非零)

Inputs: a (required), b (required). Returns: result

factorialB

计算整数阶乘

Inputs: n (required). Returns: result

multiplyC

执行浮点数乘法运算

Inputs: a (required), b (required). Returns: result

powerC

计算幂运算

Inputs: base (required), exponent (required). Returns: result

sqrtC

计算平方根

Inputs: number (required). Returns: result

subtractC

执行浮点数减法运算

Inputs: a (required), b (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct mathematical operation: addition, subtraction, multiplication, division, exponentiation, square root, and factorial. There is no overlap in purpose, and an agent can easily select the correct tool based on the desired operation.

    Naming Consistency5/5

    All tool names are single, lowercase verbs (e.g., add, subtract, multiply) that directly describe the operation. The naming is perfectly consistent throughout the set, with no deviations in style or pattern.

    Tool Count5/5

    With 7 tools, this server is well-scoped for a calculator, covering core arithmetic operations (add, subtract, multiply, divide) and common advanced functions (power, sqrt, factorial). Each tool earns its place without being excessive or insufficient for the domain.

    Completeness4/5

    The tool set covers essential arithmetic and basic mathematical functions well, but there are minor gaps such as missing trigonometric functions (e.g., sin, cos) or logarithmic operations. However, agents can still perform most common calculator tasks effectively with the provided tools.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      A Model Context Protocol server that provides basic calculator functionality for LLMs, enabling them to perform mathematical operations like addition, subtraction, multiplication, division, modulo, and square root.
      6
      235 npm
      15
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides basic arithmetic operations and advanced mathematical functions through the Model Context Protocol (MCP), with features like calculation history tracking and expression evaluation.
      1
      -
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      A calculator server that exposes mathematical functions as tools (add, subtract, multiply, divide, square, power, square root), enabling language models to perform calculations through Model Context Protocol (MCP).
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides basic and advanced mathematical operations including addition, subtraction, multiplication, division, power, square root, and factorial calculations through an SSE-based MCP interface.
      MIT