What It Is

The Phones Inc MCP server gives an AI agent (Claude, Cursor, Codex or any client that speaks the Model Context Protocol) the whole Phones Inc API as tools: list your phones, start a session, look at the screen, tap, type, swipe, open apps, move files and media, build and run workflows, read 2FA codes and rent verification numbers.
It is the same API, shaped for an agent:
  • One phone per call. Each tool takes one phoneId.
  • Every action shows its effect. tap, type, swipe, key and app_open answer the screen once it has settled, as compact text rows, so the agent rarely needs a separate look.
  • Cheap looks. observe with view: "text" sends only the text on screen as rows [id, text, centreX, centreY, width, height] (a few hundred tokens). The default also sends a JPEG scaled to 768 pixels on its longer side. Images come back as image content, never as links.
  • Tap by meaning. tap takes {"text": "Sign in"}, a detected element’s label, an id from an earlier look, or pixels. A miss answers the closest candidates.
  • Waits that wait. session_start returns once the phone’s network is ready; wait_for waits for text to appear or disappear, or for the screen to stop changing.
  • Coordinates are screen pixels, the same as Touch takes, whatever size the image was sent at. Regions are [x0, y0, x1, y1] fractions of the screen.
Every tool call goes through the public API with your credential: the same phones, sessions, checks and rate limits. The full list is on MCP Tools.

Authentication

Use an API key (from app.phones.inc) in the Authorization header, exactly as for the API:
A web login token also works, with X-Phonesinc-Organization when it reaches several organizations. A missing or wrong credential is answered 401.
Anyone holding the key can control your phones. Keep it in your client’s configuration or an environment variable, never in a shared prompt or repository.

Set Up

Claude Code

Claude Desktop

Add the server to claude_desktop_config.json (Settings → Developer → Edit Config) through the stdio command:

Cursor

In ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

Codex

In ~/.codex/config.toml, with the key in the PHONES_API_KEY environment variable:

Other clients

Any client that speaks Streamable HTTP connects to https://mcp.phones.inc/mcp with the Authorization header. A client that only starts local commands uses the stdio command.

The Stdio Command

npx phonesinc mcp runs the same server on stdin/stdout. It is part of the phonesinc npm package (the same package as the API client, version 2.4.0 or later). It has no tools of its own: it forwards every request to https://mcp.phones.inc/mcp with your key.

A Typical Run

  1. phones_list: pick an online phone.
  2. session_start with its phoneId: returns when the phone is online (network: "ready").
  3. observe with view: "text": read the screen.
  4. tap {"text": "Search"}, type the query, key enter: each answers the new screen.
  5. wait_for {"text": "Results"} while it loads.
  6. session_end.
For anything that must not happen twice (posting, liking, following, commenting, sending, deleting) use commit instead of tap: it takes an idempotencyKey, and the same key never taps twice.

Resources and Prompts

Errors

A refusal is a tool error (isError: true) whose text is the API’s error:
The codes are the API’s (see Response), plus target_not_found and stale_screen for taps. Where a value had to be one of a list, the error names the allowed values.