Playwright MCP Server

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

Local serverstdio

What is the Playwright MCP server?

playwright/mcpをsseで外部から触るためのやつ. Exposed over MCP by the playwright mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

PlaywrightをMCP(Model Context Protocol)サーバーとして提供するためのサービスです。このサーバーを使用することで、MCPクライアントからPlaywrightの機能を利用することができます。

Adding it to your client

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Its toolset

Everything the assistant can do here goes through one of these:

  • mcp — networkという名前のDockerネットワークが作成されていること
  • Linux — **
  • playwright-mcp-start — デフォルト設定(ポート3002、再起動なし)でサーバーを起動
  • playwright-mcp-stop — サーバーを停止
  • playwright-mcp-logs — サーバーのログを表示
  • PLAYWRIGHT_MCP_HOME — プロジェクトのインストールディレクトリ。設定されていない場合は、スクリプトの場所から自動的に検出されます。

Configuration

You will need one environment variable: PLAYWRIGHT_MCP_HOME. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the playwright mcp server does with a few real requests.

When to reach for it

Plenty of browser automation servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Playwright's toolset — mcp, Linux, playwright-mcp-start and 3 more — is a fair guide to whether it matches your workflow. It is maintained by torohash; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
mcpnetworkという名前のDockerネットワークが作成されていること
Linux**
playwright-mcp-startデフォルト設定(ポート3002、再起動なし)でサーバーを起動
playwright-mcp-stopサーバーを停止
playwright-mcp-logsサーバーのログを表示
PLAYWRIGHT_MCP_HOMEプロジェクトのインストールディレクトリ。設定されていない場合は、スクリプトの場所から自動的に検出されます。

How to install the Playwright MCP server

{
  "mcpServers": {
    "playwright-sse-mcp-server-local": {
      "url": "http://localhost:${PORT}/sse"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
PLAYWRIGHT_MCP_HOMEConfiguration value read at startup.Optional

Example prompts to try

  • Use Playwright to mcp.
  • Use Playwright to Linux.
  • Use Playwright to playwright-mcp-start.

Frequently asked questions

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`.