CF-Incidents Browser Run - Playwright MCP server is now compatible with Browser Rendering

Cloudflare Service Informational Feeds

ENF News Bot

Automated News Bot
Joined
Apr 15, 2022
Messages
2,591
We're excited to share that you can now use the Playwright MCP ↗︎ server with Browser Rendering.

Once you deploy the server, you can use any MCP client with it to interact with Browser Rendering. This allows you to run AI models that can automate browser tasks, such as taking screenshots, filling out forms, or scraping data.

Access Analytics

Playwright MCP is available as an npm package at @cloudflare/playwright-mcp ↗︎. To install it, type:

npmyarnpnpmbun

npm i -D @cloudflare/playwright-mcp



yarn add -D @cloudflare/playwright-mcp



pnpm add -D @cloudflare/playwright-mcp



bun add -d @cloudflare/playwright-mcp



Deploying the server is then as easy as:


Code:
import { env } from "cloudflare:workers";
import { createMcpAgent } from "@cloudflare/playwright-mcp";

export const PlaywrightMCP = createMcpAgent(env.BROWSER);
export default PlaywrightMCP.mount("/sse");

Check out the full code at GitHub ↗︎.

Learn more about Playwright MCP in our documentation.

Continue reading...
 
Back
Top