Playwright Server MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
UV_PUBLISH_TOKENNoYour token used for publishing.
UV_PUBLISH_PASSWORDNoYour password for publishing.
UV_PUBLISH_USERNAMENoYour username for publishing.

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
playwright_navigateNavigate to a URL,thip op will auto create a session
playwright_screenshotTake a screenshot of the current page or a specific element
playwright_clickClick an element on the page using CSS selector
playwright_fillFill out an input field
playwright_evaluateExecute JavaScript in the browser console
playwright_click_textClick an element on the page by its text content
playwright_get_text_contentGet the text content of all elements
playwright_get_html_contentGet the HTML content of the page