Playwright MCP
Playwright MCP is an MCP server that provides browser automation capabilities using Playwright. It has 37,886 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y @playwright/mcp. It works with Claude Desktop, Claude Code, Cursor and VS Code.
- Official
- Web & browsing
- Apache-2.0
- Actively maintained
Install Playwright MCP
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"playwright-mcp": {
"command": "npx",
"args": [
"-y",
"@playwright/mcp"
]
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --transport stdio playwright-mcp -- npx -y @playwright/mcpCursor
{
"mcpServers": {
"playwright-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@playwright/mcp"
]
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"playwright-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@playwright/mcp"
]
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Tools (40)
Parsed from the Tools section of the README; check the repository for the current list.
browser_clickelementHuman-readable element description used to obtain permission to interact with the element
targetExact target element reference from the page snapshot, or a unique element selector
buttonButton to click, defaults to left
modifiersModifier keys to press
browser_closebrowser_console_messageslevelLevel of the console messages to return. Each level includes the messages of more severe levels. Defaults to "info".
filenameFile name to save the console messages to. Relative file names are resolved against the workspace root.
browser_dragbrowser_droppathsAbsolute paths to files to drop onto the element.
dataData to drop, as a map of MIME type to string value (e.g. {"text/plain": "hello", "text/uri-list":…
browser_emulate_mediacontrastEmulates the prefers-contrast media feature
mediaChanges the CSS media type of the page
browser_evaluatefunction() => { /* code / } or (element) => { / code */ } when element is provided
browser_file_uploadbrowser_fill_formfieldsFields to fill in
browser_findtextPlain text to search for in the page snapshot (case-insensitive substring match).
regexRegular expression to search for in the page snapshot. Matching is case-sensitive by default; wrap the pattern in…
browser_handle_dialogacceptWhether to accept the dialog.
browser_hoverbrowser_navigatebrowser_navigate_backbrowser_network_requestindex1-based index of the request, as printed by browsernetworkrequests.
partReturn only this part of the request. Omit to return full details.
browser_network_requestsstaticWhether to include successful static resources like images, fonts, scripts, etc. Defaults to false.
filterOnly return requests whose URL matches this regexp (e.g. "/api/.*user").
browser_press_keybrowser_resizewidthWidth of the browser window
heightHeight of the browser window
browser_run_code_unsafe
About Playwright MCP
A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.
- mcp
- playwright
Similar MCP servers
More web & browsing MCP servers
Browser Use
browser-use/browser-use
Control a real Chrome browser to complete any task: fill forms, extract data, book flights.
OfficialWeb & browsingPythonScrapling MCP Server
D4Vinci/Scrapling
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass.
Web & browsingPythonChrome DevTools MCP
ChromeDevTools/chrome-devtools-mcp
MCP server for Chrome DevTools.
Web & browsingTypeScriptBytedance Browser
bytedance/UI-TARS-desktop
MCP server for browser use access.
Web & browsingTypeScriptBytedance Commands
bytedance/UI-TARS-desktop
An MCP server to run arbitrary commands.
Web & browsingTypeScriptBytedance Search
bytedance/UI-TARS-desktop
MCP server for web search operations.
Web & browsingTypeScript
What is Playwright MCP?
Playwright MCP is an MCP server that provides browser automation capabilities using Playwright. It has 37,886 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y @playwright/mcp. It works with Claude Desktop, Claude Code, Cursor and VS Code. The source code is at github.com/microsoft/playwright-mcp.
How do I install the Playwright MCP MCP server?
Add the command npx -y @playwright/mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Playwright MCP free?
The server is open source under the Apache-2.0 license, so running it is free. It does not declare any required API key.
Is Playwright MCP actively maintained?
The most recent commit was on Sep 28, 2026. The latest release is v0.0.83, published Sep 28, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.