Agent skill
install-playwright-mcp
Install Playwright MCP server for browser automation in Claude Code
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/install-playwright-mcp
SKILL.md
Install Playwright MCP Server
Install the Playwright MCP server to enable browser automation capabilities.
What This Does
The Playwright MCP server provides:
- Browser automation - Navigate, click, fill forms, take screenshots
- Accessibility snapshots - LLM-friendly structured data, no vision models needed
- Fast and lightweight - Uses Playwright's accessibility tree
Installation Command
Run this command to install:
claude mcp add playwright -- npx @playwright/mcp@latest
Scope Options
--scope local(default): Available only in current project--scope project: Shared with team via.mcp.json--scope user: Available across all your projects
# Install for user (all projects)
claude mcp add playwright --scope user -- npx @playwright/mcp@latest
# Install for project (team shared)
claude mcp add playwright --scope project -- npx @playwright/mcp@latest
Headless Mode
For headless operation (no visible browser):
claude mcp add playwright -- npx @playwright/mcp@latest --headless
Common Configurations
With specific browser
claude mcp add playwright -- npx @playwright/mcp@latest --browser firefox
With custom viewport
claude mcp add playwright -- npx @playwright/mcp@latest --viewport-size 1920x1080
With isolated sessions (no persistence)
claude mcp add playwright -- npx @playwright/mcp@latest --isolated
Verify Installation
After installation:
- Restart Claude Code
- Run
/mcpto see the playwright server - Test with: "Navigate to google.com and take a snapshot"
Available Tools After Installation
browser_navigate- Go to URLbrowser_click- Click elementsbrowser_type- Type textbrowser_snapshot- Get page accessibility treebrowser_take_screenshot- Capture screenshotbrowser_fill_form- Fill multiple form fields- And many more...
Execution Instructions
When the user runs this command:
-
Determine scope from arguments or ask:
- Default to
localif not specified
- Default to
-
Run installation:
bashclaude mcp add playwright [--scope <scope>] -- npx @playwright/mcp@latest [options] -
Verify success by checking output
-
Inform user to restart Claude Code to use the new MCP server
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?