MCP client integration

Twin Browser + Cursor

Cursor is an AI-native code editor with a built-in agent that can call MCP tools. Once an MCP server is registered in Cursor’s settings, the agent can invoke its tools while you work — including driving a real browser.

MCP client3 MCP tools: run · compile_skill · run_skillBearer key auth

How Twin plugs into Cursor

Add the Twin MCP server to Cursor and its agent gains the `run`, `compile_skill`, and `run_skill` tools. Ask Cursor to perform a web task — fetch data, fill a form, check a deployed page — and it calls Twin. The first run compiles a skill; the next time you ask for something similar, the semantic dispatch cache serves it without re-running the LLM, so iterating inside the editor stays cheap.

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

app.example.com
  1. Receive goal from Cursordone
  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 Cursor

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

~/.cursor/mcp.jsonjson
{
  "mcpServers": {
    "twin-browser": {
      "url": "https://twin-browser.com/api/v1/mcp",
      "headers": { "Authorization": "Bearer tw_live_xxx" }
    }
  }
}

// In Cursor's chat:
//   "Use twin-browser to log into staging and confirm the new banner renders"

Base URL https://twin-browser.com/api/v1 · auth Authorization: Bearer tw_live_… · MCP tools run, compile_skill, run_skill.

Get started

Connect Cursor in 4 steps

Install → configure your key → make the first call. The cache takes over from there.

  1. 1
    Open MCP settings

    In Cursor, go to Settings → MCP and add a new server.

  2. 2
    Paste the Twin config

    Use the Twin MCP URL and your Bearer key in the headers.

  3. 3
    Enable the server

    Toggle it on; Cursor lists run, compile_skill, and run_skill.

  4. 4
    Ask the agent

    Prompt Cursor to do a web task — it calls run under the hood.

Why this stays cheap at scale

Most browser infrastructure re-runs the LLM on every execution, so cost climbs with usage. Twin compiles a task once via skill compilation, matches re-phrased requests to it, and replays without the model — so repeated workflows stop scaling with your token bill.

FAQ

Cursor on Twin — common questions

Do I need a plugin to use Twin in Cursor?
No. Twin is a standard MCP server, so Cursor’s native MCP support is all you need — add the server config and the tools appear.
Can Cursor reuse a skill I compiled elsewhere?
Yes. Skills are stored against your tenant, so a skill compiled from the REST API or another MCP client is available to Cursor’s agent too.

Wire up Cursor in minutes

Free to start. Usage-based credits from $29/mo, with LLM cost metered and passed through at 1×.