Skip to main content
Glama

MCP 劇作家 CDP

鍛冶屋のバッジ

ライセンス: MIT

PlaywrightとChrome DevTools Protocol(CDP)サポートを活用したブラウザ自動化機能を提供するモデルコンテキストプロトコル(CMP)サーバー。このサーバーにより、LLMはウェブページを操作したり、スクリーンショットを撮ったり、実際のブラウザ環境でJavaScriptを実行したりすることが可能になり、CDP経由で既存のChromeインスタンスに接続することも可能です。

これは、実行中の Chrome インスタンスに接続するための CDP サポートが強化された、 executeautomation/mcp-playwright v0.2.7 のフォークです。

主な特徴

  • 🔗 CDP 経由で既存の Chrome インスタンスに接続する

  • 🌐 完全なブラウザ自動化機能

  • 📸 ページ全体または特定の要素のスクリーンショットキャプチャ

  • 🖱️ 包括的なウェブインタラクション(ナビゲーション、クリック、フォーム入力)

  • 📊 コンソールログ監視

  • 🔧 ブラウザコンテキストでの JavaScript 実行

  • 🌍 HTTP API テストのサポート

Related MCP server: Browser Manager MCP Server

インストール

npm または Smithery を使用してパッケージをインストールできます。

Smithery経由でインストール

Smithery経由で Claude Desktop 用の MCP Playwright CDP を自動的にインストールするには:

npx -y @smithery/cli install @lars-hagen/mcp-playwright-cdp --client claude

手動インストール

npm を使用する場合:

npm install

構成

Claude Desktop 構成ファイルに以下を追加します。

{
  "mcpServers": {
    "playwright": {
      "command": "node",
      "args": ["/path/to/mcp-playwright/dist/index.js"]
    }
  }
}

/path/to/mcp-playwrightリポジトリへの実際のパスに置き換えます。

CDP接続

このフォークは、CDP経由で既存のChromeインスタンスに接続する機能を追加します。この機能を使用するには、以下の手順を実行してください。

  1. リモート デバッグを有効にして Chrome を起動します。

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
  1. サーバーは、新しいブラウザを起動する前に、まず実行中の Chrome インスタンスへの接続を自動的に試みます。

クレジット

このプロジェクトはexecuteautomation/mcp-playwrightのフォークであり、実行中の Chrome インスタンスに接続するための CDP サポートが強化されています。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。

Available Tools

12 tools
playwright_clickC

Click an element on the page

Inputs: selector (required).

playwright_deleteC

Perform an HTTP DELETE request

Inputs: url (required).

playwright_evaluateC

Execute JavaScript in the browser console

Inputs: script (required).

playwright_fillC

fill out an input field

Inputs: selector (required), value (required).

playwright_getC

Perform an HTTP GET request

Inputs: url (required).

playwright_hoverC

Hover an element on the page

Inputs: selector (required).

playwright_navigateC

Navigate to a URL

Inputs: url (required), width, height, timeout, +1 more.

playwright_patchC

Perform an HTTP PATCH request

Inputs: url (required), value (required).

playwright_postC

Perform an HTTP POST request

Inputs: url (required), value (required).

playwright_putC

Perform an HTTP PUT request

Inputs: url (required), value (required).

playwright_screenshotC

Take a screenshot of the current page or a specific element

Inputs: name (required), selector, width, height, +3 more.

playwright_selectC

Select an element on the page with Select tag

Inputs: selector (required), value (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between playwright_click and playwright_select as both interact with page elements, which could cause minor confusion. The HTTP methods (GET, POST, PUT, PATCH, DELETE) are clearly differentiated, and other tools like playwright_navigate, playwright_screenshot, and playwright_evaluate have unique functions.

    Naming Consistency5/5

    All tool names follow a consistent 'playwright_' prefix with a verb or action (e.g., click, get, navigate), using snake_case uniformly. This predictable pattern makes it easy for agents to understand and navigate the tool set without naming conflicts or style variations.

    Tool Count5/5

    With 12 tools, the count is well-scoped for a Playwright CDP server, covering essential web automation tasks like navigation, interaction, HTTP requests, and debugging. Each tool serves a specific purpose, avoiding bloat while providing comprehensive functionality for the domain.

    Completeness4/5

    The tool set covers key areas: navigation, element interaction, HTTP methods, and debugging (screenshot, evaluate). Minor gaps exist, such as missing tools for handling cookies, waiting for elements, or managing browser contexts, but core workflows are well-supported, allowing agents to perform most common automation tasks.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables comprehensive browser automation and web interaction through Playwright with 50+ specialized functions for navigation, form filling, data extraction, and Chrome DevTools Protocol support. Designed specifically for AI agents to perform complex web workflows including scraping, testing, and automated browsing tasks.
      14 npm
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables comprehensive browser automation and control through Playwright, including launching browsers, managing tabs, web navigation, element interaction, and screenshot capture. Supports detecting and controlling external browsers with remote debugging capabilities.
      ISC
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI coding assistants to control and inspect a live Chrome browser for automated debugging, performance analysis, and web interaction. It leverages Puppeteer and Chrome DevTools to provide capabilities like network monitoring, console logging, and automated browser actions.
      -