Skip to main content
Glama

MCP Browser Tabs Server

by kazuph

MCP 浏览器标签页

用于检索和管理 Chrome 浏览器标签页信息的模型上下文协议服务器。这使得 Claude Desktop(或任何 MCP 客户端)能够获取当前打开的 Chrome 标签页信息并进行控制。

快速入门(针对用户)

要将此工具与 Claude Desktop 一起使用,只需将以下内容添加到您的 Claude Desktop 配置( ~/Library/Application Support/Claude/claude_desktop_config.json )中:

{ "tools": { "browser-tabs": { "command": "npx", "args": ["-y", "@kazuph/mcp-browser-tabs"] } } }

这将在需要时自动下载并运行该工具的最新版本。

所需设置

  1. 启用 Chrome 的辅助功能:
    • 打开系统设置
    • 前往“隐私和安全”>“辅助功能”
    • 点击“+”按钮
    • 从“应用程序”文件夹添加 Google Chrome
    • 打开 Chrome 的开关

AppleScript 需要此辅助功能设置才能与 Chrome 标签进行交互。

对于开发人员

以下部分适用于那些想要开发或修改该工具的人。

先决条件

  • Node.js 18+
  • macOS(用于 AppleScript 操作)
  • 谷歌浏览器
  • Claude Desktop(从https://claude.ai/desktop安装)
  • tsx(通过npm install -g tsx

安装

git clone https://github.com/kazuph/mcp-browser-tabs.git cd mcp-browser-tabs npm install npm run build

可用工具

  • get_tabs :从 Google Chrome 浏览器中检索所有打开的标签页,返回其标题和网址。标签页按窗口分组,并以“窗口 1-1”(窗口 1,标签页 1)的格式显示。
  • close_tab :使用窗口和标签索引关闭 Google Chrome 中的特定标签。
    • 参数:
      • windowIndex:窗口编号(从1开始)
      • tabIndex:窗口内的标签编号(从1开始)
    • 注意:关闭多个标签页时,请从索引号最高的标签页开始操作,以避免索引偏移。关闭标签页后,请使用 get_tabs 确认更改。

笔记

  • 由于依赖于 AppleScript,此工具仅适用于 macOS。
  • 需要安装并运行 Google Chrome。
  • 必须授予 Chrome 可访问权限。

执照

MIT 许可证 - 详情请参阅许可证文件

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

通过 MCP 协议实现与 Google Chrome 标签页的交互,允许客户端使用 AppleScript 检索信息并控制 macOS 上的标签页。

  1. 快速入门(针对用户)
    1. 所需设置
  2. 对于开发人员
    1. 先决条件
    2. 安装
  3. 可用工具
    1. 笔记
      1. 执照

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Enables Google search and webpage content extraction via Chrome for macOS, allowing access to both unauthenticated and authenticated content, and integrates with Claude for secure and automated browsing tasks.
          Last updated -
          2
          45
          7
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          An 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 -
          7
          30
          14
          TypeScript
          MIT License
          • Linux
          • Apple
        • A
          security
          F
          license
          A
          quality
          Controls Chrome browser with debugging capabilities, allowing page automation, extension management, and userscript injection through the Model Context Protocol.
          Last updated -
          13
          13
          JavaScript
          • Linux
          • Apple
        • -
          security
          -
          license
          -
          quality
          A Model Context Protocol server that enables AI assistants to control Chrome browsers through the Chrome DevTools Protocol, allowing for navigation, clicking, typing, and extracting page information.
          Last updated -
          3
          TypeScript

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/kazuph/mcp-browser-tabs'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server