Playwright MCP

MCP server by Microsoft

OfficialLocal
Official page

Playwright MCP at a glance

Playwright MCP is an official MCP server from Microsoft. It lets an AI assistant drive a real browser to click, type, navigate and read pages.

Connects to
Browser and web
Hosting
Local · stdio and Streamable HTTP
Sign-in
None
Price
Free
Works with
Claude Code, Claude Desktop, VS Code, Cursor, Windsurf, Codex, Gemini CLI, Goose
Best for
Developers automating and testing web apps
Checked
October 3, 2026 on official sources

How to install Playwright MCP

Add the command below as a new MCP server in your AI app’s settings or MCP config file. Sign-in: None.

Install or connect
npx @playwright/mcp@latest

What Playwright MCP can do

Playwright MCP controls a Chromium, Firefox or WebKit browser through Playwright. It reads pages through accessibility snapshots so the model does not need screenshots or vision.

Tools it exposes include
browser_navigatebrowser_clickbrowser_fill_formbrowser_evaluatebrowser_file_uploadbrowser_console_messages

Best for: developers automating and testing web apps

Pros

  • No vision model needed
  • Works with many browsers
  • Runs locally with one command

Cons

  • Accessibility trees use many tokens
  • Not a security boundary on its own

Playwright MCP FAQ

Is Playwright MCP free?

Yes. It is open source under Apache-2.0 and runs on your own machine.

How do I connect Playwright MCP?

Add npx @playwright/mcp@latest as a stdio server in your MCP client, for example claude mcp add playwright npx @playwright/mcp@latest.

What can Playwright MCP do?

It opens pages, clicks, fills forms, uploads files, runs scripts and reads console output in a real browser.