HelloPixDig

Directory › Development › Playwright MCP

Playwright MCP
Image: official project repository

> GEM DEVELOPMENT · AGENTS & AUTOMATION

Playwright MCP

by Microsoft

Microsoft's MCP server that lets your agent drive a real web browser.

38 k stars GitHub Apache-2.0 FreeLocalOpen source
View on GitHub →

What it does

  • Navigation, clicks and forms via the accessibility tree
  • No screenshots or vision model required
  • Great for testing your web apps with an agent

Install it

Requirements: Node.js 18+ and an MCP client.

Add to Claude Code
claude mcp add playwright npx @playwright/mcp@latest
Add to Codex
codex mcp add playwright npx "@playwright/mcp@latest"

The prompt for your agent

Paste it into your coding agent: it checks the requirements and installs it for you.

Claude CodeCodexCursorGemini CLIopencode
Prompt
Install Playwright MCP (https://github.com/microsoft/playwright-mcp) on my machine.
1. Check the requirements: Node.js 18+ and an MCP client. If anything is missing, tell me before installing anything.
2. Follow the official method:
- Add to Claude Code: claude mcp add playwright npx @playwright/mcp@latest
- Add to Codex: codex mcp add playwright npx "@playwright/mcp@latest"
3. Check that it works, then explain how to launch it and where to start.

Always review what your agent is about to run, especially install commands.