Playwright Tools
FreeNot checkedPlaywright browser automation tools for MCP enabling navigation, interaction, content extraction, and semantic locators.
About
Playwright browser automation tools for MCP enabling navigation, interaction, content extraction, and semantic locators.
README
MCP server for browser automation and GUI testing with Playwright.
Control a browser via chat: navigate, click, fill forms, take screenshots — and record everything as pytest test code.
Features
- Browser automation — Navigation, interaction, content extraction
- Test recording — Record actions → generate pytest code
- Dual transport — stdio (Claude Desktop) + Streamable HTTP (remote MCP)
- OAuth 2.0 — Authentication for HTTP access (optional)
Quickstart
stdio (Claude Desktop)
git clone https://github.com/cuber-it/mcp_playwright_tools.git
cd mcp_playwright_tools
python -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/playwright install chromium --with-deps
./run.sh
Claude Desktop config (~/.config/Claude/claude_desktop_config.json):
{
"mcpServers": {
"playwright": {
"command": "/path/to/mcp_playwright_tools/run.sh"
}
}
}
Streamable HTTP
./run.sh --http # Port 12201 (default)
./run.sh --http 12201 # Explicit port
./run.sh --http --headed # With browser GUI
Tools
Navigation
navigate— Open URLcurrent_url— Current URLgo_back/go_forward— Browser historyreload— Reload page
Content
get_title— Page titleget_text/get_all_texts— Text from elementsget_page_content— Visible page textget_html— HTML of an elementget_links— All links on the pageget_attribute— Read element attribute
Interaction
click— Click elementfill— Fill input fieldtype_text— Type character by characterpress— Press keyselect_option/select_option_by_text— Dropdowncheck/uncheck— Checkboxhover/focus/clear
Browser
screenshot/screenshot_element— Screenshotswait_for/wait_for_hidden/wait_for_url— Wait for elements/stateset_headless— Toggle headless/headed modeset_viewport— Viewport sizescroll_to/scroll_page— Scrollingget_browser_info— Status info
Recording
start_recording— Start recording actionsstop_recording— Stop recording (shows preview)save_test— Save as pytest filerecording_status— Current status
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
MCP_HOST |
127.0.0.1 |
Bind address (HTTP mode) |
MCP_PORT |
12201 |
Server port |
PLAYWRIGHT_HEADLESS |
true |
Browser headless/headed |
MCP_OAUTH_ENABLED |
false |
Enable OAuth |
MCP_OAUTH_SERVER_URL |
– | OAuth server URL |
MCP_PUBLIC_URL |
– | Public server URL |
Port Schema
12201— MCP Server (Streamable HTTP)12202— Health endpoint
Version
v0.2.0 — See CHANGELOG.md
Install Playwright Tools in Claude Desktop, Claude Code & Cursor
unyly install mcp-playwright-toolsInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add mcp-playwright-tools -- uvx mcp-playwright-toolsFAQ
Is Playwright Tools MCP free?
Yes, Playwright Tools MCP is free — one-click install via Unyly at no cost.
Does Playwright Tools need an API key?
No, Playwright Tools runs without API keys or environment variables.
Is Playwright Tools hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Playwright Tools in Claude Desktop, Claude Code or Cursor?
Open Playwright Tools on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Playwright
Browser automation, scraping, screenshots
by MicrosoftPuppeteer
Browser automation and web scraping.
by modelcontextprotocolopentabs-dev/opentabs
Plugin-based MCP server + Chrome extension that gives AI agents access to web applications through the user's authenticated browser session. 100+ plugins with a
by opentabs-devrobhunter/agentdeals
1,500+ developer infrastructure deals, free tiers, and startup programs across 54 categories. Search deals, compare vendors, plan stacks, and track pricing chan
by robhunterCompare Playwright Tools with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All browse MCPs
