playwright-mcp-internal

Playwright MCP server

testingtesting
28,741 stars🍴 2,319 forks📦 v0.0.68📄 Apache-2.0

🔌 Transport

Standard I/O

📦 Installation

Docker

Claude Desktop Configuration

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "playwright-mcp-internal": {
      "args": [
        "index.js"
      ],
      "command": "node"
    }
  }
}

🛠️ Available Tools (34)

promptText

(string, optional): The text of the prompt in case of a prompt dialog.

Tools

generated by update-readme.js -->

deltaY

(number): Y delta

startX

(number): Start X coordinate

NOTE

This has been generated via update-readme.js -->

ref

(string): Exact target element reference that points to the element

modifiers

(array, optional): Modifier keys to press

submit

(boolean, optional): Whether to submit entered text (press Enter after)

startRef

(string): Exact source element reference from the page snapshot

endElement

(string): Human-readable target element description used to obtain the permission to interact with the element

endRef

(string): Exact target element reference from the page snapshot

accessibleName

(string): ACCESSIBLE_NAME of the element. Can be found in the snapshot like this: `- role "{ACCESSIBLE_NAME}"`

Title

Verify value

element

(string): Human-readable element description

End

of tools generated section -->

x

(number): X coordinate

height

(number): Height of the browser window

fullPage

(boolean, optional): When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.

slowly

(boolean, optional): Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once.

index

(number, optional): Tab index, used for close/select. If omitted for close, current tab is closed.

items

(array): Items to verify

values

(array): Array of values to select in the dropdown. This can be a single value or multiple values.

Description

Verify element value

Parameters

- `type` (string): Type of the element

value

(string): Value to verify. For checkbox, use "true" or "false".

filename

(string, optional): File name to save the screenshot to. Defaults to `page-{timestamp}.{png|jpeg}` if not specified. Prefer relative file names to stay within the output directory.

startY

(number): Start Y coordinate

endX

(number): End X coordinate

endY

(number): End Y coordinate

doubleClick

(boolean, optional): Whether to perform a double click instead of a single click

button

(string, optional): Button to click, defaults to left

text

(string, optional): The text to wait for

textGone

(string, optional): The text to wait for to disappear

y

(number): Y coordinate

Capabilities

34
Tools
0
Resources
0
Prompts