Skip to content

MCP Protocol

Pro users get an HTTP endpoint based on the Model Context Protocol (MCP). Cursor, Claude Desktop, and other AI tools can control browser profiles and combine with Playwright MCP for page automation.

Pro feature

MCP uses the same local service as the REST API. Sign in as Pro and copy the URL from the client API menu.

Endpoint

After the service starts:

http://localhost:{port}/mcp
  • {port} is shown in the client API menu (not fixed to 9000)
  • Transport: Streamable HTTP

Copy the full MCP URL from the client.

Built-in tools

ToolDescription
getBrowserListList profiles (id, name, group, etc.)
launchBrowserStart a profile; returns debuggingPort for Playwright
stopBrowserStop a profile

After launch, the service may attach Playwright MCP so agents can drive pages over CDP.

Configure in Cursor

  1. Start Virtual Browser and open API; confirm MCP is available (not “VIP only”)
  2. Open Settings → MCP, add an HTTP server
  3. Paste the full MCP URL from the client (e.g. http://localhost:{port}/mcp)
  4. Reload MCP in Cursor; tools such as getBrowserList and launchBrowser should appear

Example (replace port with yours):

json
{
  "mcpServers": {
    "virtual-browser": {
      "url": "http://localhost:9000/mcp"
    }
  }
}

TIP

For headless CLI startup, run VirtualBrowser.exe --cli, then --cli-print --cli-json to get port and append /mcp.

Configure in Claude Desktop

  1. Active Pro membership and a working MCP URL on the API screen
  2. Edit the Claude Desktop config file (path depends on OS—see MCP docs)
  3. Add the same HTTP entry under mcpServers and restart Claude

Example prompts

  1. “Call getBrowserList and list my profiles.”
  2. “launchBrowser id 1, then open https://example.com with Playwright.”
  3. “stopBrowser id 1.”

See Playwright integration if page automation fails after launch.

Troubleshooting

SymptomFix
VIP onlySubscribe to Pro
Connection refusedClient not running or wrong port
Empty tool listRestart client and MCP host; allow localhost in firewall
Session errorsUse a client that supports Streamable HTTP for MCP

REST API vs MCP

ApproachBest for
REST APIScripts, Playwright/Selenium over CDP, classic automation
MCPAI agents, natural language control, IDE integration

Same local port: REST under /api/*, MCP under /mcp.