{
 "schema_version": 1,
 "generated": "2026-10-25",
 "id": "microsoft-playwright-mcp--add-a-browser-to-claude-code-or-codex",
 "repo": "microsoft/playwright-mcp",
 "repo_url": "https://github.com/microsoft/playwright-mcp",
 "repo_slug": "microsoft-playwright-mcp",
 "title": "Give Claude Code or Codex a real browser in one command",
 "page_title": "How to give Claude Code or Codex a real browser in one command with Playwright MCP",
 "summary": "Register Playwright MCP so your agent can open pages, click, type and read results.",
 "who": "A developer who wants the agent to verify its own frontend changes in a browser.",
 "problem": "Agents cannot see whether a form or flow they built actually works.",
 "outcome": "An agent that drives a browser through accessibility snapshots and reports what happened.",
 "steps": [
  "Claude Code: `claude mcp add playwright npx @playwright/mcp@latest`",
  "Codex: `codex mcp add playwright npx \"@playwright/mcp@latest\"`",
  "Other clients: add an mcpServers entry named playwright that runs npx with @playwright/mcp@latest",
  "Ask the agent to open your app and walk through a flow"
 ],
 "agent_prompt": "Add microsoft/playwright-mcp to my <Claude Code or Codex>, then open http://localhost:<port>, sign up with a test email, and report each step and any error text on the page.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "5 minutes",
 "basis": "readme",
 "caveat": "",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js",
  "An MCP client such as Claude Code, Codex, Cursor or VS Code"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/microsoft-playwright-mcp/add-a-browser-to-claude-code-or-codex/",
 "md": "https://dedupedai.com/use-cases/microsoft-playwright-mcp/add-a-browser-to-claude-code-or-codex/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/microsoft-playwright-mcp--add-a-browser-to-claude-code-or-codex.json",
 "api_version": "v1"
}
