Skip to main content
Glama
Arithmetic MCP Server

Arithmetic MCP Server

算术运算 MCP 服务器

该 MCP 服务器提供执行四种基本算术运算的工具:加法、减法、乘法和除法。

功能

本服务器提供以下运算工具:

  1. 添加- 将两个数字相加

  2. 减法——减去两个数字

  3. 乘法——将两个数字相乘

  4. 除法——将两个数字相除(如果除以零则返回错误)

Related MCP server: FastMCP Dummy Server

如何安装

  1. 克隆或下载此存储库

  2. 安装依赖项:

    npm install
  3. 编译 TypeScript:

    npm run build

如何在 Cline 上设置

要将此服务器与 Cline 一起使用,您需要编辑 Claude 桌面应用程序的配置文件:

  1. 在以下路径中创建或编辑配置文件:

    ~/Library/Application Support/Claude/claude_desktop_config.json
  2. 添加以下内容(或者将其添加到现有的 mcpServers 对象中,如果已经存在):

    {
      "mcpServers": {
        "arithmetic": {
          "command": "node",
          "args": ["/Users/y_nakasaka/Documents/Cline/MCP/arithmetic-server/src/index.js"],
          "disabled": false,
          "autoApprove": []
        }
      }
    }
  3. 重启 Claude 桌面应用程序

使用示例

您可以使用以下提示调用 Cline 中的算术工具:

  • “将 5 加 3。”

  • “从 10 中减去 7。”

  • “将 6 乘以 8。”

  • “用 20 除以 4。”

技术细节

该服务器使用以下技术:

  • TypeScript

  • 模型上下文协议 (MCP) SDK

  • Zod(用于验证)

Available Tools

4 tools
addD

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

divideD

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

multiplyD

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

subtractD

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

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct mathematical operation: addition, division, multiplication, and subtraction. There is no overlap in purpose, and an agent can easily distinguish between them based on their names alone.

    Naming Consistency5/5

    All tool names follow a consistent pattern of simple, lowercase verbs that directly describe the arithmetic operation. There are no deviations in style or convention across the set.

    Tool Count5/5

    With 4 tools covering the basic arithmetic operations, the count is well-scoped and appropriate for a server focused on simple calculations. Each tool earns its place without redundancy or gaps in this limited domain.

    Completeness5/5

    For a basic arithmetic server, the tool set is complete, covering all fundamental operations: addition, subtraction, multiplication, and division. There are no obvious gaps, and agents can perform essential calculations without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      A simple server that provides basic mathematical operations (sum and subtraction) through the Model Context Protocol.
      2
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides basic mathematical operations (addition, subtraction, multiplication, division) through a Model Context Protocol server. Enables MCP-compatible clients like chatbots to perform calculations by sending structured math requests.
      -