The Playwright MCP server enables automated browser interactions through a Docker environment, supporting headless Chromium, Firefox, and WebKit browsers for various web automation tasks.
Navigate and interact: Visit URLs, navigate history, click elements, type text, select options, drag, hover, and upload files.
Manage browser tabs: Open, switch between, list, and close tabs.
Capture page data: Take screenshots, save PDFs, log network requests, and generate accessibility snapshots.
Handle dialogs: Accept or dismiss browser alerts, prompts, and confirms with custom input.
Wait and monitor: Wait for specific conditions or timeframes, and receive real-time updates via SSE.
Generate and debug: Automatically create Playwright test scripts, enable debugging logs, and save trace files.
Customize and integrate: Configure via environment variables and connect with tools like n8n, VS Code, and Cursor.
Enables browser automation for Firefox, allowing AI agents to interact with web pages through structured accessibility snapshots, perform navigation, clicks, typing, and other browsing actions.
Integrates with GitHub Copilot in VS Code, providing tools for web automation that allow the AI assistant to interact with websites, fill forms, click buttons, and extract data from web pages.
Provides browser automation capabilities built on Node.js, allowing programmatic control of web browsers for navigation, interaction, and data extraction from web pages.
Playwright MCP Docker Environment
Docker環境でPlaywright MCPサーバーを実行し、外部ツールから自動ブラウザ操作を可能にするプロジェクトです。
🚀 クイックスタート
SSEエンドポイント: http://localhost:8931/sse
Related MCP server: Playwright MCP Server
📋 機能
ヘッドレスブラウザ操作: Chromium/Firefox/WebKitでの自動操作
SSE通信: リアルタイムなブラウザ操作結果の取得
外部ツール連携: n8n、VS Code、Cursorなどとの統合
出力ファイル管理: スクリーンショット、PDF、Traceファイルの保存
設定可能: 環境変数による柔軟な設定変更
🛠️ 構成
⚙️ 設定
環境変数
変数 | デフォルト | 説明 |
| 8931 | 公開ポート |
| - | デバッグログ有効化 |
| false | Trace保存 |
| false | スクリーンショットモード |
デバッグ有効化
🔗 外部ツール連携
n8n
VS Code/Cursor
📊 監視
📚 ドキュメント
🔧 トラブルシューティング
よくある問題
ポート競合:
.envでMCP_HOST_PORTを変更起動失敗:
docker-compose logsでエラー確認接続できない: ファイアウォール設定を確認
サポート
問題が発生した場合は、以下を確認してください:
コンテナログ:
docker-compose logs playwright-mcpヘルスチェック:
curl http://localhost:8931/health
📝 ライセンス
このプロジェクトは実験的なものです。商用利用の際は適切なライセンス確認を行ってください。
🤝 貢献
プルリクエストやイシューの報告を歓迎します。