@pokutuna/mcp-chrome-tabs
An MCP server that lets you inspect and read content from already-open browser tabs, and open new tabs, on macOS.
List all open browser tabs with titles, hostnames/URLs, and tab references (ID:windowId:tabId).
Read clean, AI-friendly markdown content from the active tab or a specific tab by ID, with optional startIndex for truncated content.
Open a URL in a new browser tab and get its tab ID.
Access the active tab via the
tab://currentresource; with--check-interval, accesstab://{windowId}/{tabId}resources and receive MCPlistChangednotifications.Use read-only CLI commands to list tabs and read content by active tab, index, or ID outside MCP.
Configure host exclusions, content size/timeout limits, browser app name, and experimental Safari/Arc support.
Provides direct access to open tabs in Google Chrome, allowing reading tab content, listing all open tabs, and opening new tabs, with content optimized for AI consumption through readability processing and markdown conversion.
Offers experimental support for accessing open tabs in Safari, enabling reading tab content and listing open tabs, though with limitations due to Safari's lack of unique tab IDs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@pokutuna/mcp-chrome-tabs read the content from my current tab"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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)
Related MCP server: agent-browser-ga MCP
Requirements
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@latestClaude 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-tabsCommand 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=20000list 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.readneeds 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)
--exclude-hosts- Comma-separated list of domains to exclude from tab listing and content access. Hosts in theMCP_CHROME_TABS_EXCLUDE_HOSTSenvironment variable are excluded as well--application-name- Application name to control (default: "Google Chrome")--experimental-browser- Browser implementation to use: "chrome", "safari", or "arc" (default: "chrome")--help- Show help message with all available options--version- Show the package version
Who Can Read Your Tabs
Anything that runs as your user and has Automation permission for the browser can read your tabs, with or without this package. Keep the following in mind when using the commands above:
listandreaddo not go through your MCP client's tool approval. Any process or agent that can run shell commands can call them.macOS grants Automation permission to the app that starts the process, such as your terminal. If you allowed it once for the MCP server, commands run from the same app get it too.
--exclude-hostsapplies only to the process it is passed to. Hosts excluded in your MCP client config are not excluded for command line runs. To exclude hosts everywhere, setMCP_CHROME_TABS_EXCLUDE_HOSTSin your shell profile (e.g.export MCP_CHROME_TABS_EXCLUDE_HOSTS="mail.google.com"). Either way, it filters what this package returns; it does not control access.
To block access entirely, turn off the browser under System Settings > Privacy & Security > Automation for the app in question.
Asking before a coding agent reads a tab
A coding agent with shell access can run list and read, or osascript
directly, without the MCP tool approval. Its permission rules can require a
confirmation for these commands, even in an auto-approve mode. The rules match
the command text, so an agent that reaches the same program another way (for
example /usr/bin/osascript) is not caught; they are a checkpoint, not access
control.
Claude Code (~/.claude/settings.json; use deny instead of ask to block):
{
"permissions": {
"ask": [
"Bash(mcp-chrome-tabs *)",
"Bash(npx *mcp-chrome-tabs*)",
"Bash(osascript *)"
]
}
}Codex CLI (~/.codex/rules/default.rules; use "forbidden" to block):
prefix_rule(pattern = ["mcp-chrome-tabs"], decision = "prompt")
prefix_rule(pattern = ["npx", "@pokutuna/mcp-chrome-tabs"], decision = "prompt")
prefix_rule(pattern = ["npx", "-y", "@pokutuna/mcp-chrome-tabs"], decision = "prompt")
prefix_rule(pattern = ["osascript"], decision = "prompt")Resource Subscription (Optional)
Setting --check-interval to a value greater than 0 enables resource subscription. When enabled, the server monitors tab list changes and sends MCP listChanged notifications to prompt clients to refresh their resource lists. This also makes tab://{windowId}/{tabId} resources available for all open tabs.
In 2025-10, few MCP clients support resource subscriptions. Resource subscription is disabled by default (--check-interval=0). Most users only need the tab://current resource, which is always available.
To enable resource subscription:
{
"mcpServers": {
"chrome-tabs": {
"command": "npx",
"args": [
"-y",
"@pokutuna/mcp-chrome-tabs@latest",
"--check-interval=3000"
]
}
}
}Other Browser Support (Experimental)
Safari
Reading page content requires Develop > Allow JavaScript from Apple Events in Safari. Note that Safari lacks unique tab IDs, making it sensitive to tab order changes during execution:
npx @pokutuna/mcp-chrome-tabs --application-name=Safari --experimental-browser=safariArc
npx @pokutuna/mcp-chrome-tabs --application-name=Arc --experimental-browser=arcMCP Features
Tools
List all open tabs in the user's browser with their titles, URLs, and tab references.
Returns: Markdown formatted list of tabs with tab IDs for reference
Get readable content from a tab in the user's browser.
id(optional): Tab reference fromlist_tabsoutput (e.g.,ID:12345:67890)If
idis omitted, uses the currently active tabReturns: Clean, readable content extracted using Mozilla Readability
Open a URL in a new tab to present content or enable user interaction with webpages.
url(required): URL to open in the browserReturns: Tab ID in format
ID:windowId:tabIdfor immediate access to the new tab
Resources
Resource representing the content of the currently active tab.
URI:
tab://currentMIME type:
text/markdownContent: Real-time content of the active browser tab
Always available regardless of
--check-intervalsetting
Resource template for accessing specific tabs.
URI pattern:
tab://{windowId}/{tabId}MIME type:
text/markdownContent: Content of the specified tab
Availability: Only when
--check-intervalis set to a value greater than 0Resources are dynamically generated based on currently open tabs
When enabled, the server monitors tab changes and sends MCP listChanged notifications
Troubleshooting
Current Tabs (0 tabs exists) is displayed
Ensure "Allow JavaScript from Apple Events" is enabled in Chrome (see Getting Started).
If it was working before, try restarting your browser.
Available Tools
3 toolslist_tabsList TabsA
List all open tabs in the user's browser with their titles and tab references.
Inputs: includeUrl.
open_in_new_tabOpen in New TabB
Open a URL in a new tab to present content or enable user interaction with webpages
Inputs: url (required).
read_tab_contentRead Tab ContentA
Get readable content from a tab in the user's browser. Provide ID (from list_tabs output) to read a specific tab, or omit for the active tab.
Inputs: id, startIndex.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: listing tabs, reading tab content, and opening a new tab. There is no meaningful overlap or ambiguity between them.
All tool names follow a consistent snake_case verb_noun pattern: list_tabs, read_tab_content, open_in_new_tab. The convention is predictable and readable.
Three tools is well-scoped for a browser-tab MCP server focused on listing, reading, and opening tabs. Each tool earns its place without feeling thin or bloated.
The surface covers the core read/open workflows, but missing operations like closing tabs or focusing an existing tab could limit some agent workflows. These are minor gaps that agents can mostly work around.
Maintenance
Related MCP Connectors
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Let AI agents observe and control Chrome tabs you explicitly share via Browse Bridge.
Connect AI agents to your own Chrome with scoped access, approvals, and verified task results.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceSearch and retrieve content from all open Chrome tabs, and provide them as context for AI tools via MCP.5 npm4MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with a user's real Chrome browser tabs, executing JavaScript, reading cookies, and making fetch requests within authenticated sessions.-
- AlicenseNot gradedqualityBmaintenanceA read-only bridge that lets ChatGPT inspect open Chrome tabs, exposing tools to list, read, and search tabs without accessing sensitive data.15 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to request and receive user-granted, short-lived access to a single tab in the user's existing Chromium-based browser, then read, highlight, scroll, and navigate within that granted page without exposing other tabs or copying the browser profile.Apache 2.0