Skip to main content
Glama

Playwright MCP

by furugen

Playwright MCP Docker Environment

Docker環境でPlaywright MCPサーバーを実行し、外部ツールから自動ブラウザ操作を可能にするプロジェクトです。

🚀 クイックスタート

# 1. リポジトリをクローン git clone <repository-url> cd playwright-replan # 2. Docker Composeで起動 docker-compose up -d # 3. 動作確認 curl http://localhost:8931/health

SSEエンドポイント: http://localhost:8931/sse

📋 機能

  • ヘッドレスブラウザ操作: Chromium/Firefox/WebKitでの自動操作
  • SSE通信: リアルタイムなブラウザ操作結果の取得
  • 外部ツール連携: n8n、VS Code、Cursorなどとの統合
  • 出力ファイル管理: スクリーンショット、PDF、Traceファイルの保存
  • 設定可能: 環境変数による柔軟な設定変更

🛠️ 構成

playwright-replan/ ├── Dockerfile # MCPサーバー用コンテナ ├── docker-compose.yml # サービス定義 ├── .env # 環境設定 ├── scripts/ │ ├── entrypoint.sh # 起動スクリプト │ └── health-check.sh # ヘルスチェック ├── config/ │ └── mcp-server.json # MCP設定 ├── output/ # 出力ファイル └── docs/ ├── SETUP.md # 詳細セットアップ └── API_USAGE.md # API使用方法

⚙️ 設定

環境変数

変数デフォルト説明
MCP_HOST_PORT8931公開ポート
DEBUG-デバッグログ有効化
SAVE_TRACEfalseTrace保存
VISION_MODEfalseスクリーンショットモード

デバッグ有効化

echo "DEBUG=pw:api" >> .env docker-compose restart

🔗 外部ツール連携

n8n

{ "mcpServers": { "playwright": { "url": "http://localhost:8931/sse" } } }

VS Code/Cursor

{ "mcpServers": { "playwright": { "url": "http://localhost:8931/sse" } } }

📊 監視

# ログ確認 docker-compose logs -f # ヘルスチェック curl http://localhost:8931/health # コンテナ状態 docker-compose ps

📚 ドキュメント

🔧 トラブルシューティング

よくある問題

  1. ポート競合: .envMCP_HOST_PORTを変更
  2. 起動失敗: docker-compose logsでエラー確認
  3. 接続できない: ファイアウォール設定を確認

サポート

問題が発生した場合は、以下を確認してください:

📝 ライセンス

このプロジェクトは実験的なものです。商用利用の際は適切なライセンス確認を行ってください。

🤝 貢献

プルリクエストやイシューの報告を歓迎します。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages through structured accessibility snapshots without requiring screenshots or visually-tuned models.

  1. 🚀 クイックスタート
    1. 📋 機能
      1. 🛠️ 構成
        1. ⚙️ 設定
          1. 環境変数
          2. デバッグ有効化
        2. 🔗 外部ツール連携
          1. n8n
          2. VS Code/Cursor
        3. 📊 監視
          1. 📚 ドキュメント
            1. 🔧 トラブルシューティング
              1. よくある問題
              2. サポート
            2. 📝 ライセンス
              1. 🤝 貢献

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.
                  Last updated -
                  13
                  9,457
                  3,642
                  TypeScript
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  Provides a server utilizing Model Context Protocol to enable human-like browser automation with Playwright, allowing control over browser actions such as navigation, element interaction, and scrolling.
                  Last updated -
                  2
                  TypeScript
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.
                  Last updated -
                  3
                  Python
                  Apache 2.0
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages through structured accessibility snapshots without requiring screenshots or vision models.
                  Last updated -
                  21
                  86,592
                  TypeScript
                  Apache 2.0
                  • Apple
                  • Linux

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/furugen/playwright-mcp'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server