Playwright MCP
Automate web interactions and perform web scraping tasks using the Playwright framework.
Playwright MCP Configuration
This repository contains everything needed to launch and connect to a working Playwright MCP (Model Context Protocol) server.
✅ Overview
This setup allows you to automate and inspect web pages using structured data instead of screenshots — ideal for LLM-powered tools like Claude, Cursor, and VS Code AI agents.
🛠️ Prerequisites
-
Node.js v18 or newer
-
One of the following MCP-compatible clients:
- VS Code or VS Code Insiders
- Cursor
- Claude Desktop
📁 Repository Contents
.vscode/settings.json— VS Code configuration to launch Playwright MCPpackage.json— Includes required MCP dependenciesREADME.md— This file.gitignore— Basic Node project ignore rules
🚀 Getting Started
1. Clone the Repository
git clone https://github.com/faruklmu17/playwright_mcp.git
cd playwright-mcp-config
2. Install Dependencies
npm install
This installs all required packages, including @playwright/mcp.
3. Start the MCP Server
npx playwright-mcp --port 3550
You should see output like:
MCP Server started
Web server started
You can change the port if needed, e.g.
--port=4000
4. VS Code MCP Client Configuration
Add this to your .vscode/settings.json:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest",
"--port=3550"
]
}
}
}
This tells VS Code (or Cursor) how to launch and connect to the MCP server.
5. Optional: Use Persistent or Isolated Sessions
Persistent (default)
The browser state is preserved across sessions.
Isolated Example
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest",
"--isolated",
"--storage-state=storage/state.json"
]
}
}
}
6. Additional Flags
You can enhance your MCP server using optional flags:
| Flag | Description |
|---|---|
--port <port> | Custom port (default is random/OS-assigned) |
--headless | Run without browser UI |
--device | Emulate a device (e.g., "iPhone 15") |
--vision | Enable screenshot-based vision (if supported) |
Check available flags with:
npx playwright-mcp --help
📅 Note About Browsers
You do not need to install playwright or run npx playwright install separately. The MCP package handles everything required for browser automation.
📄 .gitignore
node_modules/
.DS_Store
🤝 Contributing
Pull requests and suggestions are welcome!
📄 License
Servidores relacionados
Bright Data
patrocinadorDiscover, extract, and interact with the web - one interface powering automated access across the public internet.
Context Scraper MCP Server
A server for web crawling and content extraction using the Crawl4AI library.
Patchright Lite MCP Server
A server that wraps the Patchright SDK to provide stealth browser automation for AI models.
WebDriverIO
Automate web browsers using WebDriverIO. Supports actions like clicking, filling forms, and taking screenshots.
ScrapeBadger
Access Twitter/X data including user profiles, tweets, followers, trends, lists, and communities via the ScrapeBadger API.
Conduit
Headless browser with SHA-256 hash-chained audit trails and Ed25519-signed proof bundles. MCP server for AI agents.
GitPrism
GitPrism is a fast, token-efficient, stateless pipeline that converts public GitHub repositories into LLM-ready Markdown.
Crawl MCP
An MCP server for crawling WeChat articles. It supports single and batch crawling with multiple output formats, designed for AI tools like Cursor.
urlDNA
Dynamically scan and analyze potentially malicious URLs using the urlDNA.io
E-Commerce Intelligence MCP Server
Shopify store analysis, product catalog extraction, pricing strategy, and inventory monitoring
Chrome MCP Server
Control a Chrome browser instance using the Chrome DevTools Protocol (CDP).