Playwright MCP
JSON →Generate Playwright tests with AI assistants by providing real-time access to the browser DOM, interactions, and screenshots.
Install
npx -y playwright-mcp` Tools · 6
- get-context Get the current page context including URL, title, and visible text
- get-full-dom Extract the entire HTML DOM structure of the current page
- get-screenshot Capture a screenshot of the current page or a specific element
- execute-code Execute custom JavaScript code in the browser context
- init-browser Initialize a new Playwright-controlled browser instance
- validate-selectors Validate CSS selectors against the current page DOM
Links
★ 32 GitHub stars