home / mcp / playwright mcp server
playwright-mcp-server
Configuration
View docs{
"mcpServers": {
"b3nw-playwright-browserless-mcp": {
"command": "npx",
"args": [
"playwright-browserless-mcp",
"--url",
"ws://your-browserless-host:3000/playwright/chromium"
],
"env": {
"PLAYWRIGHT_URL": "ws://your-browserless-host:3000/playwright/chromium"
}
}
}
}Navigate to a URL and wait for the page to load. Requires url and optional waitUntil to specify the load condition.
Click on an element specified by a CSS selector. Requires selector.
Type text into an input field. Requires selector and text to type.
Wait for an element to appear on the page. Requires selector and optional timeout.
Capture a screenshot of the current page or a specific element. Optional fullPage and selector.
Extract HTML content from the page or a specific element. Optional selector.
Get an accessibility tree snapshot for semantically identifying elements. Optional selector and returns structured data.
Upload files to file input elements to test file forms. Requires selector and paths.
Refresh the current page with configurable wait conditions. Optional waitUntil and timeout.
Execute JavaScript in the browser context with safety checks. Requires script.