Skip to main content
Glama
QA-Shivam

Calculator MCP Server

by QA-Shivam

Calculator MCP Server

A simple Model Context Protocol server that exposes calculator tools for addition, subtraction, multiplication, and division.

Features

  • Add two numbers

  • Subtract two numbers

  • Multiply two numbersP

  • Divide two numbers with zero-division protection

Related MCP server: Node.js MCP Server

Requirements

  • Node.js 18 or newer

  • npm

Install

npm install

Run locally

node npx-server.js

Use with npx

This package exposes a CLI entry point through the bin field in package.json.

npx calculator-mcp-server

Inspect with the MCP Inspector

npx @modelcontextprotocol/inspector npx calculator-mcp-server

Claude Desktop or VS Code configuration

{
  "servers": {
    "Calculator": {
      "command": "npx",
      "args": ["-y", "sk-calculator-mcp-server"],
      "env": {}
    }
  }
}

Publish to npm

npm login
npm config set //registry.npmjs.org/:_authToken=YOUR_TOKEN
npm publish --access public

Before publishing, make sure the package name is available on npm.

Project files

  • npx-server.js: MCP server implementation

  • package.json: package metadata and CLI entry point

  • I have built this just for learning !

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A simple MCP server that provides basic calculator functionality for performing mathematical operations. Built with FastMCP and demonstrates fundamental MCP server implementation patterns.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A simple MCP server that provides a calculator tool for basic arithmetic operations.
    8
    -