Cloudflare Playwright

v1.0.0Browser Automationstable

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

browser-renderingmcpplaywright
Share:
244
Stars
0
Downloads
0
Weekly
0/5

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

Navigate websites and interact with web pages automatically.
Capture screenshots of web applications for visual validation.
Perform automated testing of browser-based workflows.
cloudflare

Maintainer

LicenseApache 2.0
Languagetypescript
Versionv1.0.0
UpdatedMay 13, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx cloudflare-playwright-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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 ci
2

Build the Cloudflare Worker bundle

Navigate to the cloudflare directory and compile the TypeScript source into a deployable Worker bundle.

cd cloudflare
npm run build
3

Deploy 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 deploy
4

Configure 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"]
    }
  }
}
5

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.

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.

Quick Config Preview

{ "mcpServers": { "cloudflare-playwright-mcp": { "command": "npx", "args": ["-y", "cloudflare-playwright-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides