Playwright Cf MCP Server

Cloudflare Playwright Tools for MCP - Template

Local serverstdioGo

What is the Playwright Cf MCP MCP server?

Playwright cf mcp mcp server connects Playwright Cf MCP to AI assistants that speak the Model Context Protocol. Cloudflare Playwright Tools for MCP - Template.

What Playwright Cf MCP does

This project demonstrates how to use Playwright with Cloudflare Workers as a Model Control Protocol (MCP) server using Cloudflare Playwright MCP.

Tools it exposes

Once connected, the assistant can call these 5 tools directly:

  • Role — Message
  • User — Go to demo.playwright.dev/todomvc
  • Assistantruns browser_navigate tool The page has been navigated to https://demo.playwright.dev/todomvc/. The page title is "React • TodoMVC". The page snapshot shows
  • Overview — This project demonstrates how to use Playwright with Cloudflare Workers as a Model Control Protocol (MCP) server
  • Deploy — The Deploy tool exposed by this server

Installing the playwright cf mcp mcp server

The server is distributed via npm as wrangler, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Where it fits

Browser automation servers are the ones people reach for when a site has no API — the assistant drives a real page instead of guessing at endpoints. Playwright Cf MCP sits in that group, and the shape of its toolset — Role, User, Assistant among others — tells you what it is really for. Worth comparing against the other browser automation servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by bmoir23, written in Go.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the playwright cf mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
RoleMessage
UserGo to demo.playwright.dev/todomvc
Assistant*runs browser_navigate tool* The page has been navigated to https://demo.playwright.dev/todomvc/. The page title is "React • TodoMVC". The page snapshot shows the content of the page, including a heading, a textbox, and
OverviewThis project demonstrates how to use [Playwright with Cloudflare Workers](https://github.com/cloudflare/playwright) as a Model Control Protocol (MCP) server using [Cloudflare Playwright MCP](https://github.com/cloudflare
DeployThe Deploy tool exposed by this server.

How to install the Playwright Cf MCP MCP server

{
  "mcpServers": {
    "cloudflare-playwright-mcp": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://[my-mcp-url].workers.dev/sse"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Playwright Cf MCP to Role.
  • Use Playwright Cf MCP to User.
  • Use Playwright Cf MCP to Assistant.

Frequently asked questions

It connects Playwright Cf MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Role, User, Assistant, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Playwright Cf MCP directly.