Browser automation

Cloud Browser MCP: Connect an Agent to Persistent Chrome

Use Cloudbrowser MCP to select Chrome, follow a link with Playwright, and verify the result in Live View. Learn how to connect and which pages you can open.

By CloudbrowserPublished

Choose which Chrome the agent will use

In Cloudbrowser, the browser is a workspace resource with its own name, ID, and Chrome profile. Create it in the Console, then let the MCP client select it. That selection gives the agent a specific desktop to work in and gives you a way to check its actions through Live View.

This setup is useful when you want a person and an agent to look at the same browser. A page snapshot tells the agent which controls it can act on. Live View shows Chrome’s address bar, tabs, and desktop so a person can see where the work happened.

Add the hosted server and authorize access

Open the Cloudbrowser Console with a verified account and choose a running browser in your workspace. Connect to https://cloudbrowser.tv/mcp over Streamable HTTP. Create a scoped API token if your client can send a bearer header, or sign in through a registered OAuth client with the server URL as the audience. The Cloudbrowser MCP connection guide covers both paths.

Start with browsers:read to find your browser and browsers:operate to use Playwright tools. Add browsers:manage for pause, resume, restart, or fork. Hosted Playwright navigation currently allows https://cloudbrowser.tv, which is enough for the walkthrough below.

Pause between tasks or fork a prepared profile

Once your task is done, cloudbrowser_manage_browser can pause the browser. Resume starts Chrome again with the saved profile and requires a new Playwright selection. A later task can return to saved cookies and preferences, subject to the website’s own session rules. Record any unfinished work separately before pausing.

To give a second task its own browser, fork a paused source. The copy has a different ID, starts paused by default, and may inherit saved sign-ins. Lifecycle actions run asynchronously. Use the same arguments and requestId to check the status of an existing operation. The MCP lifecycle reference shows the argument format.

When to use MCP or a direct CDP connection

Use hosted MCP when your client can authenticate with Cloudbrowser and needs tools for selecting a workspace browser and operating an allowed page. For a tool that takes a CDP URL, or a workflow that needs a different website, the direct CDP connection guide shows how to attach Playwright CLI, agent-browser, or Puppeteer to a running Chrome.

Whichever client you use, start with one named browser and a result you can verify in Live View. That gives you a reliable starting point before you automate a longer workflow or share a prepared profile.