# Uplink [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/uplink-code/mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 350  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/uplink-2

## Description
Automate a real, logged-in browser on your own device — no stored credentials, no bot detection.

## Tools
Capabilities this server exposes over MCP:

- **uplink_connect** — Start a new Uplink session for pairing a device via the Uplink Connect app. Call this before any other tool that drives the device.

AFTER this returns, in the SAME response turn, IMMEDIATELY call uplink_wait_for_device — do NOT end your turn saying "let me know when you've paired" or wait for the user to confirm. wait_for_device is the pairing-detection mechanism; see its description for the timeout-and-refresh loop. Never poll uplink_session_status as a substitute.

CRITICAL: Claude Code collapses ALL MCP tool output behind ctrl+o — the tool result is invisible unless expanded, so your response prose is the only thing the user sees. Render the pairing instructions in YOUR OWN prose, using the exact link and code from the tool result.

Pairing hands off from the user's desktop to their phone, so LEAD WITH THE LINK: on iPhone, opening the link (or scanning a QR) launches the Connect App Clip and pairs instantly, no install. Give the 6-digit code as the SECONDARY path (Android, or when Connect is already open). Render roughly:
   ```
   ^ Uplink session started! Pair your phone:
   • iPhone — open this link on your phone to pair instantly (Connect App Clip, no install): http://localhost:4100/link/s/<uuid>
   • Android / Connect already open — enter code 123-456 (expires in 30s)
   ```
   If the tool result includes a "Link copied to your clipboard" line, surface it too — the user can paste the link onto their iPhone via Universal Clipboard.

The user can also scan a QR — mention they can ask for one (only call uplink_get_qr if they explicitly ask).

If the user mentions a custom SDK implementation, also include the JWT line from the tool result.

Do not paraphrase or omit the link/code — print them verbatim.
- **uplink_refresh_pairing_code** — Mint a fresh 6-digit pairing code for the active session. Use this if the previous code expired (30s TTL) before the user typed it — the session itself stays valid, only the OTP rotates. Surface the new code in YOUR OWN prose, same format as uplink_connect (XXX-XXX), e.g.:
   `New pairing code: 123-456 (expires in 30s)`
Claude Code collapses tool output; the code must be visible in your prose.
- **uplink_get_qr** — Render the active session's pairing URL as an ASCII QR code. Opt-in: only call when the user explicitly asks to see a QR (e.g., 'show me a QR' / 'I want to scan').

CRITICAL: Claude Code collapses tool output behind ctrl+o. After calling this tool, you MUST paste the returned QR ASCII art VERBATIM into your own response prose — every line of unicode half-blocks, exactly as returned. Do not say 'scan above' or 'see the QR' — those refer to the collapsed tool output which the user cannot see. The user will only see what you write directly. Yes, this is verbose, but the user explicitly asked for the QR; render it.
- **uplink_wait_for_device** — Block until a device finishes pairing on the active session, then return its metadata (deviceModel, platform, platformVersion, deviceType). Resolves immediately if a device is already paired.

Default timeout is intentionally short (25s, under the 30s OTP TTL) so each call returns control to you in time to refresh the code before it expires. When this errors with `pairing_timeout` and the user hasn't indicated they're done:

1. Call `uplink_refresh_pairing_code` to mint a fresh code.
2. Surface the new code in YOUR OWN prose (same XXX-XXX format as uplink_connect):
   `New pairing code: 123-456 (expires in 30s)`
3. Call `uplink_wait_for_device` again to keep waiting.

