Command Palette

Search for a command to run...

Назад к скиллам
скилл № 69649

playwright

Playwright MCP server for Claude Code browser automation. Use when configuring Playwright MCP, automating browser interactions, taking screenshots…

БесплатноБез исполняемых скриптов
vinnie357от vinnie357★ 30 звёзд на GitHub

Установить playwright в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Playwright MCP

The Playwright MCP server gives Claude Code agents direct browser control through 50+ tools that operate on the accessibility tree rather than screenshots. This enables fast, structured web interaction — navigating pages, clicking elements, filling forms, extracting content, and taking screenshots — without requiring vision models.

Installation

Claude Code (recommended)

# Default: bunx (preferred)
claude mcp add playwright -- bunx @playwright/mcp@latest

# Fallback: npx
claude mcp add playwright -- npx @playwright/mcp@latest

Verify the MCP server is connected by running /mcp in a Claude Code session.

Runtime Requirement

Bun or Node.js 18+ must be available. Add to your project or global mise.toml:

[tools]
bun = "latest"

See templates/mise.toml for the full template.

Configuration

Global (all sessions)

Add to ~/.claude.json to make Playwright available in every Claude Code session:

{
  "mcpServers": {
    "playwright": {
      "command": "bunx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

Per-Project

Add to .mcp.json in the project root for project-scoped configuration:

{
  "mcpServers": {
    "playwright": {
      "command": "bunx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

Configuration Flags

Pass flags after the package name in the args array or on the CLI:

claude mcp add playwright -- bunx @playwright/mcp@latest --headless --browser chromium
Flag Default Description
--browser chrome Browser engine: chrome, firefox, webkit, msedge
--headless off (headed) Run without visible browser window
--allowed-origins none Semicolon-separated trusted origins
--blocked-origins none Semicolon-separated blocked origins
--proxy-server none HTTP proxy (e.g., http://proxy:3128)
--viewport-size browser default Window size (e.g., 1280x720)
--device none Emulate device (e.g., iPhone 15)
--timeout-action 5000 Action timeout in ms
--timeout-navigation 60000 Navigation timeout in ms
--user-data-dir none Persistent browser profile path
--isolated off Use in-memory profile only
--storage-state none Load saved session state (cookies, localStorage)
--caps core only Enable optional capabilities (see below)
--config none Path to configuration file
--cdp-endpoint none Connect to existing Chrome DevTools Protocol

All flags support environment variable alternatives (e.g., PLAYWRIGHT_MCP_HEADLESS=true).

Capabilities

The MCP server provides core tools by default. Enable additional capabilities with --caps:

claude mcp add playwright -- bunx @playwright/mcp@latest --caps "network,vision,pdf,testing"
Capability Flag Description
Core always on Navigation, clicking, typing, snapshots, screenshots, tabs, dialogs
Network network Monitor requests, set up routes, intercept traffic
Storage storage Cookie/localStorage/sessionStorage CRUD, save/restore state
DevTools devtools Tracing, video recording, console access
Vision vision Coordinate-based mouse interaction (click/move/drag by x,y)
PDF pdf Save pages as PDF files
Testing testing Locator generation, element/text/value assertions

JSON Configuration with Capabilities

{
  "mcpServers": {
    "playwright": {
      "command": "bunx",
      "args": [
        "@playwright/mcp@latest",
        "--headless",
        "--caps",
        "network,vision,pdf,testing"
      ]
    }
  }
}

Common Use Cases

Web Research

Navigate to a URL and extract content when curl or fetch would be blocked:

Use browser_navigate to go to the URL, then browser_snapshot to read the page content.

Screenshot Capture

Take screenshots of web applications or local dev servers:

Use browser_navigate to the target URL, then browser_take_screenshot to capture the page.
For local dev servers, navigate to http://localhost:<port>.

Form Automation

Automate login flows, data entry, or form submission:

Use browser_snapshot to identify form elements, browser_click to focus inputs,
browser_type to enter values, then browser_click to submit.

Local Dev Testing

Connect to a running local development server for UI verification:

Navigate to http://localhost:3000 (or your dev server port).
Use browser_snapshot to inspect the rendered page structure.
Use testing capability tools for assertions (requires --caps testing).

Tool Categories

Core tools are always available. Optional tools require --caps flags.

Category Representative Tools Capability
Navigation browser_navigate, `browser_naviga
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/tools-reference.md
  • templates/mise.toml

FAQ

Что делает скилл playwright?

Playwright MCP server for Claude Code browser automation. Use when configuring Playwright MCP, automating browser interactions, taking screenshots, researching web content blocked by non-browser clients, testing web UI locally, or navigating web pages from Claude Code sessions.

Как установить скилл playwright?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл playwright запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить playwright с