MCP server that exposes an RPN calculator
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
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
uvx mcp-rpnMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-daedalus-mcp-rpn": {
"command": "uvx",
"args": [
"mcp-rpn"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencemcp-rpnpypiio.github.daedalus/mcp-rpn works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.