Try “Claude Code skills”, “MCP servers for Cursor” or “Codex” · Esc to close

Playwright MCP 🔌 MCP server Free

Microsoft's MCP server for browser automation with Playwright

Browser & testing MCP servers · Free ★ 38k · +196 this week · Apache-2.0 · updated 2026-09-28

9.1editor score
View on GitHub ↗
GitHub stars
38k
Stars this week
+196
Forks
3.2k
Licence
Apache-2.0
Last push
2026-09-28
Maintainer
microsoft
Installclaude mcp add playwright -- npx @playwright/mcp@latest

Third-party MCP servers run with your permissions. Read the source before installing, and prefer pinned versions.

Works with

Built on the open MCP standard, so it works in every app that supports MCP.

About Playwright MCP

What it does

Playwright MCP is Microsoft's MCP server for browser automation, built on the Playwright testing library. Instead of screenshots, it gives the agent structured accessibility snapshots of the page, so it can find and use elements by role and name without a vision model. For vibe coders, it is a common way to let an agent open the app it just built, click through a flow and check that the flow works. The project is Apache-2.0 licensed. Microsoft's own README says that a coding agent short on context may do better with its sibling, Playwright CLI plus Skills. MCP makes more sense for longer sessions where the browser needs to stay open.

Tools it gives your agent

  • Navigation, clicking, typing, hovering, drag and drop, form filling, dropdown selection, file uploads and dialog handling
  • browser_snapshot for the accessibility tree, plus screenshots, console messages and network requests
  • Tab management and waiting for text or elements
  • Optional tools you switch on with --caps: coordinate-based mouse control (vision), PDF export, DevTools-style tracing and video recording, and cookie or storage control

Works with

It runs locally on Node.js 18 or newer and works with any MCP client. The README includes setup steps for Claude Code, Claude Desktop, Codex, Copilot CLI, Cursor, VS Code, Gemini CLI, Cline, Goose, Kiro, Junie, Amp and Factory. You can also run it as a standalone HTTP server with --port, or as a headless Chromium container using the mcr.microsoft.com/playwright/mcp image.

How to connect

claude mcp add playwright -- npx @playwright/mcp@latest

Standard config for other clients:

{ "mcpServers": { "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] } } }

Cost and limits

It is free and open source, and you need no account or API key. The main cost is context: snapshots and the long tool list take up tokens on every run.

Safety notes

The README states that Playwright MCP is not a security boundary. By default the browser keeps a persistent profile, so logins carry over between runs. Use --isolated to keep the profile in memory instead. The --allowed-origins and --blocked-origins options help keep the agent on target, but they are not security controls. The browser_run_code_unsafe tool runs arbitrary JavaScript in the server process, so only allow it when you trust the prompt.

browser testing

Pros

  • Reliable, fast, no vision model needed
  • Official Microsoft project

Cons

  • Adds many tools to context

Chrome DevTools MCP 🔌 MCP serverFree

Official Chrome DevTools MCP server: debug, inspect and profile pages from your agent

★ 53k · +281 this week

Browserbase MCP 🔌 MCP serverFreemium

Cloud browsers for agents, with Stagehand natural-language actions

7.8 Visit ↗

Context7 🔌 MCP serverFreemium

Up-to-date, version-specific library documentation for your coding agent

★ 63k · +180 this week

GitHub MCP Server 🔌 MCP serverFree

GitHub's official MCP server: issues, pull requests, code, Actions and security alerts

★ 33k · +132 this week

MCP Python SDK 🔌 MCP serverOpen source

The official Python SDK for building Model Context Protocol servers and clients

★ 24k · +55 this week

8.5 Visit ↗

More from microsoft

Power Platform Skills 🤖 AgentOpen source

Official Microsoft plugins for building Power Platform apps, pages and flows with Claude Code or Copilot

★ 947 · +19 this week

8.0 Visit ↗

Popular searches