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:
- add - Adds two numbers
- subtract - subtracts two numbers
- multiply - multiplies two numbers
- divide - Divides two numbers (returns an error if dividing by zero)
How to install
- Clone or download this repository
- Install the dependencies:
- Compile TypeScript:
How to set up on Cline
To use this server with Cline, you need to edit the configuration file of the Claude Desktop App:
- Create or edit the configuration file in the following path:
- Add the following (or add it inside an existing mcpServers object, if one already exists):
- 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)
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
A server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityA 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 -4JavaScript
- AsecurityFlicenseAqualityA 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 -4JavaScript
- AsecurityAlicenseAqualityA 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 -612512TypeScriptMIT License
- -security-license-qualityA simple implementation of a Model Context Protocol server that demonstrates core functionality including mathematical tools (add, subtract) and personalized greeting resources.Last updated -3PythonGPL 3.0