Cloudflare Playwright
An MCP server that enables AI assistants to perform web automation tasks such as navigation, clicking, and taking screenshots by running Playwright on Cloudflare Workers. It allows models to interact with the web through a set of browser control tool
What is Cloudflare Playwright?
Cloudflare Playwright is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server that enables ai assistants to perform web automation tasks such as navigation, clicking, and taking screenshots by running playwright on cloudflare workers. it allows models to interact wit...
An MCP server that enables AI assistants to perform web automation tasks such as navigation, clicking, and taking screenshots by running Playwright on Cloudflare Workers. It allows models to interact with the web through a set of browser control tool
This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- An MCP server that enables AI assistants to perform web auto
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx cloudflare-playwright-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Cloudflare Playwright
Cloudflare Playwright MCP is a browser automation server that runs Playwright on Cloudflare Workers, giving AI assistants the ability to navigate websites, click elements, fill forms, take screenshots, and capture PDFs entirely in the cloud. Unlike local Playwright setups, this server operates serverlessly on Cloudflare's edge infrastructure so there is no browser to install or maintain on the client machine. Developers use it to automate web scraping, end-to-end testing, and visual regression checks from within their AI workflows without leaving the chat interface.
Prerequisites
- Node.js 18 or later installed locally
- A Cloudflare account with Workers access (free tier works)
- Wrangler CLI installed (npm install -g wrangler) and authenticated
- An MCP-compatible client such as Claude Desktop, VS Code, or Cursor
- mcp-remote package for clients that do not natively support SSE transport
Clone the repository
Clone the official Cloudflare Playwright MCP repository and install root-level dependencies.
git clone https://github.com/cloudflare/playwright-mcp.git
cd playwright-mcp
npm ciBuild the Cloudflare Worker bundle
Navigate to the cloudflare directory and compile the TypeScript source into a deployable Worker bundle.
cd cloudflare
npm run buildDeploy to Cloudflare Workers
Move into the example deployment directory, install its dependencies, and deploy the Worker to your Cloudflare account using Wrangler. Note your deployed URL — you will need it for client configuration.
cd example
npm ci
npx wrangler deployConfigure Claude Desktop to connect via SSE
Add the server to your Claude Desktop config using the mcp-remote proxy package, replacing the placeholder URL with the Workers URL from the previous step.
{
"mcpServers": {
"cloudflare-playwright": {
"command": "npx",
"args": ["mcp-remote", "https://<your-worker>.workers.dev/sse"]
}
}
}Verify the connection
Restart Claude Desktop and open a new conversation. Ask the assistant to take a screenshot of a public URL to confirm the browser automation tools are available.
Cloudflare Playwright Examples
Client configuration
Claude Desktop configuration using mcp-remote to proxy SSE from your deployed Cloudflare Worker.
{
"mcpServers": {
"cloudflare-playwright": {
"command": "npx",
"args": ["mcp-remote", "https://<your-worker>.workers.dev/sse"]
}
}
}Prompts to try
Sample prompts that exercise the browser automation tools exposed by this server.
- "Navigate to https://demo.playwright.dev/todomvc and take a screenshot"
- "Go to https://example.com, click the first link, and describe what you see"
- "Open https://news.ycombinator.com and list the top 5 story titles"
- "Take a screenshot of https://playwright.dev and save it as a PDF"
- "Fill in the search box on https://duckduckgo.com with 'Cloudflare Workers' and show me the results"Troubleshooting Cloudflare Playwright
Claude Desktop shows 'connection refused' or cannot find the MCP server
Ensure mcp-remote is available by running 'npx mcp-remote --version'. Confirm your Worker URL is correct and publicly accessible by opening it in a browser. Restart Claude Desktop after any config change.
Wrangler deploy fails with authentication errors
Run 'npx wrangler login' to authenticate your Cloudflare account before deploying. Make sure your account has Workers enabled and you are deploying to the correct account ID.
Screenshots return blank or error responses
Cloudflare Workers have CPU time limits. Pages with heavy JavaScript may time out. Try simpler pages first to verify the deployment is working, then enable longer execution via a paid Workers plan if needed.
Frequently Asked Questions about Cloudflare Playwright
What is Cloudflare Playwright?
Cloudflare Playwright is a Model Context Protocol (MCP) server that mcp server that enables ai assistants to perform web automation tasks such as navigation, clicking, and taking screenshots by running playwright on cloudflare workers. it allows models to interact with the web through a set of browser control tool It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Cloudflare Playwright?
Follow the installation instructions on the Cloudflare Playwright GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Cloudflare Playwright?
Cloudflare Playwright works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Cloudflare Playwright free to use?
Yes, Cloudflare Playwright is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.
Cloudflare Playwright Alternatives — Similar Browser Automation Servers
Looking for alternatives to Cloudflare Playwright? Here are other popular browser automation servers you can use with Claude, Cursor, and VS Code.
Chrome DevTools MCP
★ 40.6kAI-powered Chrome automation server with natural language element detection. Control Chrome browser through MCP protocol for testing, debugging, and performance analysis. Features 91% accuracy in element location, works with free AI models, and suppo
UI TARS Desktop
★ 34.9k📇 🏠 - Browser automation capabilities using Puppeteer, both support local and remote browser connection.
Playwright
★ 32.8kA production-ready browser automation server that enables AI assistants to interact with web pages using tools for navigation, element interaction, and data extraction. It features a built-in Inspector UI and robust crash recovery for reliable automa
Page Agent
★ 18.0kJavaScript in-page GUI agent. Control web interfaces with natural language.
Chrome
★ 11.7kAn extension-based MCP server that enables AI assistants to control your browser, leveraging existing sessions and login states for automation and content analysis. It provides over 20 tools for semantic tab search, interactive element manipulation,
LAMDA
★ 7.8kThe most powerful Android RPA agent framework, next generation mobile automation.
Browse More Browser Automation MCP Servers
Explore all browser automation servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Cloudflare Playwright in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Cloudflare Playwright?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.