basic-mcp-calculator-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-mcp-calculator-server calculate 5 plus 3"
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 MCP Calculator Server
A simple Model Context Protocol (MCP) server that provides basic calculator functionality.
Features
Add: Add two numbers together
Subtract: Subtract second number from first number
Multiply: Multiply two numbers together
Divide: Divide first number by second number (with division by zero protection)
Related MCP server: Calculator MCP Server
Installation
Install dependencies:
npm installBuild the project:
npm run buildUsage
Running the Server
npm startThe server runs on stdio and communicates using the MCP protocol.
Available Tools
add(a, b)- Returns the sum of a and bsubtract(a, b)- Returns a minus bmultiply(a, b)- Returns the product of a and bdivide(a, b)- Returns a divided by b
Example MCP Configuration
Add this to your MCP client configuration:
{
"mcpServers": {
"calculator": {
"command": "node",
"args": ["path/to/basic-mcp-calculator-server/dist/index.js"]
}
}
}Development
npm run devThis will build and start the server in one command.
License
MIT
Available Tools
4 toolsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool performs a distinct arithmetic operation with no overlap. An agent can easily select the correct tool for the intended calculation.
All tool names are single lowercase verbs representing the operation: add, subtract, multiply, divide. The naming pattern is perfectly uniform and intuitive.
Four tools is exactly right for a basic calculator, covering the essential operations without any redundancy or unnecessary extras.
The four basic arithmetic operations provide complete coverage for the stated purpose of a basic calculator. There are no obvious gaps in functionality.
Maintenance
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA simple MCP server that provides basic calculator functionality for performing mathematical operations. Built with FastMCP and demonstrates fundamental MCP server implementation patterns.-
- AlicenseNot gradedqualityDmaintenanceA simple MCP server that provides calculator tools for basic arithmetic operations with zero-division protection.ISC
- AlicenseNot gradedqualityDmaintenanceA simple MCP server that provides a calculator tool for basic arithmetic operations.6 npmMIT
- FlicenseNot gradedqualityDmaintenanceMCP server that offers basic arithmetic operations (addition, subtraction, multiplication, division) via HTTP.-