---
name: install-playwright-mcp-441056bba751
description: Install Playwright MCP server for browser automation in Claude Code
argument-hint: "[--scope <scope>] [--headless]"
---

# 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:

```bash
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

```bash
# 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):

```bash
claude mcp add playwright -- npx @playwright/mcp@latest --headless
```

## Common Configurations

### With specific browser
```bash
claude mcp add playwright -- npx @playwright/mcp@latest --browser firefox
```

### With custom viewport
```bash
claude mcp add playwright -- npx @playwright/mcp@latest --viewport-size 1920x1080
```

### With isolated sessions (no persistence)
```bash
claude mcp add playwright -- npx @playwright/mcp@latest --isolated
```

## Verify Installation

After installation:
1. Restart Claude Code
2. Run `/mcp` to see the playwright server
3. Test with: "Navigate to google.com and take a snapshot"

## Available Tools After Installation

- `browser_navigate` - Go to URL
- `browser_click` - Click elements
- `browser_type` - Type text
- `browser_snapshot` - Get page accessibility tree
- `browser_take_screenshot` - Capture screenshot
- `browser_fill_form` - Fill multiple form fields
- And many more...

## Execution Instructions

When the user runs this command:

1. **Determine scope** from arguments or ask:
   - Default to `local` if not specified

2. **Run installation**:
   ```bash
   claude mcp add playwright [--scope <scope>] -- npx @playwright/mcp@latest [options]
   ```

3. **Verify success** by checking output

4. **Inform user** to restart Claude Code to use the new MCP server


---
Source attribution: jpoutrin
Original project: https://github.com/jpoutrin/product-forge/blob/0ebe7aea08747cb1c121bc77652d458b9e8ee782/plugins/claude-code-dev/skills/install-playwright-mcp/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 jpoutrin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: jpoutrin
Original project: https://github.com/jpoutrin/product-forge/blob/0ebe7aea08747cb1c121bc77652d458b9e8ee782/plugins/claude-code-dev/skills/install-playwright-mcp/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering
Roles: Backend Developer, Frontend Developer, QA / Test Engineer
Specialties: Testing
Tools: Playwright
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 22a49fbe1548a7c35ecf5a655af2f9a70e5518f18bf6568acaf1873718322185
