MCPブラウザタブ
Chromeブラウザのタブ情報を取得・管理するためのモデルコンテキストプロトコル(MCP)サーバー。これにより、Claude Desktop(または任意のMCPクライアント)は、現在開いているChromeタブの情報を取得し、制御できるようになります。
クイックスタート(ユーザー向け)
このツールを Claude Desktop で使用するには、Claude Desktop の構成 ( ~/Library/Application Support/Claude/claude_desktop_config.json
) に以下を追加するだけです。
これにより、必要に応じてツールの最新バージョンが自動的にダウンロードされ、実行されます。
必要な設定
- Chrome のアクセシビリティを有効にする:
- システム設定を開く
- 「プライバシーとセキュリティ」>「アクセシビリティ」へ移動
- 「+」ボタンをクリック
- アプリケーションフォルダからGoogle Chromeを追加します
- Chromeのトグルをオンにする
AppleScript が Chrome タブを操作するには、このアクセシビリティ設定が必要です。
開発者向け
次のセクションは、ツールを開発または変更したい人向けです。
前提条件
- Node.js 18歳以上
- macOS(AppleScript操作用)
- グーグルクローム
- Claude Desktop ( https://claude.ai/desktopからインストール)
- tsx (
npm install -g tsx
でインストール)
インストール
利用可能なツール
get_tabs
: Google Chromeブラウザから開いているすべてのタブを取得し、タイトルとURLを返します。タブはウィンドウごとにグループ化され、「ウィンドウ1-1」(ウィンドウ1、タブ1)のような形式で表示されます。close_tab
: ウィンドウとタブのインデックスを使用して、Google Chrome 内の特定のタブを閉じます。- パラメータ:
- windowIndex: ウィンドウ番号(1から始まる)
- tabIndex: ウィンドウ内のタブ番号(1から始まる)
- 注: 複数のタブを閉じる際は、インデックス番号のずれを防ぐため、最も大きいインデックス番号から順に閉じてください。タブを閉じた後、get_tabs を使って変更内容を確認してください。
- パラメータ:
注記
- このツールは AppleScript に依存しているため、macOS 専用に設計されています。
- Google Chrome がインストールされ、実行されている必要があります。
- Chrome にアクセシビリティ権限を付与する必要があります。
ライセンス
MITライセンス - 詳細についてはLICENSEファイルを参照してください
local-only server
The server can only run on the client's local machine because it depends on local resources.
MCP プロトコルを介して Google Chrome タブとのやり取りを可能にし、クライアントが AppleScript を使用して macOS 上の情報を取得したりタブを制御できるようにします。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityEnables Google search and webpage content extraction via Chrome for macOS, allowing access to both unauthenticated and authenticated content, and integrates with Claude for secure and automated browsing tasks.Last updated -2457MIT License
- AsecurityAlicenseAqualityAn MCP server that provides tools for interacting with Chrome through its DevTools Protocol, enabling remote control of Chrome tabs to execute JavaScript, capture screenshots, monitor network traffic, and more.Last updated -73014TypeScriptMIT License
- AsecurityFlicenseAqualityControls Chrome browser with debugging capabilities, allowing page automation, extension management, and userscript injection through the Model Context Protocol.Last updated -1313JavaScript
- -security-license-qualityA Model Context Protocol server that enables AI assistants to control Chrome browsers through the Chrome DevTools Protocol, allowing for navigation, clicking, typing, and extracting page information.Last updated -3TypeScript