Basic Math MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Basic Math MCP Server sum 15 and 27"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Basic Math MCP Server
A simple Model Context Protocol (MCP) server that provides basic mathematical operations.
Features
This MCP server provides two tools:
sum: Add two numbers together
subtraction: Subtract the second number from the first number
Related MCP server: MCP Add Server
Installation
Install dependencies:
npm installBuild the TypeScript code:
npm run buildUsage
Testing the server directly
npm startConnecting to AI clients (Claude Desktop, etc.)
Copy the
mcp.jsonconfiguration to your AI client's MCP configuration directoryUpdate the path in
mcp.jsonto point to your server's locationRestart your AI client
Configuration for Claude Desktop
Add this to your Claude Desktop MCP configuration file:
{
"mcpServers": {
"basic-math-server": {
"command": "node",
"args": ["/path/to/your/project/build/index.js"],
"cwd": "/path/to/your/project",
"description": "A basic math server providing sum and subtraction operations"
}
}
}Available Tools
sum
Description: Add two numbers together
Parameters:
a(number): First numberb(number): Second number
Returns: The sum of the two numbers
subtraction
Description: Subtract the second number from the first number
Parameters:
a(number): First number (minuend)b(number): Second number (subtrahend)
Returns: The result of a - b
Development
Build:
npm run buildStart:
npm startDevelopment:
npm run dev(builds and starts)
Project Structure
├── src/
│ └── index.ts # Main server implementation
├── build/ # Compiled JavaScript output
├── package.json # Node.js dependencies and scripts
├── tsconfig.json # TypeScript configuration
├── mcp.json # MCP server configuration
└── README.md # This fileAvailable Tools
2 toolssubtractionB
Subtract the second number from the first number
Inputs: a (required), b (required).
sumC
Add two numbers together
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
Scored across 2 tools
The two tools have perfectly distinct purposes: 'sum' for addition and 'subtraction' for subtraction. There is no overlap or ambiguity between them, making it impossible for an agent to confuse which tool to use for each operation.
The tool names are clear and descriptive ('sum' and 'subtraction'), but they do not follow a strict verb_noun pattern. 'sum' is a noun while 'subtraction' is a noun, which is slightly inconsistent, though both are readable and functional for this simple domain.
With only 2 tools, the server feels too thin for a 'Basic Math' domain, as it lacks fundamental operations like multiplication, division, or more advanced functions. This minimal set limits the server's utility and scope, making it incomplete for typical math tasks.
The tool surface is severely incomplete for a basic math server, missing essential operations such as multiplication, division, exponentiation, and handling of more than two numbers. This creates significant gaps that will cause agent failures when trying to perform common mathematical tasks.
Maintenance
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for Studex tools, notifications, and profile integrations
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA simple implementation of a Model Context Protocol server that demonstrates core functionality including mathematical tools (add, subtract) and personalized greeting resources.98GPL 3.0
- AlicenseDqualityDmaintenanceA minimal Model Context Protocol server that provides a simple add(a, b) tool for computing the sum of two numbers.111 npmMIT
- FlicenseNot gradedqualityNot gradedmaintenanceA minimal example server implementing the Model Context Protocol, providing addition and multiplication tools for learning and experimentation with MCP clients.1-
- AlicenseNot gradedqualityDmaintenanceA basic implementation of a Model Context Protocol server that demonstrates core functionality with simple math tools (add, subtract) and greeting resources for AI assistants like Claude.GPL 3.0