mcp-rpn
MCP server that exposes an RPN calculator
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 stackdup- Duplicate top of stackswap- Swap top two elements
Examples:
3 4 +returns710 5 2 + * 2 -returns323 2 /returns1.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
Metadata
Release files for mcp-rpn 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_rpn-0.1.1.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_rpn-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / mcp_rpn-0.1.1.tar.gz
| Download URL | mcp_rpn-0.1.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de7c832b68ee4401153616a78daebf40fdaba478704bae98dd6421a976c6876e
|
|
BLAKE2b-256 checksum How to use checksums |
bba9d7c7de3d5a7695e132ca0f074b3fda8f746e8dc70fd3acd672df64e9ac63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.
Transparency logRelease files / mcp_rpn-0.1.1-py3-none-any.whl
| Download URL | mcp_rpn-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5efcc21c9c9660f09987eec16dc624e60da51689e68fcf5841959ccbe5a34495
|
|
BLAKE2b-256 checksum How to use checksums |
3cb2a64f2cc26086f8dd4dcfd10f3b527532fe91e11db2c5847215989e83da5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.
Transparency log