Arithmetic

Provides basic arithmetic tools (add, subtract, multiply, divide) accessible via MCP for simple calculations.
  • javascript

0

GitHub Stars

javascript

Language

7 months ago

First Indexed

3 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "yuheinakasaka-arithmetic-mcp-server": {
      "command": "node",
      "args": [
        "/Users/y_nakasaka/Documents/Cline/MCP/arithmetic-server/src/index.js"
      ]
    }
  }
}

You run a lightweight MCP server that exposes basic arithmetic tools you can call from any MCP-enabled client. It handles addition, subtraction, multiplication, and division, returning results or errors for invalid operations like division by zero. This makes it easy to integrate simple math capabilities into your workflows or chat-based helpers.

How to use

To use the arithmetic MCP server from an MCP client, request one of the available tools by name and provide the two input numbers you want to operate on. The server returns the computed result and can report an error for division by zero or invalid inputs. You can call the tools in natural language prompts from your client, for example by asking it to add two numbers, subtract one number from another, multiply two numbers, or divide one number by another.

How to install

Prerequisites you need on your machine before starting are: Node.js installed on your system and a working internet connection to install dependencies.

# Install project dependencies
npm install

# Compile TypeScript to JavaScript
npm run build

Configuration and running

This server is designed to run as a local MCP process. You configure it by starting the server with the appropriate runtime command and arguments, pointing to the built entry script.

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

Usage examples

Ask for calculations like “Add 5 and 3”, “Subtract 7 from 10”, “Multiply 6 by 8”, or “Divide 20 by 4” to obtain results directly from the MCP server.

Available tools

add

Adds two numbers and returns the sum.

subtract

Subtracts the second number from the first and returns the difference.

multiply

Multiplies two numbers and returns the product.

divide

Divides the first number by the second and returns the quotient; errors on division by zero.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational