MCP client integration

Twin Browser + Claude Desktop

Claude Desktop is Anthropic’s desktop app for Claude, and it can launch local MCP servers listed in `claude_desktop_config.json`. Registered tools become available to Claude in the conversation.

MCP client4-step setupBearer key auth

How Twin plugs into Claude Desktop

Add one `mcpServers` entry and Claude can drive a real browser from a chat — sign into a site you have authorized, pull a report, take a screenshot, or compile a task into a skill you can replay later from anywhere. Everything runs against your tenant with your key, so a skill compiled here is the same skill your API calls and your CI can replay.

Twin is the browser execution layer your stack calls. The first run cold-compiles a skill via skill compilation; every similar request after that is matched from the cache and replayed deterministically, so your marginal cost per run trends toward zero rather than climbing with usage.

app.example.com
  1. Receive goal from Claude Desktopdone
  2. Compile DOM → token-efficient indexed statedone
  3. Match the semantic dispatch cacherunning
  4. Replay compiled skill — 0 LLM callsqueued

Wire it up

Drop Twin into Claude Desktop.

Copy, paste, and swap in your Bearer key. The first run compiles a skill; repeats match the semantic dispatch cache and replay deterministically.

claude_desktop_config.jsonjson
{
  "mcpServers": {
    "twin-browser": {
      "command": "npx",
      "args": ["-y", "twin-browser-mcp"],
      "env": { "TWIN_API_KEY": "ab_live_…" }
    }
  }
}

// Then, in the conversation:
//   "Use twin-browser to sign into app.acme.com and download this month's
//    invoice, then compile it as a skill called monthly-invoice."

Base URL https://twin-browser.com/api/v1 · auth Authorization: Bearer ab_live_… · over MCP the same engine is run_goal, compile_skill and run_skill the full tool table.

  1. Get an API key

    Create an ab_live_ key in the Twin dashboard under Keys & Secrets.

  2. Open the config

    Edit claude_desktop_config.json from Claude Desktop’s developer settings.

  3. Add the server

    Add a twin-browser entry under mcpServers with command npx, args -y twin-browser-mcp, and TWIN_API_KEY in env.

  4. Restart and use it

    Restart Claude Desktop; the tools appear and you can ask for a web task in plain language.

FAQ

Claude Desktop on Twin — common questions

Is there a URL I can paste instead of the npx command?
The Twin MCP server is the npm package `twin-browser-mcp` and it speaks stdio — your client launches it with `npx -y twin-browser-mcp` and passes `TWIN_API_KEY` in the env. There is no hosted HTTP or SSE MCP endpoint to point a URL at; every tool routes through the same `/api/v1` REST surface using your key.
Do I need Node installed?
Yes — Node 20 or newer, so that npx can fetch and launch the server. Nothing else is installed permanently; npx caches the package.

Wire up Claude Desktop in minutes.

Free to start. Usage-based credits from $29/mo — each call billed the higher of its flat action price or its metered cost.