
Playwright MCP Server
by microsoftio.github.microsoft/playwright-mcpv0.0.82
Playwright browser automation: interact with web pages through structured accessibility snapshots.
context tax
~3,710 tok/turn25 tools
security
100/100
cold start
965 ms
freshness
Active33d ago
Our reading of Playwright, from the data
Playwright is a browser automation MCP server from microsoft, listed in the official MCP Registry.
Its 25 tools add about 3,710 tokens to every model turn, heavier than the browser automation median of 1,734 tokens across 152 measured servers (measured 2026-10-23).
Maintenance is active: the last public signal was 33 days ago (2026-10-08). For comparison, 66% of browser automation servers are active or maintained.
With 38,349 GitHub stars it ranks #5 of 1,199 browser automation servers we index.
It runs locally on your machine over stdio.
Install Playwright MCP server
Install in Claude Code
claude mcp add playwright -- npx -y @playwright/mcpInstall in Cursor
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"-y",
"@playwright/mcp"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"-y",
"@playwright/mcp"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"playwright": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@playwright/mcp"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"-y",
"@playwright/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test @playwright/mcp
Context tax
Connecting this server adds ~3,710 tokens of tool definitions to every model turn (moderate, 25 tools). Measured 2026-10-23 via a sandboxed run; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $14.84 | $0.742 |
| Claude Sonnet 5.5 | $7.42 | $0.742 |
| Claude Haiku 5.5 | $0.371 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (25)
browser_take_screenshot309 tokTake a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.
browser_emulate_media254 tokEmulate CSS media features for the page, for example switch between the light and dark color scheme. Omitted parameters are left unchanged; null clears an override.
browser_fill_form229 tokFill multiple form fields
browser_drop212 tokDrop files or MIME-typed data onto an element, as if dragged from outside the page. At least one of "paths" or "data" must be provided.
browser_find194 tokSearch the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), each shown under its path from the root of the tree, which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref.
browser_network_request190 tokReturns full details (headers and body) of a single network request, or a single part if `part` is set. Use the number from browser_network_requests.
browser_run_code_unsafe182 tokRun a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.
browser_click180 tokPerform click on a web page
browser_type172 tokType text into editable element
browser_snapshot169 tokCapture accessibility snapshot of the current page, this is better than screenshot
browser_evaluate168 tokEvaluate JavaScript expression on page or element
browser_network_requests168 tokReturns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.
browser_console_messages165 tokReturns all console messages
browser_drag157 tokPerform drag and drop between two elements
browser_select_option136 tokSelect an option in a dropdown
browser_tabs128 tokList, create, close, or select a browser tab.
browser_wait_for103 tokWait for text to appear or disappear or a specified time to pass
browser_hover96 tokHover over element on page
browser_file_upload86 tokUpload one or multiple files
browser_handle_dialog85 tokHandle a dialog
browser_press_key83 tokPress a key on the keyboard
browser_resize80 tokResize the browser window
browser_navigatehttp64 tokNavigate to a URL
browser_navigate_backhttp53 tokGo back to the previous page in the history
browser_close45 tokClose the page
Security signals
100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 33d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-08 · 33d ago · GitHub
Latest release
2026-09-28 · 43d ago · GitHub · v0.0.83
Package published
no data · npm/PyPI
Registry entry updated
2026-09-18 · 53d ago · official registry · v0.0.82
How it compares in Browser Automation
Against the most-starred browser automation servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| Playwright (this) | 38,349 | 25 | 3,710 | Active | local |
| Browser Usecompare | 118,444 | 2 | 1,623 | Active | local |
| Scrapling | 88,517 | — | not measured | Active | local |
| Chrome DevToolscompare | 53,807 | 32 | 6,117 | Active | local |
| Browsercompare | 39,318 | 21 | 1,574 | Active | local + hosted |
| Browser | 36,690 | — | not measured | Active | — |
FAQ
›How do I install the Playwright MCP server in Claude Code?
Run: claude mcp add playwright -- npx -y @playwright/mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Playwright require an API key?
No required environment variables are declared in its published metadata.
›Can I use Playwright as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Playwright in the official MCP registry?
Yes, as io.github.microsoft/playwright-mcp.
›How many tokens does Playwright add to my context?
Its tool definitions total about 3,710 tokens, resent on every turn.
Sources and method
- Official MCP Registry entry
- updated 2026-09-18
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-23
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to Playwright
Other browser automation MCP servers.
Comparing Azure & Microsoft servers? All Azure & Microsoft MCP servers, official and community.