
lars-hagen/mcp-playwright-cdp
Browser automationこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
lars-hagen/mcp-playwright-cdp は [https://github.com/lars-hagen/mcp-playwright-cdp. からインポートされた MCP サーバーの候補です
概要
lars-hagen/mcp-playwright-cdp は [https://github.com/lars-hagen/mcp-playwright-cdp. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
ブラウザの自動化機能を提供するモデルコンテキストプロトコルサーバ(PlaywrightとChrome DevToolsプロトコル(CDP)対応。 LLM は、Web ページとやり取りしたり、スクリーンショットを撮ったり、実際のブラウザ環境で JavaScript を実行したり、既存の Chrome インスタンスを CDP 経由で接続したりすることができます。
メンテナンス状況
メンテナンスモードです。 セキュリティ、互換性、および文書の修正が歓迎されています。 現在 npm レジストリに公開されていません。 最新リリースは[v0.2.10 2025年2月よりGitタグ
これは、Chromeインスタンスを実行するためのCDPサポートで強化された、runchautomation/mcp-playwright v0.2.7のフォークです。
主な特長
- 既存のChromeインスタンスをCDP経由で接続する
- 完全なブラウザのオートメーション機能のバックアップ
- ページ全体または特定の要素のスクリーンショットキャプチャ
- ️️包括的なWebインタラクション(ナビゲーション、クリック、フォームフィリング)
- コンソールログ監視
- ブラウザのコンテクストで JavaScript を実行
- HTTP APIのテストサポート
インストール
npmかSmitheryを使用してパッケージをインストールできます。
##Smitheryでインストールする
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Playwright CDP
A Model Context Protocol server that provides browser automation capabilities using Playwright with Chrome DevTools Protocol (CDP) support. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment, with the ability to connect to existing Chrome instances via CDP.
Maintenance status
This project is in maintenance mode. Focused fixes for security, compatibility, and documentation are welcome. It is not currently published to the npm registry. The latest source release is the v0.2.10 Git tag from February 2025.
This is a fork of executeautomation/mcp-playwright v0.2.7, enhanced with CDP support for connecting to running Chrome instances.
Key Features
- 🔗 Connect to existing Chrome instances via CDP
- 🌐 Full browser automation capabilities
- 📸 Screenshot capture of entire pages or specific elements
- 🖱️ Comprehensive web interactions (navigation, clicking, form filling)
- 📊 Console log monitoring
- 🔧 JavaScript execution in browser context
- 🌍 HTTP API testing support
Installation
You can install the package using either npm or Smithery:
Installing via Smithery
To install MCP Playwright CDP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @lars-hagen/mcp-playwright-cdp --client claude
Manual Installation
Clone the repository, then build it with Node.js 20 or 22:
npm ci
npm run build
Use npm install only when updating dependencies.
Configuration
Add this to your Claude Desktop configuration file:
{
"mcpServers": {
"playwright": {
"command": "node",
"args": ["/path/to/mcp-playwright/dist/index.js"]
}
}
}
Replace /path/to/mcp-playwright with your actual path to the repository.
CDP Connection
This fork adds the ability to connect to an existing Chrome instance via CDP. To use this feature:
- Launch Chrome with remote debugging enabled:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
- The server will automatically attempt to connect to the running Chrome instance first, before launching a new browser.
Security
インストール
npx -y @smithery/cli install @lars-hagen/mcp-playwright-cdp --client claude設定
{
"mcpServers": {
"playwright": {
"command": "node",
"args": ["/path/to/mcp-playwright/dist/index.js"]
}
}
}