A simple Model Context Protocol calculator server
Valid MCP server (2 strong, 4 medium validity signals). 2 known CVEs in dependencies (0 critical, 2 high severity) Package registry verified. Imported from the Official MCP Registry.
3 files analyzed · 3 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-tech-sushant-calculator-mcp": {
"args": [
"-y",
"@tech-sushant/calculator-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
A simple Model Context Protocol (MCP) server that provides basic calculator functionality through MCP tools.
This MCP server provides the following calculator tools:
npm install
npm run build
Start the MCP server:
npm start
Or run in development mode:
npm run dev
To use this calculator MCP server with an MCP client (like Claude Desktop), add it to your MCP configuration:
{
"mcpServers": {
"calculator": {
"command": "node",
"args": ["/path/to/calculator-mcp/dist/index.js"],
"env": {}
}
}
}
Adds two numbers together.
a (number), b (number)add(5, 3) returns 5 + 3 = 8Subtracts the second number from the first.
a (number), b (number)subtract(10, 4) returns 10 - 4 = 6Multiplies two numbers together.
a (number), b (number)multiply(6, 7) returns 6 × 7 = 42Divides the first number by the second.
a (number), b (number)divide(15, 3) returns 15 ÷ 3 = 5Raises the base to the power of the exponent.
base (number), exponent (number)power(2, 8) returns 2^8 = 256Calculates the square root of a number.
number (number)sqrt(16) returns √16 = 4calculator-mcp/
├── src/
│ └── index.ts # Main MCP server implementation
├── dist/ # Compiled JavaScript output
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file
npm run build
npm run dev
The calculator includes proper error handling for:
All errors are returned with appropriate error messages and the isError flag set to true.
MIT
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.