Command Palette

Search for a command to run...

UnylyUnyly
Browse all

RPN Calculator

FreeNot checked

Reverse Polish Notation calculator with standard math operations.

GitHubEmbed

About

Reverse Polish Notation calculator with standard math operations.

README

MCP server that exposes an RPN calculator

PyPI Python Ruff

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 stack
  • dup - Duplicate top of stack
  • swap - Swap top two elements

Examples:

  • 3 4 + returns 7
  • 10 5 2 + * 2 - returns 32
  • 3 2 / returns 1.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

from github.com/daedalus/mcp-rpn

Installing RPN Calculator

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/daedalus/mcp-rpn

FAQ

Is RPN Calculator MCP free?

Yes, RPN Calculator MCP is free — one-click install via Unyly at no cost.

Does RPN Calculator need an API key?

No, RPN Calculator runs without API keys or environment variables.

Is RPN Calculator hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install RPN Calculator in Claude Desktop, Claude Code or Cursor?

Open RPN Calculator on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare RPN Calculator with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs