- Home
- MCP servers
- Playwright MCP Example Server
Playwright MCP Example Server
- javascript
0
GitHub Stars
javascript
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You can run a Cloudflare-based Playwright MCP server to control a browser through a defined set of tools. This enables AI assistants to perform web automation tasks such as navigation, typing, clicking, and taking screenshots, and to interact with the browser via MCP clients like Cloudflare AI Playground or VS Code-integrated tools.
How to use
To use this server, connect an MCP client to the server’s SSE endpoint. You can run the remote MCP URL in an HTTP-based client to access the 14 available browser tools. Use a client to request actions such as navigate, type, click, and take screenshots, and the server will perform those actions in a browser session and return results.
How to install
Prerequisites: Node.js and npm, plus access to a Cloudflare Workers environment for deployment.
Install dependencies and deploy the MCP server to Cloudflare Workers:
npm ci
npx wrangler deploy
Available tools
browser_navigate
Navigate the browser to a given URL, returning the page URL and initial page state.
browser_type
Type text into an input field or element within the page, enabling form filling and search actions.
browser_clickt
Click a target element, such as a button or checkbox, and return the updated page state.
browser_take_screenshot
Capture a screenshot of the current page and return the image data and metadata.