QA-Shivam

Calculator MCP Server

Community QA-Shivam
Updated

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

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 !

MCP Server ยท Populars

MCP Server ยท New

    marcindulak

    Functionality overview

    Local speech-to-text MCP server for Tmux on Linux (for use not only with Claude Code)

    Community marcindulak
    louchi1984-coder

    DeepSeek Code Worker MCP

    DeepSeek V4 code worker MCP for Codex Desktop, powered by Claude Code

    Community louchi1984-coder
    Moeblack

    ComfyUI-AnimaTool

    AI Tool Use API for Anima anime/illustration image generation. Supports MCP Server, HTTP API, and CLI.

    Community Moeblack
    RohanAnandPandit

    Trading212 MCP Server

    The Trading212 MCP server is a Model Context Protocol server implementation that provides seamless data connectivity to the Trading212 trading platform enabling advanced interaction capabilities via the public beta API.

    Community RohanAnandPandit
    Olanetsoft

    Midnight MCP Server

    Midnight MCP server giving AI assistants access to Midnight blockchain โ€” search contracts, analyze code, explore docs

    Community Olanetsoft