@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-interval to 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 @pokutuna/mcp-chrome-tabs read 2
# Continue reading truncated content
npx @pokutuna/mcp-chrome-tabs read ID:12345:67890 --offset=20000
list prints an INDEX column for reading the listing at a glance, but it
numbers that one listing only -- it shifts when tabs open or close. Windows
are ordered by ID (creation order) rather than front to back, so switching
windows does not renumber the list. read <INDEX> re-resolves the index when
it runs, so it can land on a different tab than you saw; pass the ID when that
matters. An argument starting with ID: is taken as an ID, and a bare number
as an INDEX.
Reading refuses a browser that is not running rather than launching it;
open_in_new_tab still launches it.
Running the command without a subcommand starts the MCP server.
Options apply to the commands shown below; passing one to a command it does
not apply to is an error.
List Options
--include-url - Show the full URL instead of the domain
Read Options
--active - Read the tab you are looking at now. read needs one of an ID, an INDEX, or --active
--offset - Start reading content at this character offset (default: 0)
Content Options (read and the MCP server)
--max-content-chars - Maximum content characters per single read (default: 20000)
--extraction-timeout - Timeout for content extraction worker in milliseconds (default: 20000)
MCP Server Options
--check-interval - Interval in milliseconds to check for tab changes and send listChanged notifications (default: 0 disabled, set to 3000 for 3 seconds)
Common Options (all commands)