home / mcp / cloudflare playwright mcp server
Provides a browser automation MCP endpoint via Cloudflare Workers for navigation, typing, clicking, and screenshots.
Configuration
View docs{
"mcpServers": {
"bmoir23-playwright-mcp-example": {
"url": "https://[my-mcp-url].workers.dev/sse"
}
}
}This Cloudflare Playwright MCP Server lets an AI assistant control a browser to perform web automation tasks such as navigating pages, typing, clicking, and taking screenshots. It provides a ready-made MCP endpoint that you can connect to from various MCP clients to run browser actions through Playwright.
Connect to the MCP server from your preferred MCP client (for example, Cloudflare AI Playground, Claude Desktop, or VS Code with Copilot). Use the URL that points to the server's SSE endpoint and enable the connection. Once connected, you can issue browser-related actions as tools, such as navigating to pages, typing into fields, clicking elements, and taking screenshots. For best results, keep requests simple and focused on a single action at a time.
Prerequisites you need before installation.
Install dependencies and deploy to Cloudflare Workers.
# Install dependencies
npm ci
# Deploy to Cloudflare Workers
npx wrangler deployConfigure your MCP clients to use the server’s SSE URL: https://[my-mcp-url].workers.dev/sse. This enables the client to connect and discover the available browser tools.
Navigates the browser to a specified URL and returns the page title and URL.
Types text into a focused input field or element on the page.
Clicks a target element on the page, such as a button or checkbox.
Captures a screenshot of the current page state and returns it as an image.