MCP.so
登录

Playwright MCP Docker Environment

@iuill

基本信息

分类

浏览器自动化

许可证

MIT license

传输方式

stdio

作者

iuill

关于 Playwright MCP Docker Environment

This project provides a Docker Compose environment to run the '@playwright/mcp' server.

Playwright MCP Docker Environment 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "playwright_sse": {
      "type": "http",
      "url": "http://localhost:8931/sse"
    }
  }
}

Playwright MCP Docker Environment 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,直接连接服务器端点实时获取工具列表。

概览

What is Playwright MCP Docker Environment?

It is a Docker Compose environment that runs the @playwright/mcp server, enabling easy setup and management of the Playwright MCP server for use with clients like Cline or Cursor.

How to use Playwright MCP Docker Environment?

Clone the repository, copy .env.sample to .env, configure settings (port, headless mode, etc.), then build and start the container with docker-compose up --build -d. Configure your MCP client to use SSE with the URL http://localhost:<MCP_HOST_PORT>/sse. Stop the server with docker-compose down.

Key features of Playwright MCP Docker Environment

  • Docker Compose based setup with minimal dependencies
  • Supports headless and headed browser modes
  • Configurable host port via MCP_HOST_PORT environment variable
  • Built-in Chrome installation for Playwright
  • Compatible with WSLg for headed mode on Windows

Use cases of Playwright MCP Docker Environment

  • Running Playwright MCP server in a containerized environment
  • Automating browser tasks via MCP clients (e.g., Cline, Cursor)
  • Testing web applications in a reproducible Docker setup
  • Using headed mode for visual debugging on Linux with X11/WSLg

常见问题

1

What are the prerequisites?

Docker and Docker Compose must be installed on the host system.

2

How do I switch between headless and headed mode?

Set `HEADLESS=true` or `HEADLESS=false` in the `.env` file and restart the container with `docker-compose up -d`.

3

Does this work on Windows with WSLg?

Yes, default settings in `.env.sample` and `docker-compose.yml` are configured for WSLg. Adjust the WSL distribution name in paths if it is not `Ubuntu`.

4

What transport protocol does the MCP server use?

The MCP server uses SSE (Server-Sent Events) on the configured host port.

5

How do I stop the server?

Run `docker-compose down` from the project directory.

评论

浏览器自动化 分类下的更多 MCP 服务器