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

Installing Playwright Tools

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/cuber-it/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

Playwright

Browser automation, scraping, screenshots

Microsoftby Microsoft

Puppeteer

Browser automation and web scraping.

modelcontextprotocolby modelcontextprotocol

opentabs-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

opentabs-devby opentabs-dev

robhunter/agentdeals

1,500+ developer infrastructure deals, free tiers, and startup programs across 54 categories. Search deals, compare vendors, plan stacks, and track pricing chan

robhunterby robhunter

hlydecker/ucsc-genome-mcp

MCP server to interact with the UCSC Genome Browser API, letting you find genomes, chromosomes, and more.

hlydeckerby hlydecker

34892002/bilibili-mcp-js

A MCP server that supports searching for Bilibili content. Provides LangChain integration examples and test scripts.

34892002by 34892002

achiya-automation/safari-mcp

Native Safari browser automation for AI agents with 80+ tools. No Chrome dependency, optimized for Apple Silicon with 60% less CPU overhead.

achiya-automationby achiya-automation

agent-infra/mcp-server-browser

Browser automation capabilities using Puppeteer, both support local and remote browser connection.

bytedanceby bytedance

aparajithn/agent-scraper-mcp

Web scraping MCP server for AI agents. 6 tools: clean content extraction, structured scraping with CSS selectors, full-page screenshots via Playwright, link ext

aparajithnby aparajithn

apireno/DOMShell

Browse the web using filesystem commands (ls, cd, grep, click). 38 MCP tools map Chrome's Accessibility Tree to a virtual filesystem via a Chrome Extension.

apirenoby apireno

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