{"id":370,"date":"2026-04-10T00:00:00","date_gmt":"2026-04-10T00:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/04\/10\/browser-rendering-browser-rendering-adds-chrome-devtools-protocol-cdp-and-mcp-client-support-3\/"},"modified":"2026-04-10T00:00:00","modified_gmt":"2026-04-10T00:00:00","slug":"browser-rendering-browser-rendering-adds-chrome-devtools-protocol-cdp-and-mcp-client-support-3","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/04\/10\/browser-rendering-browser-rendering-adds-chrome-devtools-protocol-cdp-and-mcp-client-support-3\/","title":{"rendered":"Browser Rendering &#8211; Browser Rendering adds Chrome DevTools Protocol (CDP) and MCP client support"},"content":{"rendered":"<p><a href=\"https:\/\/developers.cloudflare.com\/browser-rendering\/\">Browser Rendering<\/a> now exposes the <a href=\"https:\/\/developers.cloudflare.com\/browser-rendering\/cdp\/\">Chrome DevTools Protocol (CDP)<\/a>, the low-level protocol that powers browser automation. The growing ecosystem of CDP-based agent tools, along with existing CDP automation scripts, can now use Browser Rendering directly.<\/p>\n<p>Any CDP-compatible client, including <a href=\"https:\/\/developers.cloudflare.com\/browser-rendering\/cdp\/puppeteer\/\">Puppeteer<\/a> and <a href=\"https:\/\/developers.cloudflare.com\/browser-rendering\/cdp\/playwright\/\">Playwright<\/a>, can connect from any environment, whether that is <a href=\"https:\/\/developers.cloudflare.com\/workers\/\">Cloudflare Workers<\/a>, your local machine, or a cloud environment. All you need is your Cloudflare API key.<\/p>\n<p>For any existing CDP script, switching to Browser Rendering is a one-line change:<\/p>\n<div>\n<figure>\n<pre data-language=\"js\"><code class=\"language-js\"><div><div><span>const<\/span><span> <\/span><span>puppeteer<\/span><span> <\/span><span>=<\/span><span> <\/span><span>require<\/span><span>(<\/span><span>\"puppeteer-core\"<\/span><span>)<\/span><span>;<\/span><\/div><\/div><div><div>\n<\/div><\/div><div><div><span>const<\/span><span> <\/span><span>browser<\/span><span> <\/span><span>=<\/span><span> <\/span><span>await<\/span><span> <\/span><span>puppeteer<\/span><span>.<\/span><span>connect<\/span><span>(<\/span><span>{<\/span><\/div><\/div><div><div><span><span>  <\/span><\/span><span>browserWSEndpoint<\/span><span>:<\/span><\/div><\/div><div><div><span>    <\/span><span>`wss:\/\/api.cloudflare.com\/client\/v4\/accounts\/<\/span><span>${<\/span><span>ACCOUNT_ID<\/span><span>}<\/span><span>\/browser-rendering\/devtools\/browser?keep_alive=600000`<\/span><span>,<\/span><\/div><\/div><div><div><span><span>  <\/span><\/span><span>headers<\/span><span>:<\/span><span> <\/span><span>{<\/span><span> Authorization<\/span><span>:<\/span><span> <\/span><span>`Bearer <\/span><span>${<\/span><span>API_TOKEN<\/span><span>}<\/span><span>`<\/span><span> <\/span><span>},<\/span><\/div><\/div><div><div><span>}<\/span><span>)<\/span><span>;<\/span><\/div><\/div><div><div>\n<\/div><\/div><div><div><span>const<\/span><span> <\/span><span>page<\/span><span> <\/span><span>=<\/span><span> <\/span><span>await<\/span><span> <\/span><span>browser<\/span><span>.<\/span><span>newPage<\/span><span>()<\/span><span>;<\/span><\/div><\/div><div><div><span>await<\/span><span> <\/span><span>page<\/span><span>.<\/span><span>goto<\/span><span>(<\/span><span>\"https:\/\/example.com\"<\/span><span>)<\/span><span>;<\/span><\/div><\/div><div><div><span>console<\/span><span>.<\/span><span>log<\/span><span>(<\/span><span>await<\/span><span> <\/span><span>page<\/span><span>.<\/span><span>title<\/span><span>())<\/span><span>;<\/span><\/div><\/div><div><div><span>await<\/span><span> <\/span><span>browser<\/span><span>.<\/span><span>close<\/span><span>()<\/span><span>;<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<div><\/div>\n<\/figure>\n<\/div>\n<p>Additionally, MCP clients like Claude Desktop, Claude Code, Cursor, and OpenCode can now use Browser Rendering as their remote browser via the <a href=\"https:\/\/github.com\/ChromeDevTools\/chrome-devtools-mcp\" target=\"_blank\">chrome-devtools-mcp<\/a> package.<\/p>\n<p>Here is an example of how to configure Browser Rendering for Claude Desktop:<\/p>\n<div>\n<figure>\n<pre data-language=\"json\"><code class=\"language-json\"><div><div><span>{<\/span><\/div><\/div><div><div><span>  <\/span><span>\"<\/span><span>mcpServers<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>{<\/span><\/div><\/div><div><div><span>    <\/span><span>\"<\/span><span>browser-rendering<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>{<\/span><\/div><\/div><div><div><span>      <\/span><span>\"<\/span><span>command<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>\"npx\"<\/span><span>,<\/span><\/div><\/div><div><div><span>      <\/span><span>\"<\/span><span>args<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>[<\/span><\/div><\/div><div><div><span>        <\/span><span>\"-y\"<\/span><span>,<\/span><\/div><\/div><div><div><span>        <\/span><span>\"chrome-devtools-mcp@latest\"<\/span><span>,<\/span><\/div><\/div><div><div><span>        <\/span><span>\"--wsEndpoint=wss:\/\/api.cloudflare.com\/client\/v4\/accounts\/&lt;ACCOUNT_ID&gt;\/browser-rendering\/devtools\/browser?keep_alive=600000\"<\/span><span>,<\/span><\/div><\/div><div><div><span>        <\/span><span>\"--wsHeaders={<\/span><span>\"<\/span><span>Authorization<\/span><span>\"<\/span><span>:<\/span><span>\"<\/span><span>Bearer &lt;API_TOKEN&gt;<\/span><span>\"<\/span><span>}\"<\/span><\/div><\/div><div><div><span>      <\/span><span>]<\/span><\/div><\/div><div><div><span>    <\/span><span>}<\/span><\/div><\/div><div><div><span>  <\/span><span>}<\/span><\/div><\/div><div><div><span>}<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<div><\/div>\n<\/figure>\n<\/div>\n<p>To get started, refer to the <a href=\"https:\/\/developers.cloudflare.com\/browser-rendering\/cdp\/\">CDP documentation<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Browser Rendering now exposes the Chrome DevTools Protocol (CDP), the low-level protocol that powers browser automation. The growing ecosystem of CDP-based agent tools, along with existing CDP automation scripts, can now use Browser Rendering directly. Any CDP-compatible client, including Puppeteer and Playwright, can connect from any environment, whether that is Cloudflare Workers, your local machine, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=370"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}