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.
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.
Walkthrough: follow a link and verify the result
Give your browser a recognizable name, such as Research. In a client already authorized for Cloudbrowser MCP, try this prompt.
Find my running Research browser and select it.
Open https://cloudbrowser.tv/docs/cli and take a page snapshot.
Click the Connect your tools link from that snapshot.
Read the resulting URL and main heading, then give me the Live View link.list_browsersidentifies Research.cloudbrowser_select_browserbinds subsequent Playwright calls to that browser.browser_navigateopens the CLI reference.browser_snapshotsupplies a reference for the link, which the agent passes tobrowser_click.- A fresh snapshot should show the URL
https://cloudbrowser.tv/docs/connectionsand the heading Connect your tools. Open the Live View link while signed in to check that Chrome’s address bar and page match.
When a client uses a separate MCP connection for each call, pass the cloudbrowserSession returned by selection into each Playwright call. Keep that value private. Take a fresh snapshot after navigation so the agent can use the new page’s element references.
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.