playwright-mcp

Installation
SKILL.md

playwright-mcp

Purpose

This skill provides a Playwright-based MCP server for browser automation, enabling programmatic control of web pages via the MCP protocol. It focuses on tasks like navigating sites, interacting with elements, and filling forms, integrated with OpenClaw for AI-driven workflows.

When to Use

Use this skill for automating browser interactions in scenarios like web scraping, UI testing, or dynamic form submissions. It's ideal when you need remote browser control, such as in CI/CD pipelines, data extraction from JavaScript-heavy sites, or simulating user actions across multiple pages.

Key Capabilities

  • Launch browsers (e.g., Chromium, Firefox) and manage sessions via MCP protocol.
  • Interact with page elements: select, click, or type using methods like page.click('button').
  • Handle form filling and submissions: auto-populate fields and submit with page.fill('input[name="username"]', 'user123').
  • Support for asynchronous operations: wait for elements with page.waitForSelector('selector').
  • Error-resilient navigation: retry failed loads with built-in timeouts.
  • Configurable via JSON files, e.g., {"browser": "chromium", "headless": true}.

Usage Patterns

To use this skill, start the MCP server and send commands from OpenClaw. Always initialize with authentication via $PLAYWRIGHT_MCP_API_KEY. Pattern 1: Launch a browser session and perform actions in sequence. Pattern 2: Use in loops for repetitive tasks, like form testing. For integration, wrap calls in try-catch blocks. Example pattern: Set up server with CLI, then use API endpoints to execute scripts.

Related skills
Installs
48
GitHub Stars
5
First Seen
Mar 7, 2026