
pokutuna/mcp-chrome-tabs
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ブラウザの開いたタブのコンテンツに直接アクセスできるモデルコンテキストプロトコル(MCP)サーバー。 追加のフェッチや認証は必要ありません - 既に表示されているものにアクセスするだけです.
概要
ブラウザの開いたタブのコンテンツに直接アクセスできるモデルコンテキストプロトコル(MCP)サーバー。 追加のフェッチや認証は必要ありません - 既に表示されているものにアクセスするだけです。 - - 必要なWebスクレイピングなし、既に開いているタブからコンテンツを読み込む - - 自動コンテンツ抽出とマークダウン変換 - IDを指定せずに現在焦点を絞ったタブへの即時アクセス - - MCPプロトコルに従ってタブの変更を通知します( - - - - - - 有効にするためのインターバルを設定) - このMCPサーバーはAppleScriptを使用しており、macOSでのみ動作します。 - Claude デスクトップ、Claude コード、または MCP 互換クライアントなどの 20 または newer - のみ (ブラウザの自動化のために AppleScript を使用する) まず、Chromeで「Apple EventsからJavaScriptを許可する」を有効にします。 MCP サーバーを使用する際、macOS は、MCP クライアント (Claude デスクトップ、Claude コードなど) に AppleScript の自動化権限を付与するプロンプトが表示されます。 クリックして、Chromeへのアクセスを許可します.
概要(AI 翻訳)
ブラウザの開いたタブのコンテンツに直接アクセスできるモデルコンテキストプロトコル(MCP)サーバー。 追加のフェッチや認証は必要ありません - 既に表示されているものにアクセスするだけです。
主な特長
- 直接ブラウザタブアクセス - 必要なWebスクレイピングなし、既に開いているタブからコンテンツを読み込みます -AIのために最適化されたコンテンツ - トークン使用量を削減するための自動コンテンツ抽出とマークダウン変換 -Activeタブショートカット - IDを指定せずに現在フォーカスしたタブへの即時アクセス
- MCP リスト変更通知 - MCP プロトコルをフォローして、タブの変更 ([
--check-intervalを設定) を有効にします。
要件
【重要】 macOSのみ - このMCPサーバーはApple Events(JXA)を使用し、macOSでのみ動作します。
- Node.js 22 以降
- Claudeデスクトップ、Claudeコード、またはMCP互換クライアントなどのMCPクライアント** -macOSのみ(ブラウザの自動化のためにJXAを介してAppleイベントを使用)
はじめる
まず、Chromeで「Apple EventsからJavaScriptを許可する」を有効にします。
- (en)View >Developer > Apple EventsからJavaScriptを許可する
- (ja)** 表示** >** 開発/管理** > Apple Events から JavaScript まで**
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
@pokutuna/mcp-chrome-tabs
Model Context Protocol (MCP) server that provides direct access to your browser’s open tabs content. No additional fetching or authentication required - simply access what you’re already viewing.
Key Features
- Direct browser tab access - No web scraping needed, reads content from already open tabs
- Content optimized for AI - Automatic content extraction and markdown conversion to reduce token usage
- Active tab shortcut - Instant access to currently focused tab without specifying IDs
- MCP listChanged notifications - Follows MCP protocol to notify tab changes (set
--check-intervalto enable)
Requirements
[!IMPORTANT]
macOS only - This MCP server uses Apple Events (JXA) and only works on macOS.
- Node.js 22 or newer
- MCP Client such as Claude Desktop, Claude Code, or any MCP-compatible client
- macOS only (uses Apple Events via JXA for browser automation)
Getting Started
First, enable “Allow JavaScript from Apple Events” in Chrome:
- (en) View > Developer > Allow JavaScript from Apple Events
- (ja) 表示 > 開発 / 管理 > Apple Events からの JavaScript を許可
When you first use the MCP server, macOS will prompt you to grant Automation permission to your MCP client (e.g., Claude Desktop, Claude Code). Click OK to allow access to Chrome. If you accidentally dismissed the dialog, you can enable it in System Settings > Privacy & Security > Automation.
When multiple Google Chrome processes exist, JXA generally selects the oldest process, but this is not a guaranteed process-selection API. Start your normal Chrome before starting other Chrome instances when process identity matters.
Standard config works in most MCP clients (e.g., .claude.json, .mcp.json):
{
"mcpServers": {
"chrome-tabs": {
"command": "npx",
"args": ["-y", "@pokutuna/mcp-chrome-tabs@latest"]
}
}
}
Or for Claude Code:
claude mcp add -s user chrome-tabs -- npx -y @pokutuna/mcp-chrome-tabs@latest
Claude Code Plugin
You can also install this as a Claude Code plugin:
# Add the marketplace
/plugin marketplace add pokutuna/mcp-chrome-tabs
# Install the plugin
/plugin install mcp-chrome-tabs@mcp-chrome-tabs
Command Line Options
The package also provides read-only commands for accessing the same tab data as the MCP tools:
# List open tabs as: [INDEX] ID TITLE DOMAIN (* marks the active tab)
npx @pokutuna/mcp-chrome-tabs list
# Show the full URL in place of the domain
npx @pokutuna/mcp-chrome-tabs list --include-url
# Read the active tab
npx @pokutuna/mcp-chrome-tabs read --active
# Read a specific tab from an ID returned by list
npx @pokutuna/mcp-chrome-tabs read ID:12345:67890
# Read by INDEX from the list instead
インストール
npx -y @pokutuna/mcp-chrome-tabs@latest設定
{
"mcpServers": {
"chrome-tabs": {
"command": "npx",
"args": ["-y", "@pokutuna/mcp-chrome-tabs@latest"]
}
}
}