The MCP Browser Tabs Server allows you to interact with Google Chrome browser tabs on macOS.
- Retrieve open tabs: Use the
get_tabs
tool to fetch all open tabs, displaying their titles, URLs, and identifying window/tab indices grouped by window. - Close specific tabs: Use the
close_tab
tool to close a specific tab by providing its window and tab index (both starting from 1).
Note: When closing multiple tabs, start from the highest index numbers to avoid index shifting, and use get_tabs
afterward to confirm changes.
Allows retrieving information about and controlling currently open Chrome tabs, including listing all open tabs with their titles and URLs, and closing specific tabs by window and tab indices.
Designed specifically for macOS due to its dependency on AppleScript for interacting with Chrome tabs.
MCP Browser Tabs
Model Context Protocol server for retrieving and managing Chrome browser tabs information. This allows Claude Desktop (or any MCP client) to fetch information about and control currently open Chrome tabs.
Quick Start (For Users)
To use this tool with Claude Desktop, simply add the following to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json
):
This will automatically download and run the latest version of the tool when needed.
Required Setup
- Enable Accessibility for Chrome:
- Open System Settings
- Go to Privacy & Security > Accessibility
- Click the "+" button
- Add Google Chrome from your Applications folder
- Turn ON the toggle for Chrome
This accessibility setting is required for AppleScript to interact with Chrome tabs.
For Developers
The following sections are for those who want to develop or modify the tool.
Prerequisites
- Node.js 18+
- macOS (for AppleScript operations)
- Google Chrome
- Claude Desktop (install from https://claude.ai/desktop)
- tsx (install via
npm install -g tsx
)
Installation
Available Tools
get_tabs
: Retrieves all open tabs from Google Chrome browser, returning their titles and URLs. Tabs are grouped by window and displayed in a format like "Window 1-1" (Window 1, Tab 1).close_tab
: Closes a specific tab in Google Chrome using window and tab indices.- Parameters:
- windowIndex: Window number (starts from 1)
- tabIndex: Tab number within the window (starts from 1)
- Note: When closing multiple tabs, start from the highest index numbers to avoid index shifting. After closing tabs, use get_tabs to confirm the changes.
- Parameters:
Notes
- This tool is designed for macOS only due to its dependency on AppleScript.
- Requires Google Chrome to be installed and running.
- Accessibility permissions must be granted for Chrome.
License
MIT License - see the LICENSE file for details
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables interaction with Google Chrome tabs through the MCP protocol, allowing clients to retrieve information and control tabs on macOS using AppleScript.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityFacilitates controlling Apple Music on macOS via AppleScript through MCP commands, allowing users to manage playback, search for tracks, and create playlists.Last updated -1046PythonMIT License
- AsecurityAlicenseAqualityEnables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.Last updated -65702,338TypeScriptMIT License
- -securityAlicense-qualityEnables interaction with Gmail and Google Calendar using the MCP protocol, supporting multiple Google accounts, email management, and calendar operations through natural language.Last updated -12TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server that provides tools for interacting with Chrome through its DevTools Protocol, enabling remote control of Chrome tabs to execute JavaScript, capture screenshots, monitor network traffic, and more.Last updated -78941TypeScriptMIT License