
mcp/playwrightPlaywright MCP server.
What is an MCP Server?
| Attribute | Details |
|---|---|
| Docker Image | mcp/playwright |
| Author | microsoft |
| Repository | [***] |
| Attribute | Details |
|---|---|
| Dockerfile | [***] |
| Commit | 64f65ccd***e3e1b1e1a7b28825492b089 |
| Docker Image built by | Docker Inc. |
| Docker Scout Health Score | !Docker Scout Health Score |
| Verify Signature | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/playwright --key [***] |
| Licence | Apache License 2.0 |
| Tools provided by this Server | Short Description |
|---|---|
browser_click | Click |
browser_close | Close browser |
browser_console_messages | Get console messages |
browser_drag | Drag mouse |
browser_evaluate | Evaluate JavaScript |
browser_file_upload | Upload files |
browser_fill_form | Fill form |
browser_handle_dialog | Handle a dialog |
browser_hover | Hover mouse |
browser_install | Install the browser specified in the config |
browser_navigate | Navigate to a URL |
browser_navigate_back | Go back |
browser_network_requests | List network requests |
browser_press_key | Press a key |
browser_resize | Resize browser window |
browser_run_code | Run Playwright code |
browser_select_option | Select option |
browser_snapshot | Page snapshot |
browser_tabs | Manage tabs |
browser_take_screenshot | Take a screenshot |
browser_type | Type text |
browser_wait_for | Wait for |
browser_clickPerform click on a web page
| Parameters | Type | Description |
|---|---|---|
element | string | Human-readable element description used to obtain permission to interact with the element |
ref | string | Exact target element reference from the page snapshot |
button | string optional | Button to click, defaults to left |
doubleClick | boolean optional | Whether to perform a double click instead of a single click |
modifiers | array optional | Modifier keys to press |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_closeClose the page
browser_console_messagesReturns all console messages
| Parameters | Type | Description |
|---|---|---|
onlyErrors | boolean optional | Only return error messages |
This tool is read-only. It does not modify its environment.
This tool interacts with external entities.
browser_dragPerform drag and drop between two elements
| Parameters | Type | Description |
|---|---|---|
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 |
startElement | string | Human-readable source element description used to obtain the permission to interact with the element |
startRef | string | Exact source element reference from the page snapshot |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_evaluateEvaluate JavaScript expression on page or element
| Parameters | Type | Description |
|---|---|---|
function | string | () => { /* code / } or (element) => { / code */ } when element is provided |
element | string optional | Human-readable element description used to obtain permission to interact with the element |
ref | string optional | Exact target element reference from the page snapshot |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_file_uploadUpload one or multiple files
| Parameters | Type | Description |
|---|---|---|
paths | array optional | The absolute paths to the files to upload. Can be single file or multiple files. If omitted, file chooser is cancelled. |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_fill_formFill multiple form fields
| Parameters | Type | Description |
|---|---|---|
fields | array | Fields to fill in |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_handle_dialogHandle a dialog
| Parameters | Type | Description |
|---|---|---|
accept | boolean | Whether to accept the dialog. |
promptText | string optional | The text of the prompt in case of a prompt dialog. |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_hoverHover over element on page
| Parameters | Type | Description |
|---|---|---|
element | string | Human-readable element description used to obtain permission to interact with the element |
ref | string | Exact target element reference from the page snapshot |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_installInstall the browser specified in the config. Call this if you get an error about the browser not being installed.
browser_navigateNavigate to a URL
| Parameters | Type | Description |
|---|---|---|
url | string | The URL to navigate to |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_navigate_backGo back to the previous page
browser_network_requestsReturns all network requests since loading the page
browser_press_keyPress a key on the keyboard
| Parameters | Type | Description |
|---|---|---|
key | string | Name 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.
browser_resizeResize the browser window
| Parameters | Type | Description |
|---|---|---|
height | number | Height of the browser window |
width | number | Width of the browser window |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_run_codeRun Playwright code snippet
| Parameters | Type | Description |
|---|---|---|
code | string | Playwright code snippet to run. The snippet should access the page object to interact with the page. Can make multiple statements. For example: await page.getByRole('button', { name: 'Submit' }).click(); |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_select_optionSelect an option in a dropdown
| Parameters | Type | Description |
|---|---|---|
element | string | Human-readable element description used to obtain permission to interact with the element |
ref | string | Exact target element reference from the page snapshot |
values | array | Array 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.
browser_snapshotCapture accessibility snapshot of the current page, this is better than screenshot
browser_tabsList, create, close, or select a browser tab.
| Parameters | Type | Description |
|---|---|---|
action | string | Operation to perform |
index | number optional | Tab 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.
browser_take_screenshotTake a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.
| Parameters | Type | Description |
|---|---|---|
element | string optional | Human-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. |
filename | string optional | File name to save the screenshot to. Defaults to `page-{timestamp}.{png |
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. |
ref | string optional | Exact 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. |
type | string optional | Image format for the screenshot. Default is png. |
This tool is read-only. It does not modify its environment.
This tool interacts with external entities.
browser_typeType text into editable element
| Parameters | Type | Description |
|---|---|---|
element | string | Human-readable element description used to obtain permission to interact with the element |
ref | string | Exact target element reference from the page snapshot |
text | string | Text to type into the element |
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. |
submit | boolean optional | Whether to submit entered text (press Enter after) |
This tool may perform destructive updates.
This tool interacts with external entities.
browser_wait_forWait for text to appear or disappear or a specified time to pass
| Parameters | Type | Description |
|---|---|---|
text | string optional | The text to wait for |
textGone | string optional | The text to wait for to disappear |
time | number optional | The time to wait in seconds |
This tool is read-only. It does not modify its environment.
This tool interacts with external entities.
json{ "mcpServers": { "playwright": { "command": "docker", "args": [ "run", "-i", "--rm", "mcp/playwright" ] } } }
Why is it safer to run MCP Servers with Docker?
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务