arithmetic-mcp-server
0
This project is an MCP server designed to perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It leverages the Model Context Protocol (MCP) SDK and uses TypeScript and Zod for implementation and validation respectively.
Arithmetic MCP Server
This MCP server provides tools for performing basic arithmetic operations including addition, subtraction, multiplication, and division.
Features
- add: Adds two numbers
- subtract: Subtracts one number from another
- multiply: Multiplies two numbers
- divide: Divides one number by another, returning an error for division by zero
Installation
- Clone or download this repository
- Install dependencies
- Compile TypeScript
Usage Example
You can invoke arithmetic tools with prompts such as:
- "Please add 5 and 3"
- "Subtract 7 from 10"
- "Multiply 6 and 8"
- "Divide 20 by 4"
Technical Details
The server utilizes technologies including TypeScript, Model Context Protocol (MCP) SDK, and Zod for validation.