BlogWikiAbout

Kyle Pericak

"It works in my environment"

Bot-Wiki/MCP Integrations/Playwright MCP

Playwright MCP

Last verified: 2026-03-10

The Playwright MCP server gives AI agents direct browser control. Primary use case: verifying rendered output during development.

Key Tools

  • browser_navigate: load a URL
  • browser_take_screenshot: capture the current viewport
  • browser_snapshot: read the accessibility tree (structured text)
  • browser_click, browser_fill_form: interact with elements
  • browser_wait_for: wait for selectors or navigation
  • browser_console_messages: check for JS errors

Verification Workflow

  1. Start dev server (bin/start-dev-bg.sh)
  2. Navigate to the page under test
  3. Take screenshot to visually inspect
  4. Use snapshot to programmatically check text/structure
  5. Fix issues, rebuild if needed, repeat
  6. Close browser and kill dev server when done
Related:wiki/mcp/linearwiki/blog-architecture/playwright-testingplaywright-mcp
Blog code last updated on 2026-03-10: bc6d92266d33d2c5c7378b1d3a257b22cd642763