Skip to main content
skill CX Codex

playwright-mcp-server — Claude Code skill: setup and features

Enables browser automation via Playwright MCP. Lets agents navigate websites, submit forms, and inspect accessibility trees without heavy vision tokens.

no license 286 installs ★ 9 updated 2026-10-09

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/mcp-skills --skill playwright-mcp-server -a claude-code
Open on GitHub

What playwright-mcp-server does

This skill equips coding agents with Playwright browser controls driven by accessibility snapshots. Instead of inspecting rendered screenshots, the model parses a structured tree of ARIA roles and labels, which speeds up interaction and keeps context usage low.

Built-in tools include playwright_navigate, playwright_click, playwright_fill, evaluating custom JavaScript with playwright_evaluate, and capturing page screenshots. The setup runs across Chromium, Firefox, or WebKit, with full control over headless mode and timeouts.

Any target domain not explicitly listed in --allowed-hosts or the PLAYWRIGHT_MCP_ALLOWED_HOSTS variable triggers an immediate navigation block.

What it helps with

  • fill out inputs and submit forms using role-based selectors
  • extract page data without feeding full-page screenshots to vision models
  • run custom JavaScript expressions directly in the browser tab
  • save targeted element or full-page screenshots to a local path

Example prompts for the agent

  • Navigate to https://example.com and fill the email input with [email protected]
  • Get the page accessibility snapshot and click the submit button
  • Capture a screenshot of selector div.main-content into ./screenshots/page.png

How to install playwright-mcp-server

1Skills CLI (Vercel)

npx skills add reason-machines/mcp-skills --skill playwright-mcp-server -a claude-code

2Manually: put the files in place

~/.claude/skills/playwright-mcp-server/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/playwright-mcp-server/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about playwright-mcp-server

How to install playwright-mcp-server in Claude Code?

Run npx skills add reason-machines/mcp-skills --skill playwright-mcp-server -a claude-code.

Why does it use accessibility snapshots instead of screenshots?

Accessibility snapshots present page elements as clean structured data, so the language model finds inputs and buttons deterministically without image parsing overhead.

How do I fix the Host not allowed error?

Add your target domains to --allowed-hosts <hosts...> in your client configuration args, or pass * during development to bypass host verification.

Similar skills

All skills for Browser and scraping →

From the same set98

The whole set →
tradingview-mcp-assistant tradingview-mcp-assistant — a skill that hooks Claude to your local TradingView desktop app over Chrome DevTools Protocol, so the agent can read charts, edit Pine Script and set alerts. CX Codex +1 262installs lanhu-mcp-collaboration lanhu-mcp-collaboration connects your assistant to Lanhu to extract UI specifications, inspect Axure prototypes, and download slices. CX Codex +1 256installs github-mcp-server This skill connects an agent to GitHub through MCP for repository browsing, issue and pull request work, GitHub Actions checks, and code analysis. CX Codex +1 243installs google-meta-ads-ga4-mcp google-meta-ads-ga4-mcp connects your assistant to an advertising MCP server for Google Ads, Meta Ads, and GA4. Useful for managing campaigns and pulling performance reports. CX Codex +1 240installs chrome-devtools-mcp-automation chrome-devtools-mcp-automation is a Claude Code skill for controlling Chrome through DevTools MCP. It applies to browser workflows, page debugging, and performance checks. CX Codex +1 239installs ableton-live-mcp-control ableton-live-mcp-control is a Claude Code skill that connects an agent to Ableton Live via MCP. It creates MIDI clips, adds tracks and devices, captures audio, and generates spectrograms in an open Live Set. CX Codex +1 237installs xiaohongshu-mcp-integration The xiaohongshu-mcp-integration skill connects an MCP server for Xiaohongshu to an AI coding agent, covering search, publishing, account actions, and content workflows. CX Codex +1 235installs excalidraw-mcp-server Walks an agent through building MCP servers which hand back interactive hand-drawn Excalidraw diagrams, streaming updates included. CX Codex +1 235installs

Project sponsors

Companies that keep this analytics open