Arithmetic MCP Server

算术运算 MCP 服务器

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

功能

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

  1. 添加- 将两个数字相加
  2. 减法——减去两个数字
  3. 乘法——将两个数字相乘
  4. 除法——将两个数字相除(如果除以零则返回错误)

如何安装

  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(用于验证)

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

通过模型上下文协议提供执行基本算术运算(加法、减法、乘法、除法)的工具的服务器。

  1. 機能
    1. インストール方法
      1. Clineでの設定方法
        1. 使用例
          1. 技術的な詳細

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              A simple server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models through the Model Context Protocol.
              Last updated -
              4
              JavaScript
            • A
              security
              F
              license
              A
              quality
              A simple Model Context Protocol server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models.
              Last updated -
              4
              JavaScript
            • A
              security
              A
              license
              A
              quality
              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.
              Last updated -
              6
              180
              10
              TypeScript
              MIT License
              • Linux
            • -
              security
              -
              license
              -
              quality
              A simple implementation of a Model Context Protocol server that demonstrates core functionality including mathematical tools (add, subtract) and personalized greeting resources.
              Last updated -
              3
              Python
              GPL 3.0

            View all related MCP servers

            ID: w1jl91lkte