daedalus/mpc-rpn
A MCP server with that exposes a RPN calculator
Platform-specific configuration:
{
"mcpServers": {
"mpc-rpn": {
"command": "npx",
"args": [
"-y",
"mpc-rpn"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
> MCP server that exposes an RPN calculator
[](https://pypi.org/project/mpc-rpn/) [](https://pypi.org/project/mpc-rpn/) [](https://github.com/astral-sh/ruff)
pip install mpc-rpnmpc-rpnThe server uses stdio transport for MCP protocol communication.
Evaluate an RPN (Reverse Polish Notation) expression.
{
"name": "evaluate",
"arguments": {
"expression": "3 4 +",
"show_stack": true
}
}Operators:
+ - Add- - Subtract- - Multiply/ - Divide** - Power% - ModuloCommands:
clear - Clear the stackdup - Duplicate top of stackswap - Swap top two elementsExamples:
3 4 + returns 710 5 2 + * 2 - returns 323 2 / returns 1.5Clear the calculator stack.
{
"name": "clear",
"arguments": {}
}git clone https://github.com/daedalus/mpc-rpn.git
cd mpc-rpn
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/mcp-name: io.github.daedalus/mpc-rpn
Loading reviews...