Playwright MCP Server
Let Claude drive a real browser to click, type, fill forms and read pages.
Officialby MicrosoftRuns on your computerChecked November 18, 2026
Microsoft's Playwright MCP gives Claude a real Chrome, Firefox or WebKit browser on your own computer, which it drives through accessibility snapshots of the page instead of screenshots, so no vision model is needed. It is free and open source (Apache-2.0), needs Node.js 20 or newer, loads 25 tools and keeps a persistent browser profile by default so logins survive between sessions; for coding agents that need to save context, Microsoft now also suggests its Playwright CLI with skills.
Who is Playwright MCP for?
- Developers testing web apps
- QA engineers writing end-to-end checks
- Anyone automating repetitive browser chores
What can you ask Playwright MCP to do?
Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.
Open http://localhost:3000, sign up with a test email and tell me if any step shows an error.Go to the pricing page of example.com and list every plan with its monthly price.Fill in the contact form on this page with placeholder data and take a screenshot before submitting.How to connect Playwright to Claude
MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:
New to MCP? Read what an MCP server is and how to add one.
Connect the Playwright MCP server to Claude Code for me: run this command: claude mcp add playwright npx @playwright/mcp@latest
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.Or do it yourself:
claude mcp add playwright npx @playwright/mcp@latestUnlock the setup steps
Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.
Good to know
Add --headless for a hidden browser or --isolated for a throwaway profile; the Playwright Extension lets it use your open Chrome or Edge tabs and logins instead.
How did we check Playwright MCP?
Looked at on November 8, 2026 and again ten days later, on November 18: release v0.0.86 of microsoft/playwright-mcp (published November 18, Apache-2.0, 39.9k stars), the @playwright/mcp npm package, which now requires Node.js 20 or newer, and the README's tool list and options; the Claude Code command is copied from the README. When we connected this exact command in Claude Code for our MCP guide in October 2026, /mcp listed 25 tools, 7 of them marked read-only, and the README still lists 25 default tools.
What do people ask about Playwright MCP?
Is Playwright MCP free?
Yes. It is open source under Apache-2.0 and runs on your own computer, so nothing is paid to Microsoft. The cost is your AI tool's usage, and Microsoft notes that full tool schemas and accessibility trees take up a lot of the model's context.
Should I use Playwright MCP or the Playwright CLI in Claude Code?
Microsoft's README says coding agents increasingly favor its Playwright CLI with skills, because commands avoid loading large tool schemas and accessibility trees into context. It keeps MCP for long, exploratory loops where a persistent browser and rich page inspection matter more than token cost.
Will it use my logged-in accounts?
By default it keeps its own persistent profile for each project, so logins you make in that browser survive between sessions, and --isolated discards the profile instead. To reuse your everyday Chrome or Edge sessions, install the Playwright Extension and start the server with --extension.
Is it safe to let Claude control a browser?
Microsoft states that Playwright MCP is not a security boundary, and the default tools include browser_run_code_unsafe, which runs arbitrary JavaScript in the server process. Keep tool approvals on and avoid sensitive accounts in agent sessions; file access stays inside your workspace folders unless you pass --allow-unrestricted-file-access.
Can I use Playwright MCP to test my own website before launch?
Yes. Point it at your local preview or staging address and ask Claude to sign up, fill each form and report every error or broken step, as in the first prompt above, then fix what it finds before you publish. Building that page, testing it this way and publishing it are steps in our early-access Claude Code course; its first hands-on lesson is free on the course page.
We wrote these answers from the official pages of each product named, read on November 18, 2026.
More browser and scraping servers
Using servers like Playwright from Claude Code? Our Claude Code course, in early access, goes from your first command to a landing page, an AI video and a working agent.
