Skip to main content
Glama

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)

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)

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

Related MCP Servers

  • -
    security
    -
    license
    -
    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.
  • -
    security
    -
    license
    -
    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.
  • 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
    60
    15
    MIT License
    • Linux
  • -
    security
    -
    license
    -
    quality
    A simple Model Context Protocol server that provides standardized tool functionality, currently implementing a basic calculator for adding two numbers together.

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YuheiNakasaka/arithmetic-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server