Chrome Tabs
About
Integrates with Chrome on macOS to retrieve and manage browser tab information using AppleScript.
Details
- Author
- kazuph
- Repository
- kazuph/mcp-browser-tabs
- GitHub stars
- 8
- Downloads
- 1,647
- License
- MIT License
- Categories
- Productivity, Developer Tools, AI, Knowledge Base, Infrastructure
- Tags
- #web
Jump to
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Chrome TabsCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@kazuph/mcp-browser-tabs
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
git clone https://github.com/kazuph/mcp-browser-tabs.git
cd mcp-browser-tabs
npm install
npm run build
To use this tool with Claude Desktop, simply add the following to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"tools": {
"browser-tabs": {
"command": "npx",
"args": ["-y", "@kazuph/mcp-browser-tabs"]
}
}
}
This will automatically download and run the latest version of the tool when needed.
1. 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.
get_tabs
Retrieves all open tabs from Google Chrome browser, returning their titles and URLs. Tabs are grouped by window.
close_tab
Closes a specific tab in Google Chrome using window and tab indices. Parameters: windowIndex (number), tabIndex (number).
- 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.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"chrome tabs": {
"cwd": null,
"env": {},
"args": [
"-y",
"@kazuph/mcp-browser-tabs"
],
"shell": false,
"command": "npx"
}
}
}
Linux
{
"cwd": null,
"env": [],
"args": [
"-y",
"@kazuph/mcp-browser-tabs"
],
"shell": false,
"command": "npx"
}
Macos
{
"cwd": null,
"env": [],
"args": [
"-y",
"@kazuph/mcp-browser-tabs"
],
"shell": false,
"command": "npx"
}
Windows
{
"cwd": null,
"env": [],
"args": [
"/c",
"npx",
"-y",
"@kazuph/mcp-browser-tabs"
],
"shell": true,
"command": "cmd"
}
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.
<a href="https://glama.ai/mcp/servers/wze1kc6emp"></a>
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):
{
"tools": {
"browser-tabs": {
"command": "npx",
"args": ["-y", "@kazuph/mcp-browser-tabs"]
}
}
}
This will automatically download and run the latest version of the tool when needed.
Required Setup
1. 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
git clone https://github.com/kazuph/mcp-browser-tabs.git
cd mcp-browser-tabs
npm install
npm run build
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.
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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





