Skip to main content

A Model Context Protocol server for calculator operations

Project description

Calculator MCP Server

A Model Context Protocol (MCP) server that provides calculator operations (add, subtract, multiply, divide).

Installation

Via npx (Node.js - recommended)

npx @mark.anthony987654321/calculator-mcp

Via uvx (Python - recommended)

uvx mark-anthony-calculator-mcp

Local Installation

Node.js:

npm install
npm start

Python:

pip install -e .
python -m calculator_mcp

Available Tools

  • add: Add two numbers together
  • subtract: Subtract the second number from the first number
  • multiply: Multiply two numbers together
  • divide: Divide the first number by the second number

Usage

This MCP server is designed to be used with MCP-compatible clients. Configure your MCP client to use this server.

Example Configuration

For use with Claude Desktop or other MCP clients, add to your MCP configuration:

Using npx (Node.js):

{
  "mcpServers": {
    "calculator": {
      "command": "npx",
      "args": ["@mark.anthony987654321/calculator-mcp"]
    }
  }
}

Using uvx (Python):

{
  "mcpServers": {
    "calculator": {
      "command": "uvx",
      "args": ["mark-anthony-calculator-mcp"]
    }
  }
}

Development

Node.js:

# Install dependencies
npm install

# Run the server
npm start

Python:

# Install from PyPI
pip install mark-anthony-calculator-mcp
calculator-mcp

# Or install locally for development
pip install -e ".[dev]"
python -m calculator_mcp

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mark_anthony_calculator_mcp-1.0.20.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mark_anthony_calculator_mcp-1.0.20-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file mark_anthony_calculator_mcp-1.0.20.tar.gz.

File metadata

File hashes

Hashes for mark_anthony_calculator_mcp-1.0.20.tar.gz
Algorithm Hash digest
SHA256 dacb8ca4184c298195217061cdc815e6635c8df9a256d5bac167eabe2f43aa06
MD5 94b013154af665a2655347c7372c5043
BLAKE2b-256 2295b5f6071c444fa42560ca52605cf9ce52097abe1b2c1f632b8d9f10da951c

See more details on using hashes here.

File details

Details for the file mark_anthony_calculator_mcp-1.0.20-py3-none-any.whl.

File metadata

File hashes

Hashes for mark_anthony_calculator_mcp-1.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 8b153c02dca7ac034033cf607922e2329b6be5762e567875c7d369b1255056d6
MD5 25ea3e884a2c9eee9fed5585b5abdd30
BLAKE2b-256 deea5b4d1cece64bbc7c34fcaaff7ccc8b596dded085885cbea738d83ac5ab5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page