
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@tech-sushant/calculator-mcp
Advanced tools
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
FAQs
A simple Model Context Protocol calculator server
We found that @tech-sushant/calculator-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.