Skip to main content

MCP server that exposes an RPN calculator

Project description

mcp-rpn

MCP server that exposes an RPN calculator

PyPI Python Ruff

Install

pip install mcp-rpn

Usage

mcp-rpn

The server uses stdio transport for MCP protocol communication.

MCP Tools

evaluate

Evaluate an RPN (Reverse Polish Notation) expression.

{
  "name": "evaluate",
  "arguments": {
    "expression": "3 4 +",
    "show_stack": true
  }
}

Operators:

  • + - Add
  • - - Subtract
  • - - Multiply
  • / - Divide
  • ** - Power
  • % - Modulo

Commands:

  • clear - Clear the stack
  • dup - Duplicate top of stack
  • swap - Swap top two elements

Examples:

  • 3 4 + returns 7
  • 10 5 2 + * 2 - returns 32
  • 3 2 / returns 1.5

clear

Clear the calculator stack.

{
  "name": "clear",
  "arguments": {}
}

Development

git clone https://github.com/daedalus/mcp-rpn.git
cd mcp-rpn
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

MCP Registry

mcp-name: io.github.daedalus/mcp-rpn

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

mcp_rpn-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

mcp_rpn-0.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_rpn-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_rpn-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_rpn-0.1.1.tar.gz
Algorithm Hash digest
SHA256 de7c832b68ee4401153616a78daebf40fdaba478704bae98dd6421a976c6876e
MD5 f6bac45a06fdd8d81e96826bccbf7db6
BLAKE2b-256 bba9d7c7de3d5a7695e132ca0f074b3fda8f746e8dc70fd3acd672df64e9ac63

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_rpn-0.1.1.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-rpn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_rpn-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_rpn-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_rpn-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5efcc21c9c9660f09987eec16dc624e60da51689e68fcf5841959ccbe5a34495
MD5 4b3c67c3d6bfbe1ca3f5d30b216dee23
BLAKE2b-256 3cb2a64f2cc26086f8dd4dcfd10f3b527532fe91e11db2c5847215989e83da5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_rpn-0.1.1-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/mcp-rpn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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