
A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support.

A universal Model Context Protocol server for browser automation that works reliably in containerized environments with limited privileges.
Playwright Universal MCP is cataloged as an MCP server attributed to xkiranj. A universal Model Context Protocol server for browser automation that works reliably in containerized environments with limited privileges. It is categorized under browser automation. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Playwright Universal MCP are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
You can choose between Chromium, Chrome, Microsoft Edge, Firefox, or WebKit.
Tools include navigate, click, type, get_text, get_page_content, take_screenshot, new_page, switch_page, get_pages, wait_for_selector, and get_browser_info.
README.md · 71bacea9249a · Fetched 2026-11-13 11:27:24 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
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.
# Install the MCP Python SDK
pip install git+https://github.com/microsoft/mcp-python-sdk.git
# Install the MCP server globally
pipx install playwright-universal-mcp
# Install the required browsers
playwright install chromium
# Optional: install other browsers
playwright install firefox webkit msedge chrome
# Create and activate a virtual environment
python -m venv playwright-mcp-venv
source playwright-mcp-venv/bin/activate
# Install the MCP Python SDK
pip install git+https://github.com/microsoft/mcp-python-sdk.git
# Install the package
pip install playwright-universal-mcp
# Install browsers
playwright install chromium
# Clone the repository
git clone https://github.com/xkiranj/playwright-universal-mcp.git
cd playwright-universal-mcp
# Install the MCP Python SDK
pip install git+https://github.com/microsoft/mcp-python-sdk.git
# Install the package
pip install -e .
# Install browsers
playwright install chromium
playwright-universal-mcp --help
usage: playwright-universal-mcp [-h] [--browser {chromium,firefox,webkit,msedge,chrome}] [--headless] [--headful] [--debug] [--browser-arg BROWSER_ARG]
Universal Playwright MCP server with multi-browser support
options:
-h, --help show this help message and exit
--browser {chromium,firefox,webkit,msedge,chrome}, -b {chromium,firefox,webkit,msedge,chrome}
Browser to use (default: chromium)
--headless Run browser in headless mode (default: true)
--headful Run browser in headful mode (with GUI)
--debug Enable debug logging
--browser-arg BROWSER_ARG
Additional browser arguments (can be specified multiple times)
# Start with default options (Chromium in headless mode)
playwright-universal-mcp
# Use Microsoft Edge
playwright-universal-mcp --browser msedge
# Use Firefox in headful mode (visible browser window)
playwright-universal-mcp --browser firefox --headful
# Enable debug logging
playwright-universal-mcp --debug
# Pass additional arguments to the browser
playwright-universal-mcp --browser-arg="--disable-gpu" --browser-arg="--window-size=1920,1080"
To use this MCP server with Claude Desktop or other MCP-enabled applications, add the following configuration:
Add the following to your ~/.config/Claude/claude_desktop_config.json file:
{
"mcpServers": {
"browser": {
"command": "playwright-universal-mcp",
"args": ["--browser", "msedge", "--headless"]
}
}
}
To run the MCP server as a persistent service with PM2:
cat > ~/playwright-universal-mcp.config.js << 'EOF'
module.exports = {
apps: [{
name: "playwright-universal-mcp",
script: "playwright-universal-mcp",
args: "--browser msedge --headless",
watch: false,
autorestart: true,
restart_delay: 3000
}]
}
EOF
pm2 start ~/playwright-universal-mcp.config.js
pm2 save
This MCP server works well in containerized environments. Here's a simple Dockerfile example:
FROM python:3.10-slim
# Install dependencies
RUN apt-get update && apt-get install -y \
wget \
gnupg \
&& rm -rf /var/lib/apt/lists/*
# Install the package
RUN pip install playwright-universal-mcp
# Install browsers (install the ones you need)
RUN playwright install chromium
# Run the MCP server
ENTRYPOINT ["playwright-universal-mcp", "--headless"]
The MCP server provides the following tools:
navigate: Navigate to a URLclick: Click on an element by selector or texttype: Type text into an input elementget_text: Get text content from an elementget_page_content: Get the current page HTML contenttake_screenshot: Take a screenshot of the current pagenew_page: Create a new browser pageswitch_page: Switch to a different browser pageget_pages: List all available browser pageswait_for_selector: Wait for an element to be visible on the pageget_browser_info: Get information about the current browser sessionMIT License
This project builds upon:
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Playwright Universal MCP from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/playwright-universal-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support.

An MCP server that lets AI assistants browse websites and extract content using optional CSS selectors.

An MCP server that reads pages, fills forms, takes screenshots, and hands the browser to a person for logins or CAPTCHAs.