Playwright MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Related MCP server: MCP Playwright Server
π οΈ 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-config2. Install Dependencies
npm installThis installs all required packages, including @playwright/mcp.
3. Start the MCP Server
npx playwright-mcp --port 3550You should see output like:
MCP Server started
Web server startedYou 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 |
| Custom port (default is random/OS-assigned) |
| Run without browser UI |
| Emulate a device (e.g., "iPhone 15") |
| 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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Playwright browser automation β navigate, click, fill forms, extract, screenshot β 17 agent tools.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
AI-powered web automation. Navigate websites using AI agents for one page or a thousand
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables browser automation and web interaction through structured accessibility snapshots using Playwright. Provides fast, deterministic web page interaction without requiring screenshots or vision models.10,507,590 npm-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control web browsers through Playwright automation, providing 50+ tools for navigation, interaction, testing, accessibility audits, and visual testing across Chromium, Firefox, and WebKit.24 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides browser automation capabilities for LLMs using Playwright, leveraging structured accessibility snapshots to interact with web pages without needing vision models. It enables tasks like web navigation, data extraction, and automated testing through a lightweight and deterministic toolset.8 npmApache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables browser automation using Playwright, allowing LLMs to interact with web pages, take screenshots, generate test code, scrape web pages, and execute JavaScript in a real browser environment.13,901 npmMIT