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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mark_anthony_calculator_mcp-1.0.20.tar.gz.
File metadata
- Download URL: mark_anthony_calculator_mcp-1.0.20.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dacb8ca4184c298195217061cdc815e6635c8df9a256d5bac167eabe2f43aa06
|
|
| MD5 |
94b013154af665a2655347c7372c5043
|
|
| BLAKE2b-256 |
2295b5f6071c444fa42560ca52605cf9ce52097abe1b2c1f632b8d9f10da951c
|
File details
Details for the file mark_anthony_calculator_mcp-1.0.20-py3-none-any.whl.
File metadata
- Download URL: mark_anthony_calculator_mcp-1.0.20-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b153c02dca7ac034033cf607922e2329b6be5762e567875c7d369b1255056d6
|
|
| MD5 |
25ea3e884a2c9eee9fed5585b5abdd30
|
|
| BLAKE2b-256 |
deea5b4d1cece64bbc7c34fcaaff7ccc8b596dded085885cbea738d83ac5ab5e
|