home / mcp / cloudflare playwright mcp server
Provides browser automation via Playwright over MCP to perform navigation, typing, clicking, and screenshot tasks.
Configuration
View docs{
"mcpServers": {
"bmoir23-playwright-cf-mcp": {
"url": "https://[my-mcp-url].workers.dev/sse"
}
}
}This MCP server enables you to control a browser using a Model Control Protocol interface, powered by Playwright on Cloudflare Workers. You can perform web automation tasks such as navigation, typing, clicking, and taking screenshots through a standardized set of tools, enabling seamless interaction with AI assistants across compatible platforms.
You interact with the Cloudflare Playwright MCP server through an MCP client. Connect to the server URL provided by your deployment, then call the available tools to navigate pages, type into fields, click elements, and capture screenshots. Use simple, single actions to achieve reliable results, for example: navigate to a page, take a screenshot, or create a form entry.
Prerequisites you need before installation: Node.js and npm, and access to a Cloudflare Workers deployment workflow.
Install dependencies for the project locally:
npm ciDeploy the MCP server to Cloudflare Workers to expose the MCP endpoint for clients.
Deploy the server using the provided command:
npx wrangler deployLimit access to your MCP endpoint to trusted clients and consider network controls to prevent unauthorized usage. Regularly rotate any credentials or tokens used by your clients.
Navigate the browser to a specified URL and update the page state so subsequent commands run against the new page.
Type text into an input field or editable element, optionally clearing existing content first.
Click a target element such as a button or checkbox identified by its label, text, or selector.
Capture a screenshot of the current browser viewport or a targeted element and return the image data.