MCP setup

Connect your agent to your phone.

The Pony MCP server gives any MCP-capable agent, such as Claude Desktop, Cursor or Claude Code, hands on a real Android phone running Pony. Your agent and your phone meet at an encrypted relay, and you pair them with a QR code or a link.

Last updated October 1, 2026

Before you start

  • Node.js 20 or newer on the computer that runs your agent.
  • Free and open source. The connector, the relay and the app are MIT licensed. Source: github.com/oroplex/pony.
  • Nothing else to download. The connector installs with npx -y https://github.com/oroplex/pony/releases/latest/download/pony-mcp-latest.tgz, which every example below runs for you.
  • Pony on your Android phone (Android 10+), with the consent screens done and Pony control turned on under Accessibility.
  • Optional: Shizuku on the phone. Shizuku is a free helper app that gives Pony a trusted hidden screen. Without it, most apps won't open out of sight and Pony asks before using the owner's screen instead. Tapping, typing, swiping, screenshots and the UI tree work either way. Set it up in Pony under Settings › Advanced › Set up Shizuku; Pony walks through each step.
  • A relay. Pony Cloud, https://relay.pony.karlmagendavid.com, is the default. You can also run your own with npm run relay (port 8787) on an address your phone can reach, such as a Tailscale 100.x address. localhost won't work, because on the phone it means the phone itself.

Launch the server with npx -y exactly as shown below. Don't wrap the stdio command in npm run: npm prints a banner to stdout and your MCP client will fail to parse it.

Claude Desktop

Open claude_desktop_config.json (Settings › Developer › Edit Config). On macOS it's in ~/Library/Application Support/Claude/, on Windows in %APPDATA%\Claude\. Add:

claude_desktop_config.json
{
  "mcpServers": {
    "pony": {
      "command": "npx",
      "args": ["-y", "https://github.com/oroplex/pony/releases/latest/download/pony-mcp-latest.tgz"],
      "env": {
        "PONY_RELAY": "https://relay.pony.karlmagendavid.com",
        "PONY_CLIENT_NAME": "Claude"
      }
    }
  }
}

Quit and reopen Claude Desktop. "pony" appears in the tools menu. PONY_CLIENT_NAME is the name your phone shows after pairing; without it, the server introduces itself as Grok Bot.

Cursor

Put the same block in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project), then enable "pony" under Settings › MCP.

~/.cursor/mcp.json
{
  "mcpServers": {
    "pony": {
      "command": "npx",
      "args": ["-y", "https://github.com/oroplex/pony/releases/latest/download/pony-mcp-latest.tgz"],
      "env": {
        "PONY_RELAY": "https://relay.pony.karlmagendavid.com",
        "PONY_CLIENT_NAME": "Cursor"
      }
    }
  }
}

Claude Code

Terminal · Claude Code
claude mcp add pony --scope user \
  -e PONY_RELAY=https://relay.pony.karlmagendavid.com \
  -e PONY_CLIENT_NAME="Claude Code" \
  -- npx -y https://github.com/oroplex/pony/releases/latest/download/pony-mcp-latest.tgz

Check it with claude mcp list, or /mcp in a session. Leave out --scope user to add it to the current project only.

Any other MCP client

Stdio (recommended)

Commandnpx
Args-y, https://github.com/oroplex/pony/releases/latest/download/pony-mcp-latest.tgz, optionally --relay <url>, --client <name>, --listen
EnvPONY_RELAY (default Pony Cloud), PONY_CLIENT_NAME (default "Grok Bot"), PONY_LISTEN=1

Streamable HTTP (localhost only)

From any terminal:

Terminal
npx -y https://github.com/oroplex/pony/releases/latest/download/pony-mcp-latest.tgz --http 43123 --relay https://relay.pony.karlmagendavid.com

The server listens on http://127.0.0.1:43123/mcp and accepts only localhost Host and Origin headers. It has no auth token, so never expose it to a network. Client config:

mcp.json
{
  "mcpServers": {
    "pony": { "url": "http://127.0.0.1:43123/mcp" }
  }
}

Stay listening for the phone

Add --listen (or PONY_LISTEN=1) to keep the server in wait_for_request, so what you say or type into Pony's Ask screen reaches your agent right away. It reconnects if the connection drops. One server process controls one phone.

How pairing works

  1. Ask your agent to "pair my phone". It calls pair, which gets a one-time token from the relay and returns a tap link, a QR code and a pony://pair?… link. The token expires after 5 minutes and works once.
  2. On the phone, open the tap link; one tap opens Pony and pairs. If the agent is on another screen, scan the QR in Pony instead.
  3. Accept Android's screen-capture prompt. It's asked every session, on purpose.
  4. Your phone and your agent's computer exchange X25519 public keys through the relay and derive session keys. From then on every frame is sealed with ChaCha20-Poly1305; the relay only forwards ciphertext.
  5. Compare the 6-digit safety code. The app shows it and the agent reads it from status. If they don't match, disconnect.

Tools the server exposes

ToolWhat it does
pairStart a pairing session. Returns a one-tap pairing link, the QR image, the pony://pair link and the token.
statusWhether a phone is connected, the safety code, session time left and the action log (character counts, not text).
screenshotCapture the screen as a JPEG.
ui_treeRead the accessibility tree as text. Password fields appear as [password].
tap / swipeTap a point, or swipe between two points, in screen pixels.
typeInsert text into the focused field. Refused for password fields.
keyPress back, home or recents. On the hidden screen this needs Shizuku.
open_appOpen an installed app by package name, such as com.android.settings.
wait_for_requestWait for the next thing the owner says or types to Pony.
doneReport a finished request in one sentence. The phone shows it, and says it out loud for spoken requests.
speak / ask_user / confirmSay something out loud, ask a question, or ask a yes-or-no question on the phone.
disconnectEnd the session.

Background display. Screen tools follow the phone's Run in background setting (on by default), so they target Pony's hidden screen. Pass display: "main" to use the owner's screen. If an app won't run on the hidden screen, Pony asks the owner before using their screen and the result carries a warn. If they say no, open_app returns background_refused. With Shizuku set up, most apps open on the hidden screen.

Errors include password_field, not_confirmed (the owner said no to a risky tap), locked, stopped, covered_by_popup and screenshot_failed (for example, a secure app).

Safety model

  • Consent first. Nothing works until the owner reads the explanation screens, agrees, turns on Pony control and accepts screen capture for the session.
  • End-to-end encryption between the phone and the MCP server, with a 6-digit safety code on both sides. The relay matches a one-time token, forwards sealed frames and stores nothing.
  • An explicit yes for risky actions. Send, pay, buy, order, delete, call, transfer and security changes are confirmed with the owner first.
  • Passwords are off-limits, and Pony won't unlock the phone.
  • Logs without content. Typed and spoken text is logged as character counts, not words.

More detail is on the privacy page. Questions: hello@orbitbuild.com.