Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Rpn

FreeNot checked

An MCP server that provides tools for evaluating Reverse Polish Notation (RPN) expressions and managing a calculator stack. It supports standard arithmetic oper

GitHubEmbed

About

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.

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

Install Rpn in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install rpn-mcp

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add rpn-mcp -- uvx mcp-rpn

Step-by-step: how to install Rpn

FAQ

Is Rpn MCP free?

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

Does Rpn need an API key?

No, Rpn runs without API keys or environment variables.

Is Rpn hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

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

Open Rpn 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 with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs