MCP server that exposes an RPN calculator
Project description
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de7c832b68ee4401153616a78daebf40fdaba478704bae98dd6421a976c6876e
|
|
| MD5 |
f6bac45a06fdd8d81e96826bccbf7db6
|
|
| BLAKE2b-256 |
bba9d7c7de3d5a7695e132ca0f074b3fda8f746e8dc70fd3acd672df64e9ac63
|
Provenance
The following attestation bundles were made for mcp_rpn-0.1.1.tar.gz:
Publisher:
pypi-publish.yml on daedalus/mcp-rpn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_rpn-0.1.1.tar.gz -
Subject digest:
de7c832b68ee4401153616a78daebf40fdaba478704bae98dd6421a976c6876e - Sigstore transparency entry: 1264382304
- Sigstore integration time:
-
Permalink:
daedalus/mcp-rpn@e7ff5c76d6a09551214f05c34cfed53278924044 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@e7ff5c76d6a09551214f05c34cfed53278924044 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5efcc21c9c9660f09987eec16dc624e60da51689e68fcf5841959ccbe5a34495
|
|
| MD5 |
4b3c67c3d6bfbe1ca3f5d30b216dee23
|
|
| BLAKE2b-256 |
3cb2a64f2cc26086f8dd4dcfd10f3b527532fe91e11db2c5847215989e83da5c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_rpn-0.1.1-py3-none-any.whl -
Subject digest:
5efcc21c9c9660f09987eec16dc624e60da51689e68fcf5841959ccbe5a34495 - Sigstore transparency entry: 1264382427
- Sigstore integration time:
-
Permalink:
daedalus/mcp-rpn@e7ff5c76d6a09551214f05c34cfed53278924044 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@e7ff5c76d6a09551214f05c34cfed53278924044 -
Trigger Event:
release
-
Statement type: