Skip to content
Kitbay
Submit
MCP serverOfficial

playwright-mcp

Runs locallyApache-2.0Updated on Nov 10, 202639,409GitHub starsCan change dataNo API key needed

Playwright MCP is Microsoft's Model Context Protocol server that lets an AI agent drive a real browser through Playwright.

What it does

Playwright MCP is Microsoft's Model Context Protocol server that lets an AI agent drive a real browser through Playwright. Instead of working from screenshots, the agent reads each page as an accessibility tree and acts on elements by reference, so no vision model is needed. It runs on the user's machine over stdio from the @playwright/mcp npm package (Node.js 18 or newer), or as a self-hosted HTTP service when started with a port. Opt-in tool groups add network routing, cookie and storage control, tracing, video and coordinate-based input. A browser extension lets it attach to an already open Chrome or Edge profile. The README gives setup for many clients, including VS Code, Cursor, Claude Code and Codex.

Capabilities

  • Open pages and move through browser history
  • Click, type, fill forms and upload files on a page
  • Return an accessibility snapshot of the current page
  • Take screenshots and read console messages and network requests
  • Manage tabs, cookies and local or session storage (storage tools are opt-in)
  • Record traces and video (devtools tools are opt-in)