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_navigate

Navigate to a URL,thip op will auto create a session

playwright_screenshot

Take a screenshot of the current page or a specific element

playwright_click

Click an element on the page using CSS selector

playwright_fill

Fill out an input field

playwright_evaluate

Execute JavaScript in the browser console

playwright_click_text

Click an element on the page by its text content

playwright_get_text_content

Get the text content of all elements

playwright_get_html_content

Get the HTML content of the page