Keep looping until either (a) the call returns successfully (device paired), (b) the user says to stop, or (c) the user says they've paired (still call wait_for_device once more — it returns immediately if the device is already there). This loop gives the user windows between iterations to interrupt or change approach.
- **uplink_session_status** — Return whether a session is active and whether a device is paired to it.
- **uplink_get_current_url** — Returns the current URL of the device's active page.
- **uplink_get_dom_snapshot** — Snapshot the DOM of the active device. Returns the body tree (formatted for LLM consumption) plus head metadata (title, base, meta tags, link rels).
- **uplink_evaluate_javascript** — Run a JS expression in the device's page context and return the result. Can take either a single expression (`document.title`) or a statement block (`const r = await fetch(...); return r.json()`).
- **uplink_await_network_request** — Wait for the next network request matching the given criteria, which AND together. Give at least one — `body_pattern` is what identifies a request when the URL does not. Returns method, URL, status, headers, and a body preview.
- **uplink_run_script** — Execute a script against the device. The script body has `page` and `console` bound. Returns the script's completion value as `return_value`, plus counts of captured flows + logs and any error. The code runs as a function body, so `return` the value you want back — don't write it to the DOM and read it back with a snapshot. Return only what you need — the fields you're after, not a whole response body or DOM dump — so the value stays under 8192 characters. Past that it comes back as a truncated `preview`; when the value came from a page call, `uplink_list_commands` has it in full.
- **uplink_read_logs** — Return captured console logs from `uplink_run_script` invocations on the active session. Optional `level` filter and `limit`.
- **uplink_search_network** — Search captured network requests. Every filter is optional and they AND together; with none, returns the most recent requests. `body_pattern` searches request and response bodies as raw text and is the only thing that finds a request when one URL serves many different calls. Matches come back with the offset of each hit — pass it to uplink_get_network_request as `body_offset` to read that part of the body.
- **uplink_get_network_request** — Fetch a single captured network request by id (the id from uplink_search_network). Bodies are returned as a window: each carries `total`, `returned` and `hasMore`, so a large payload is read by paging `body_offset` rather than in one call.
- **uplink_list_commands** — List captured page commands (method, args, result/error, timing) emitted while uplink_run_script executed. Optional `method` filter and `limit`.
- **uplink_get_command_result** — Fetch a single captured page command by id (the id from uplink_list_commands).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "uplink": {
    "command": "npx",
    "args": ["-y","@uplink-code/mcp"]
  }
}
```

## Documentation

## What the Uplink MCP server does

The Uplink MCP server connects an MCP client to a real browser session running on a device you control. The paired device can be a phone or laptop, and its browser remains logged in to the sites you want to operate. This lets an AI model drive pages through an existing user session instead of relying on a separate headless browser profile.

The server is intended for browser automation where maintaining a live session matters. It does not ask you to place site credentials into the MCP configuration.

## How it works

After the MCP client connects, Uplink returns a pairing link. Open that link on the device in the Uplink Connect app to establish the connection. Once paired, the model operates the page in the device's live browser session.

During use, the model can observe the page's DOM, the browser's real network traffic, and console output. These observations provide context about what the page contains and how it responds while the model performs an operation.

## Setup and configuration

Install the published npm package as an MCP server in the client configuration:

```json
{
  "mcpServers": {
    "uplink": {
      "command": "npx",
      "args": ["-y", "@uplink-code/mcp"]
    }
  }
}
```

Before using the Uplink MCP server, authenticate with the Uplink CLI:

```bash
npx @uplink-code/cli login
```

The server reads the credentials written by that CLI login. After adding the server to an MCP client, ask the client to connect, follow the returned pairing link, and open it in Uplink Connect on the target device.

The README names Claude Code, Cursor, and Claude Desktop as compatible MCP clients. It does not document environment variables or additional server configuration options.

## Tools and capabilities

- Drive a real browser session on a paired phone or laptop.
- Use the browser's existing logged-in state.
- Observe page DOM content during an interaction.
- Observe network traffic generated by the live page.
- Observe browser console output.
- Connect through an MCP client using a pairing link.

## Limitations and notes

Uplink requires a device to pair and a browser session to be available on that device. It is therefore different from a fully isolated headless automation job that runs without a user device. The workflow also depends on the Uplink Connect app for pairing.

Credentials are handled through the Uplink CLI's local sign-in flow rather than being supplied as site credentials in the MCP configuration.

The package is published as proprietary software by Uplink. Consult the project documentation for the complete workflow and SDK reference.

_Full upstream README: https://allmcps.com/mcp/uplink-2/readme_

