Playwright MCP
Enables browser automation through Playwright using accessibility tree snapshots instead of screenshots. Supports web scraping, form interactions, testing, and connecting to existing browser sessions with logged-in accounts.
README
Playwright MCP
<div align="center"> <img src="assets/playwright-logo.png" alt="Playwright Logo" width="200"> </div>
A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. Enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.
Features
- Fast and lightweight - Uses Playwright's accessibility tree, not pixel-based input
- LLM-friendly - No vision models needed, operates purely on structured data
- Deterministic - Avoids ambiguity common with screenshot-based approaches
Requirements
- Node.js 18 or newer
- Any MCP client (VS Code, Cursor, Claude Desktop, Windsurf, etc.)
Quick Start
Add to your MCP client configuration:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["playwright-mcp@latest"]
}
}
}
VS Code / Cursor
Go to Settings → MCP → Add Server and configure manually using the standard config above.
Configuration
Basic Options
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"playwright-mcp@latest",
"--headless", // Run browser in headless mode
"--browser", "chromium", // Choose browser: chromium, firefox, webkit
"--viewport-size", "1280x720" // Set viewport size
]
}
}
}
Browser Extension (Connect to Existing Browser)
Connect to your existing Chrome/Edge browser with logged-in sessions:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["playwright-mcp@latest", "--extension"]
}
}
}
See extension/README.md for extension installation.
Isolated Sessions
Run each session in an isolated browser context:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"playwright-mcp@latest",
"--isolated",
"--storage-state", "path/to/storage.json"
]
}
}
}
Common Use Cases
Web Scraping
Navigate to pages, extract data, take screenshots, and interact with forms.
Testing & Automation
Verify elements, fill forms, click buttons, and run automated workflows.
Browser Extension Integration
Connect to your existing browser to interact with pages where you're already logged in.
Available Tools
- Navigation:
browser_navigate,browser_navigate_back - Interaction:
browser_click,browser_type,browser_fill_form,browser_select_option - Inspection:
browser_snapshot,browser_take_screenshot,browser_evaluate - Tab Management:
browser_tabs(list, create, close, select) - Network:
browser_network_requests,browser_console_messages - Advanced: PDF generation, coordinate-based interactions, test assertions
Run npx playwright-mcp@latest --help for full list of options.
Documentation
License
MIT
This MCP server is for research purposes only. Any data collection or monitoring will be conducted solely for security research purposes.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.