Playwright

Playwright

Playwright MCP server.

50K+

21

21 Tools

Signed
Built by Docker
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

About

Playwright MCP Server

Playwright MCP server.

What is an MCP Server?

Characteristics

AttributeDetails
Docker Imagemcp/playwright
Authormicrosoft
Repositoryhttps://github.com/microsoft/playwright-mcp
Dockerfilehttps://github.com/microsoft/playwright-mcp/blob/main/Dockerfile
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/playwright --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceApache License 2.0

Available Tools (21)

Tools provided by this ServerShort Description
browser_clickClick
browser_closeClose browser
browser_console_messagesGet console messages
browser_dragDrag mouse
browser_evaluateEvaluate JavaScript
browser_file_uploadUpload files
browser_fill_formFill form
browser_handle_dialogHandle a dialog
browser_hoverHover mouse
browser_installInstall the browser specified in the config
browser_navigateNavigate to a URL
browser_navigate_backGo back
browser_network_requestsList network requests
browser_press_keyPress a key
browser_resizeResize browser window
browser_select_optionSelect option
browser_snapshotPage snapshot
browser_tabsManage tabs
browser_take_screenshotTake a screenshot
browser_typeType text
browser_wait_forWait for

Tools Details

Tool: browser_click

Perform click on a web page

ParametersTypeDescription
elementstringHuman-readable element description used to obtain permission to interact with the element
refstringExact target element reference from the page snapshot
buttonstringoptionalButton to click, defaults to left
doubleClickbooleanoptionalWhether to perform a double click instead of a single click

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_close

Close the page

Tool: browser_console_messages

Returns all console messages

Tool: browser_drag

Perform drag and drop between two elements

ParametersTypeDescription
endElementstringHuman-readable target element description used to obtain the permission to interact with the element
endRefstringExact target element reference from the page snapshot
startElementstringHuman-readable source element description used to obtain the permission to interact with the element
startRefstringExact source element reference from the page snapshot

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_evaluate

Evaluate JavaScript expression on page or element

ParametersTypeDescription
functionstring() => { /* code / } or (element) => { / code */ } when element is provided
elementstringoptionalHuman-readable element description used to obtain permission to interact with the element
refstringoptionalExact target element reference from the page snapshot

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_file_upload

Upload one or multiple files

ParametersTypeDescription
pathsarrayThe absolute paths to the files to upload. Can be a single file or multiple files.

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_fill_form

Fill multiple form fields

ParametersTypeDescription
fieldsarrayFields to fill in

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_handle_dialog

Handle a dialog

ParametersTypeDescription
acceptbooleanWhether to accept the dialog.
promptTextstringoptionalThe text of the prompt in case of a prompt dialog.

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_hover

Hover over element on page

ParametersTypeDescription
elementstringHuman-readable element description used to obtain permission to interact with the element
refstringExact target element reference from the page snapshot

This tool is read-only. It does not modify its environment.

This tool interacts with external entities.


Tool: browser_install

Install the browser specified in the config. Call this if you get an error about the browser not being installed.

Tool: browser_navigate

Navigate to a URL

ParametersTypeDescription
urlstringThe URL to navigate to

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_navigate_back

Go back to the previous page

Tool: browser_network_requests

Returns all network requests since loading the page

Tool: browser_press_key

Press a key on the keyboard

ParametersTypeDescription
keystringName of the key to press or a character to generate, such as ArrowLeft or a

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_resize

Resize the browser window

ParametersTypeDescription
heightnumberHeight of the browser window
widthnumberWidth of the browser window

This tool is read-only. It does not modify its environment.

This tool interacts with external entities.


Tool: browser_select_option

Select an option in a dropdown

ParametersTypeDescription
elementstringHuman-readable element description used to obtain permission to interact with the element
refstringExact target element reference from the page snapshot
valuesarrayArray of values to select in the dropdown. This can be a single value or multiple values.

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_snapshot

Capture accessibility snapshot of the current page, this is better than screenshot

Tool: browser_tabs

List, create, close, or select a browser tab.

ParametersTypeDescription
actionstringOperation to perform
indexnumberoptionalTab index, used for close/select. If omitted for close, current tab is closed.

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_take_screenshot

Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.

ParametersTypeDescription
elementstringoptionalHuman-readable element description used to obtain permission to screenshot the element. If not provided, the screenshot will be taken of viewport. If element is provided, ref must be provided too.
filenamestringoptionalFile name to save the screenshot to. Defaults to `page-{timestamp}.{png
fullPagebooleanoptionalWhen true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.
refstringoptionalExact target element reference from the page snapshot. If not provided, the screenshot will be taken of viewport. If ref is provided, element must be provided too.
typestringoptionalImage format for the screenshot. Default is png.

This tool is read-only. It does not modify its environment.

This tool interacts with external entities.


Tool: browser_type

Type text into editable element

ParametersTypeDescription
elementstringHuman-readable element description used to obtain permission to interact with the element
refstringExact target element reference from the page snapshot
textstringText to type into the element
slowlybooleanoptionalWhether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once.
submitbooleanoptionalWhether to submit entered text (press Enter after)

This tool may perform destructive updates.

This tool interacts with external entities.


Tool: browser_wait_for

Wait for text to appear or disappear or a specified time to pass

ParametersTypeDescription
textstringoptionalThe text to wait for
textGonestringoptionalThe text to wait for to disappear
timenumberoptionalThe time to wait in seconds

This tool is read-only. It does not modify its environment.

This tool interacts with external entities.


Use this MCP Server

{
  "mcpServers": {
    "playwright": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/playwright"
      ]
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Manual installation

You can install the MCP server using:

Installation for

Related servers