
模型上下文协议(MCP)服务器,提供直接访问浏览器打开标签页内容。无需额外的检索或认证——只需访问你已经在查看的内容。
概览
模型上下文协议(MCP)服务器,提供直接访问浏览器打开标签页内容。无需额外的检索或认证——只需访问你已经在查看的内容。 - - 无需网页抓取,能读取已打开标签页的内容 - - 自动内容提取和标记转换以减少令牌使用- - 可即时访问当前关注的标签页,无需指定ID- - 遵循MCP协议通知标签更改(启用--check-interval) - 该MCP服务器使用AppleScript,仅支持macOS。 - 20 或更新版本——如 Claude Desktop、Claude Code 或任何兼容 MCP 的客户端——仅限(使用 AppleScript 进行浏览器自动化) 首先,在Chrome中启用“允许Apple Events中的JavaScript”: 当你首次使用 MCP 服务器时,macOS 会提示你向 MCP 客户端(例如 Claude Desktop、Claude Code)授予 AppleScript 自动化权限。点击允许访问 Chrome。
概述(AI 翻译)
模型上下文协议(MCP)服务器,提供直接访问浏览器打开标签页内容。无需额外的检索或认证——只需访问你已经在查看的内容。
主要特色
- 直接访问浏览器标签页 - 无需网页抓取,读取已打开标签页的内容
- 为人工智能优化的内容 - 自动内容提取和降价转换以减少代币使用。
- 活动标签快捷方式 - 无需指定ID即可即时访问当前聚焦标签页
- MCP 列表更改通知 - 遵循 MCP 协议通知标签页更改(将
--check-interval设置为启用)
要求
[!重要] 仅macOS - 该MCP服务器使用Apple Events(JXA),仅支持macOS。
- Node.js 22年及以后
- MCP 客户端,如 Claude Desktop、Claude Code 或任何兼容 MCP 的客户端
- macOS 仅限(通过 JXA 使用 Apple Events 进行浏览器自动化)
开始
首先,在Chrome中启用“允许Apple Events中的JavaScript”:
- (英文) 查看 > 开发者 > 允许苹果事件中的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"]
}
}
}