MCP.so
登录

Playwright Sse MCP Server

@torohash

基本信息

分类

浏览器自动化

传输方式

stdio

作者

torohash

关于 Playwright Sse MCP Server

playwright/mcpをsseで外部から触るためのやつ

Playwright Sse MCP Server 配置

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

{
  "mcpServers": {
    "playwright-sse-mcp-server": {
      "command": "docker",
      "args": [
        "network",
        "create",
        "mcp-network"
      ]
    }
  }
}

Playwright Sse MCP Server 工具

工具列表暂未提供

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

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is playwright-sse-mcp-server?

playwright-sse-mcp-server provides Playwright as an MCP (Model Context Protocol) server, enabling MCP clients to use Playwright’s browser automation features. It runs inside a Docker container and is intended for developers who need browser control from MCP-compatible tools.

How to use playwright-sse-mcp-server?

Clone the repository and run docker compose up --build in the project root. The server starts on port 3002 by default; set the PORT environment variable for a custom port. Connect from other containers on the same Docker network via playwright-sse-mcp-server:<PORT>/sse, or from the host via localhost:<PORT>/sse. For Roo Code, configure the MCP settings with the SSE URL. Helper shell scripts (playwright-mcp-start, playwright-mcp-stop, playwright-mcp-logs) are provided for convenient control.

Key features of playwright-sse-mcp-server

  • Playwright browser automation exposed via MCP SSE transport
  • Docker‑based deployment with configurable port (default 3002)
  • Connects from same Docker network, host, or development containers
  • Shell scripts for start/stop/logs with persistent mode and restart policies
  • Requires a pre‑existing Docker network named mcp-network

Use cases of playwright-sse-mcp-server

  • Use an MCP client like Roo Code to automate browser tasks
  • Run headless Playwright inside a container for testing or scraping
  • Integrate browser automation into MCP‑based workflows

常见问题

1

What are the prerequisites for running the server?

Docker and docker‑compose must be installed. A Docker network named `mcp-network` must exist; if not, create it with `docker network create mcp-network`.

2

How do I connect from a development container not on `mcp-network`?

Use the host IP or special DNS name. On Docker Desktop (Mac/Windows) use `host.docker.internal:<PORT>/sse`. On Linux, use the host’s IP or the Docker bridge gateway (e.g., `172.17.0.1`). The port must match the one published in `compose.yml`.

3

Does Cline support this server?

As of 2025/03/27, Cline does not support SSE, so it cannot be used with this server.

4

Can I change the default port?

Yes, set the environment variable `PORT` before starting the server. For example: `PORT=4000 docker compose up --build`.

5

What mode does Playwright run in?

The server runs Playwright in headless mode.

评论

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