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 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": ["calculator-mcp"]
    }
  }
}

Development

Node.js:

# Install dependencies
npm install

# Run the server
npm start

Python:

# Install dependencies
pip install -e ".[dev]"

# Run the server
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.19.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.19-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mark_anthony_calculator_mcp-1.0.19.tar.gz
Algorithm Hash digest
SHA256 5408fdc83ba0772fcc012c08c76bd9cc14766fd17699d40d1a4786fa0fce2ce3
MD5 239b422cde2871989d477874021917d8
BLAKE2b-256 c3b972d5ca09f6f16b2c30f750de42173245efb5fe515c59f4cd3af172b96bfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mark_anthony_calculator_mcp-1.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 94232b30de30e372d47a7a6d2347bfed5143a6308c667ceac5a211b96c7b2ddb
MD5 68586d49f44e7fa70a95c8cbf6775cdf
BLAKE2b-256 c1e600a6e4c6e4315f8819d6b607bd28f0186451a54f1552c472da4fe9b5b75e

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