Playwright Universal MCP

by xkiranj

461 downloads
Not rated
GitHub

About

A universal Playwright MCP server for browser automation in containerized environments

Details

Author
xkiranj
Downloads
461
Categories
Automation

- Multi-browser support (Chromium, Firefox, WebKit, Edge, Chrome)
- Works in containerized environments with limited privileges
- Headless and headful modes for server or debugging
- Extensive browser control:

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Playwright Universal MCP
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via pipx, pip, or from source, then install browsers with playwright install chromium. Run the server with the command playwright-universal-mcp using options like --browser, --headless, --headful, --debug, or --browser-arg. Configure it as an MCP server in Claude Desktop by adding the command and arguments to claude_desktop_config.json.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "playwright universal mcp": {
            "playwright-universal-mcp": {
                "command": "python",
                "args": [
                    "-m",
                    "venv",
                    "playwright-mcp-venv"
                ]
            }
        }
    }
}

McpServers

{
    "playwright-universal-mcp": {
        "command": "python",
        "args": [
            "-m",
            "venv",
            "playwright-mcp-venv"
        ]
    }
}

Playwright Universal MCP

A universal Model Context Protocol (MCP) server for browser automation that works reliably in containerized environments with limited privileges. It provides browser control capabilities to AI assistants like Claude, GPT-4, etc.

Features

- 🌐 Multi-browser support: Choose between Chromium, Chrome, Microsoft Edge, Firefox, or WebKit
- 🐳 Container-friendly: Works in environments with limited privileges (like Docker containers)
- πŸ‘οΈ Headless/Headful modes: Run in headless mode for server environments or headful mode for debugging
- πŸ› οΈ Extensive browser control: Navigate, click, type, take screenshots, and more
- πŸ“„ Multiple page support: Create and manage multiple browser pages/tabs

Installation

Option 1: Install with pipx (recommended)

```bash

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.