MCP Servers / development / Playwright MCP

Playwright MCP

JSON →
none32development

Generate Playwright tests with AI assistants by providing real-time access to the browser DOM, interactions, and screenshots.

Install
How to run this server
[ { "cmd": "npx -y playwright-mcp`", "imports": [] } ]
server path: playwright-mcp-3
Tools
What this server exposes
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
Configuration
Environment & auth
authnone
Resources
Playwright MCP — MCP Server · libregistry