Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Playwright Tools

FreeNot checked

Playwright browser automation tools for MCP enabling navigation, interaction, content extraction, and semantic locators.

GitHubEmbed

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 URL
  • current_url — Current URL
  • go_back / go_forward — Browser history
  • reload — Reload page

Content

  • get_title — Page title
  • get_text / get_all_texts — Text from elements
  • get_page_content — Visible page text
  • get_html — HTML of an element
  • get_links — All links on the page
  • get_attribute — Read element attribute

Interaction

  • click — Click element
  • fill — Fill input field
  • type_text — Type character by character
  • press — Press key
  • select_option / select_option_by_text — Dropdown
  • check / uncheck — Checkbox
  • hover / focus / clear

Browser

  • screenshot / screenshot_element — Screenshots
  • wait_for / wait_for_hidden / wait_for_url — Wait for elements/state
  • set_headless — Toggle headless/headed mode
  • set_viewport — Viewport size
  • scroll_to / scroll_page — Scrolling
  • get_browser_info — Status info

Recording

  • start_recording — Start recording actions
  • stop_recording — Stop recording (shows preview)
  • save_test — Save as pytest file
  • recording_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

from github.com/cuber-it/mcp_playwright_tools

Install Playwright Tools in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install mcp-playwright-tools

Installs 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-tools

FAQ

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

Compare 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