MCP servers and skills
Playwright MCP on GitHub: what it does and how to use it with AI agents
Microsoft's MCP server that lets an agent drive a real browser.
Stars, license and last push from the GitHub API, checked 2026-11-01
| Repo | microsoft/playwright-mcp |
|---|---|
| Stars | 38,900+ |
| License | Apache-2.0 |
| Last push | 2026-10-31 |
| Language | TypeScript |
What Playwright MCP does
Gives your agent a browser it can control through Playwright. It works from the page accessibility tree instead of screenshots, so the agent can click, type and read pages to test your app or fill in a flow.
Who it is for
Builders who want their coding agent to check the app it just changed, and anyone automating a web task.
How to use Playwright MCP with Claude Code, Codex or Cursor
Claude Code: claude mcp add playwright npx @playwright/mcp@latestCursor or Codex: add npx @playwright/mcp@latest as an MCP server.Ask: "Open localhost:3000, sign up with a test account and tell me what breaks."Run it headless in CI with the flags listed in the README.Since v0.0.84 (Oct 31, 2026) you can keep two logins apart: open a tab with browser_tabs, action new and isolatedContext set to a name, and tabs with different names do not share cookies or storage.
Tip: Use a separate browser profile. Do not let an agent browse while logged in to accounts you care about. If pages put tokens in the URL, start it with --redact-url-params=access_token,code so those values show as <redacted> in tool output. The release notes call this a convenience, not a security feature.
The loadout for this repo
See the full tool stack, prompts and costs in Best AI setup for vibe coding.
Related repos
- Browser Use: Open-source Python library for AI agents that use a web browser.
- MCP Servers: The official reference servers for the Model Context Protocol.
Playwright MCP FAQ
What is Playwright MCP?
An MCP server from Microsoft that lets AI agents control a browser with Playwright.
Does Playwright MCP use screenshots?
By default it uses the accessibility tree, which is lighter than screenshots.
Is it free?
Yes. It is open source under Apache-2.0.
Star counts change daily. Always read a repo's license and code before running it. All repos