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.21.tar.gz (4.3 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.21-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mark_anthony_calculator_mcp-1.0.21.tar.gz
Algorithm Hash digest
SHA256 c5b9221cff15acdfa62f1833da1ba9170cac42439c2daaedba125069fc516564
MD5 8137bb4d829fd5261b99b9bdd0cfd308
BLAKE2b-256 43da1490c80551d35d1837bbe8aac7b5c7a59ba96213d49d18917f05d4429302

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mark_anthony_calculator_mcp-1.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 2be320282ac6a8fd400c4e925c2d1c0c978ab1ad6bcd91cf13fa2a2f5a8eca6c
MD5 6bd7a89f4ef1bfef05e449c7e59ecfc9
BLAKE2b-256 c53c5634ee8a326398c9ad9774b349edd08d7055ee63d60ee1b2d5954fe90fc4

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