loading…
Search for a command to run...
loading…
An MCP server that provides tools for evaluating Reverse Polish Notation (RPN) expressions and managing a calculator stack. It supports standard arithmetic oper
An MCP server that provides tools for evaluating Reverse Polish Notation (RPN) expressions and managing a calculator stack. It supports standard arithmetic operators along with stack operations like duplicate, swap, and clear.
MCP server that exposes an RPN calculator
pip install mcp-rpn
mcp-rpn
The 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/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-name: io.github.daedalus/mcp-rpn
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"rpn-mcp": {
"command": "npx",
"args": []
}
}
}