
pokutuna/mcp-chrome-tabs
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
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.
Обзор
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. - - No web scraping needed, reads content from already open tabs - - Automatic content extraction and markdown conversion to reduce token usage - - Instant access to currently focused tab without specifying IDs - - Follows MCP protocol to notify tab changes (set --check-interval to enable) - This MCP server uses AppleScript and only works on macOS. - 20 or newer - such as Claude Desktop, Claude Code, or any MCP-compatible client - only (uses AppleScript for browser automation) First, enable "Allow JavaScript from Apple Events" in Chrome: When you first use the MCP server, macOS will prompt you to grant AppleScript automation permission to your MCP client (e.g., Claude Desktop, Claude Code). Click to allow access to Chrome.
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"]
}
}
}