Skip to main content
Glama
Arithmetic MCP Server

Arithmetic MCP Server

Arithmetic operations MCP server

This MCP server provides tools to perform the four basic arithmetic operations: addition, subtraction, multiplication and division.

function

This server provides the following arithmetic tools:

  1. add - Adds two numbers

  2. subtract - subtracts two numbers

  3. multiply - multiplies two numbers

  4. divide - Divides two numbers (returns an error if dividing by zero)

Related MCP server: FastMCP Dummy Server

How to install

  1. Clone or download this repository

  2. Install the dependencies:

    npm install
  3. Compile TypeScript:

    npm run build

How to set up on Cline

To use this server with Cline, you need to edit the configuration file of the Claude Desktop App:

  1. Create or edit the configuration file in the following path:

    ~/Library/Application Support/Claude/claude_desktop_config.json
  2. Add the following (or add it inside an existing mcpServers object, if one already exists):

    {
      "mcpServers": {
        "arithmetic": {
          "command": "node",
          "args": ["/Users/y_nakasaka/Documents/Cline/MCP/arithmetic-server/src/index.js"],
          "disabled": false,
          "autoApprove": []
        }
      }
    }
  3. Restart Claude Desktop App

Usage Example

You can invoke the arithmetic tools in Cline using the prompts:

  • "Add 5 and 3."

  • "Subtract 7 from 10."

  • "Multiply 6 and 8."

  • "Divide 20 by 4."

Technical Details

This server uses the following technologies:

  • TypeScript

  • Model Context Protocol (MCP) SDK

  • Zod (for validation)

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