home / mcp / playwright mcp server
Provides browser automation via Playwright using structured accessibility snapshots for deterministic, text-based interaction.
Configuration
View docs{
"mcpServers": {
"microsoft-playwright-mcp": {
"url": "http://localhost:8931/mcp"
}
}
}Perform click on a web page
Close the page
Returns all console messages
Perform drag and drop between two elements
Evaluate JavaScript expression on page or element
Upload one or multiple files
Fill multiple form fields
Handle a dialog
Hover over element on page
Navigate to a URL
Go back to the previous page in the history
List network requests
Press a key on the keyboard
Resize the browser window
Run Playwright code snippet
Select an option in a dropdown
Capture accessibility snapshot of the current page
Take a screenshot of the current page
Type text into editable element
Wait for text to appear or disappear or a time to pass
Manage tabs: list, create, close, or select
Install the browser specified in the config
Click left mouse button at a given position
Press mouse down
Drag left mouse button to a given position
Move mouse to a given position
Press mouse up
Scroll mouse wheel
Save page as PDF
Create locator for element
Verify element is visible on the page
Verify list is visible on the page
Verify text is visible on the page
Verify element value
Start tracing
Stop tracing