basic-mcp-calculator-server
Click on "Install 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-servercalculate 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: my-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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Yash-synergy/authentication_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server