MCP server

Playwright MCP

Browser automation for agents via Playwright accessibility snapshots

Microsoft's Playwright MCP server lets agents drive a real browser using structured accessibility snapshots instead of screenshots. It supports navigation, clicking, typing, form filling, tabs, network inspection and screenshots across Chromium, Firefox and WebKit.

Connect

  1. 1Add the server to Codex
    codex mcp add playwright -- npx @playwright/mcp@latest

Configs are generated from the publisher's documented endpoint. Check their docs for plan requirements and scopes. New to this? Read the step-by-step tutorial.

Tools 12

browser_navigatebrowser_snapshotbrowser_clickbrowser_typebrowser_fill_formbrowser_select_optionbrowser_take_screenshotbrowser_evaluatebrowser_console_messagesbrowser_network_requestsbrowser_tabsbrowser_wait_for

Things to ask

  • “Open localhost:3000 and check that the signup form validates emails”
  • “Take a screenshot of the pricing page on mobile viewport”
  • “Log in to the staging app and list all console errors”
  • “Fill out the contact form on this page and submit it”

Learn more

Related