2ManyTabs MCP
An MCP server and browser extension that let your AI agent tame your overflowing tabs: find them, group them, clean them up, and run scripts in them for you.
Once it's installed, tell your AI "I have too many tabs open, help me clean up." It saves a list of everything you have open, shows your tabs a few groups at a time, and closes only what you say yes to. The handful of tabs that are really things to do (buy this, reply to that) get a next step and a "when" in your own words, kept somewhere you look, before their tabs close. How the clean-up works.
Install
1. Add the MCP server
One command, with Node.js 18 or newer installed. In Claude Code:
claude mcp add 2manytabs-mcp -- npx -y 2manytabs-mcp-host
Using another client? Open yours:
agy mcp add 2manytabs-mcp npx -y 2manytabs-mcp-host
codex mcp add 2manytabs-mcp -- npx -y 2manytabs-mcp-host
code --add-mcp '{"name":"2manytabs-mcp","command":"npx","args":["-y","2manytabs-mcp-host"]}'
This adds it to your user profile.
hermes mcp add 2manytabs-mcp --command npx --args -y 2manytabs-mcp-host
Open Settings → MCP, choose Add server, pick Stdio, and enter the command npx with the arguments -y 2manytabs-mcp-host.
Add this to the client's MCP config file, then restart the client:
{
"mcpServers": {
"2manytabs-mcp": {
"command": "npx",
"args": ["-y", "2manytabs-mcp-host"]
}
}
}
Any other client that runs MCP servers over stdio works with the command npx -y 2manytabs-mcp-host.
2. Add the browser extension
The extension is not in a browser store yet. Download it from the latest release: the file ending in -chrome.zip for Chrome, Brave, Edge and Opera, or -firefox.zip for Firefox and LibreWolf.
- Chrome and other Chromium browsers: unzip it, open
chrome://extensions, turn on Developer mode, choose Load unpacked, and select the unzipped folder. - Firefox and LibreWolf: open
about:debugging#/runtime/this-firefox, choose Load Temporary Add-on, and select the zip. Firefox removes temporary add-ons when it closes, so load it again each session.
Want it signed and in the official stores, with no more temporary loads? Open an issue to ask.
Tools
Tab ids look like chrome:12 or firefox:34, and several browsers can be connected at once.
Usage
Ask your agent in plain words. Some things to try:
Cleaning up lots of tabs
Say it in your own words: "I have too many tabs", "help me close some tabs", or "I keep tabs open so I don't forget things". Your AI then:
- Looks at your tabs as groups (one per site), so even a thousand tabs come down to a few dozen decisions.
- Asks how much time you have and what you're using right now.
- Saves a list of every open tab on your computer before anything closes.
- Shows you three to five groups at a time with its best guess, like "Google searches, 12 tabs, probably finished with". You say close, keep, or "that's something I need to do". "Leave it" is always fine.
- For the few real to-dos, asks for the very next step and when you'll do it ("when I get home Saturday, I'll check Costco for the Mac mini"), in your words, and keeps it in your notes, a list you copy, or a named tab group, before closing those tabs.
- Tells you exactly what will close and how many, and closes nothing until you say yes. For a big batch you type the number back.
It never fills in forms, buys anything, or reads the text of banking, health or email pages. Pinned tabs stay open unless you name them. If you ask for tab groups, it says so first (tabs shuffle within each window while it works), keeps every tab in its own window, gives groups short names that fit the tab bar, and leaves you on the tab you were on. If a web page's title contains instructions aimed at the AI, it tells you instead of following them.
What gets saved, and where. Each clean-up saves one file listing the tabs that were open: title, link, window, group, whether it was pinned, and when it was last used. No cookies, passwords or typed text. The files stay on your computer, in your own user account's app folder:
Ask your AI to "bring back" tabs and it reopens them from the newest list. Delete the folder whenever you like.
In clients that list MCP prompts, the close-the-loops prompt starts the same clean-up (in Claude Code, type /mcp__2manytabs-mcp__close-the-loops). The method also ships as an Agent Skill in native-host/skills/closing-tab-loops: copy that folder into your client's skills folder if you'd rather load it that way. You don't need to; the server hands the same method to your AI when you ask.
Compatibility
Chrome and Firefox can be connected at the same time. Brave, Edge and Opera use the Chrome build.
git clone https://github.com/jamubc/2ManyTabs-MCP.git
cd 2ManyTabs-MCP
bash install.sh
cd extension && npm install && npm run build && npm run build:firefox
install.sh installs the server's dependencies. Claude Code picks up the server from .mcp.json when you open the repository. Load the extension from extension/.output/chrome-mv3/ or extension/.output/firefox-mv2/manifest.json.
License
MIT. See LICENSE.