Skip to content
MCP server

Tab Hammer

Lets AI agents list, group, move, focus, open and close browser tabs

Runs locally

Tab Hammer is an MCP server for browser automation. It runs locally on your machine and is started by your AI client.

Platforms
Chrome extension, macOS, Windows
Runs
Locally
Version
0.1.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add tab-hammer -- npx -y tab-hammer-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "tab-hammer": {
      "command": "npx",
      "args": [
        "-y",
        "tab-hammer-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "tab-hammer": {
      "command": "npx",
      "args": [
        "-y",
        "tab-hammer-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "tab-hammer": {
      "command": "npx",
      "args": [
        "-y",
        "tab-hammer-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "tab-hammer": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "tab-hammer-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add tab-hammer -- npx -y tab-hammer-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.tab-hammer]
command = "npx"
args = ["-y", "tab-hammer-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "tab-hammer": {
      "command": "npx",
      "args": [
        "-y",
        "tab-hammer-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "tab-hammer": {
          "command": "npx",
          "args": [
            "-y",
            "tab-hammer-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user tab-hammer npx -- -y tab-hammer-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "tab-hammer": {
          "command": "npx",
          "args": [
            "-y",
            "tab-hammer-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "tab-hammer": {
          "command": "npx",
          "args": [
            "-y",
            "tab-hammer-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "tab-hammer": {
          "command": "npx",
          "args": [
            "-y",
            "tab-hammer-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "tab-hammer": {
          "command": "npx",
          "args": [
            "-y",
            "tab-hammer-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "tab-hammer": {
          "command": "npx",
          "args": [
            "-y",
            "tab-hammer-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "tab-hammer": {
          "command": "npx",
          "args": [
            "-y",
            "tab-hammer-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "tab-hammer": {
          "command": "npx",
          "args": [
            "-y",
            "tab-hammer-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Tab Hammer

Tab Hammer's server depends on the Tab Hammer browser extension: the extension does the tab work, and this package is the bridge that lets an agent reach it. A one-time install command registers a native messaging host with each Chromium browser it finds (Chrome and its Beta, Dev and Canary builds, Chromium, Brave, Edge and Arc) and adds the server to the agents on the machine, including Claude Code, Claude Desktop, Codex, Cursor, VS Code, Windsurf and Devin Desktop.

The browser launches the host, which relays messages between the extension and the server over a local socket (a per-user named pipe on Windows). Both are copied into a folder in your home directory and run with the Node version you installed with, which must be 22 or newer.

A built-in doctor command checks each browser's registration, whether the extension is connected and each agent's config, then says how to fix what is wrong. An uninstall command undoes what install did.

What it does

One-command install
The install command registers the host with every Chromium browser and agent it detects.
Doctor command
Checks browser registration, extension connection and agent configs and suggests fixes.
Clean uninstall
Removes exactly what the install step added.
Target filters
Flags let you limit install or uninstall to chosen browsers or agents.
Local-only link
The host and server talk over a local socket rather than a remote service.

Good for

  • Ask an agent to group related tabs before a research session
  • Have an agent close tabs left over from a finished task
  • Open a set of pages and focus the right one on request
  • Tidy a crowded window by moving tabs into groups

Tab Hammer FAQ

Which browsers does Tab Hammer support?

The installer registers with Chrome (including Beta, Dev and Canary), Chromium, Brave, Edge and Arc.

What Node version is needed?

Node 22 or newer.

Do I need the Tab Hammer extension?

Yes. The server works through the Tab Hammer extension, which must be installed and connected.

How do I update Tab Hammer?

Install copies the server, so update with npx tab-hammer-mcp@latest install.

How do I add Tab Hammer to Claude Code?

Run this command in your terminal: claude mcp add tab-hammer -- npx -y tab-hammer-mcp

What are the best alternatives to Tab Hammer?

The closest alternatives to Tab Hammer are Tabhand, browsentic, Browser Core, NexusBrowser and Agent360 Browser MCP.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers