Skip to main content
Glama

Chrome MCP Server

by lxe

Chrome MCP サーバー

Chrome DevTools プロトコル (CDP) を通じて Chrome ブラウザ インスタンスをきめ細かく制御できるモデル コンテキスト プロトコル (MCP) サーバー。

前提条件

  • Bun (推奨)またはNode.js(v14以上)
  • リモートデバッグが有効になっている Chrome ブラウザ

設定

Bunのインストール

  1. Bun をインストールします (まだインストールされていない場合)。
# macOS, Linux, or WSL curl -fsSL https://bun.sh/install | bash # Windows (using PowerShell) powershell -c "irm bun.sh/install.ps1 | iex" # Alternatively, using npm npm install -g bun
  1. リモート デバッグを有効にして Chrome を起動します。付属のスクリプトを使用すると、OS を自動的に検出し、正しいコマンドで Chrome を起動できます。
    # Make the script executable chmod +x start-chrome.sh # Run the script ./start-chrome.sh
    または、リモート デバッグを使用して Chrome を手動で起動します。
    # macOS /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 # Windows start chrome --remote-debugging-port=9222 # Linux google-chrome --remote-debugging-port=9222
  2. 依存関係をインストールします:
bun install
  1. サーバーを起動します。
bun start

ホットリロードを使用した開発の場合:

bun dev

サーバーはデフォルトでポート3000で起動します。PORT環境変数PORT設定することでこれを変更できます。

このMCPサーバーを使用するようにRoo Codeを構成する

この Chrome MCP サーバーを Roo Code で使用するには:

  1. Roo Codeの設定を開く
  2. 次の MCP 設定構成ファイルに移動します。
    • macOS: ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
    • Windows: %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
    • Linux: ~/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
  3. mcpServersオブジェクトに次の構成を追加します。
{ "mcpServers": { "chrome-control": { "url": "http://localhost:3000/sse-cursor", "disabled": false, "alwaysAllow": [] } } }
  1. ファイルを保存し、Roo Code を再起動して変更を適用します。
  2. Roo Code の Chrome MCP ツールを使用してブラウザを制御できるようになりました。

利用可能なツール

サーバーはブラウザ制御用に次のツールを提供します。

ナビゲート

特定の URL に移動します。

パラメータ:

  • url (文字列): 移動するURL

クリック

特定の座標をクリックします。

パラメータ:

  • x (数値): X座標
  • y (数値): Y座標

タイプ

現在のフォーカスにテキストを入力します。

パラメータ:

  • text (文字列): 入力するテキスト

クリック要素

ページ情報内のインデックスで要素をクリックします。

パラメータ:

  • selector (文字列):要素のインデックス(例:最初の要素の場合は「0」)

テキスト取得

CSS セレクターを使用して要素のテキスト コンテンツを取得します。

パラメータ:

  • selector (文字列):要素を見つけるためのCSSセレクター

ページ情報を取得する

インタラクティブな要素やテキスト ノードを含むページに関するセマンティック情報を取得します。

ページ状態を取得する

URL、タイトル、スクロール位置、ビューポート サイズなどの現在のページの状態を取得します。

使用法

サーバーはSSEトランスポートを使用したモデルコンテキストプロトコルを実装しています。サーバーへの接続は次のURLから行えます。

  • SSEエンドポイント: http://localhost:3000/sse-cursor
  • メッセージエンドポイント: http://localhost:3000/message?sessionId=...

Roo Code と併用する場合、MCP 設定ファイルの構成によって接続が自動的に処理されます。

発達

ホット リロードを使用して開発モードでサーバーを実行するには:

bun dev

これは、Bun の組み込み監視モードを使用して、ファイルが変更されたときにサーバーを自動的に再起動します。

ライセンス

マサチューセッツ工科大学

-
security - not tested
-
license - not tested
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

AI アシスタントが Chrome DevTools プロトコルを通じて Chrome ブラウザを制御し、ナビゲーション、クリック、入力、ページ情報の抽出を行えるようにするモデル コンテキスト プロトコル サーバー。

  1. 前提条件
    1. 設定
      1. Bunのインストール
    2. このMCPサーバーを使用するようにRoo Codeを構成する
      1. 利用可能なツール
        1. ナビゲート
        2. クリック
        3. タイプ
        4. クリック要素
        5. テキスト取得
        6. ページ情報を取得する
        7. ページ状態を取得する
      2. 使用法
        1. 発達
          1. ライセンス

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              Controls Chrome browser with debugging capabilities, allowing page automation, extension management, and userscript injection through the Model Context Protocol.
              Last updated -
              13
              13
              JavaScript
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              A web browser automation server that allows AI assistants to control Chrome with persistent state management, enabling complex browsing tasks through asynchronous browser operations.
              Last updated -
              1
              Python
              • Apple
            • -
              security
              A
              license
              -
              quality
              AI-driven browser automation server that implements the Model Context Protocol to enable natural language control of web browsers for tasks like navigation, form filling, and visual interaction.
              Last updated -
              1
              Python
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              A browser monitoring and interaction tool that enables AI applications to capture and analyze browser data through a Chrome extension via Anthropic's Model Context Protocol.
              Last updated -
              13
              JavaScript
              MIT License

            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/lxe/chrome-mcp'

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