Nabo MCP Lite

Nabo MCP Lite

A local MCP browser control bridge that enables control of Chrome browser via 14 tools for tabs, navigation, page reading, and interaction.

Category
Visit Server

README

Nabo MCP Lite

一个精简的本地 MCP 浏览器控制桥接项目。它保留 Nanobrowser 操作 Chrome 网页所需的核心能力,移除了模型、Agent 编排、语音、界面和遥测等非必要模块。

架构

MCP Client(Claude / Codex / 其他客户端)
                 │ stdio MCP
                 ▼
server/single-session-server.cjs
                 │ WebSocket 127.0.0.1:9876
                 ▼
Nabo MCP Lite Chrome Extension
                 │ Chrome API / CDP
                 ▼
Chrome 网页标签页

功能

提供 14 个 MCP 工具:

  • 标签页:list_tabsswitch_tabopen_tabclose_tab
  • 导航:navigate
  • 页面读取:get_domget_page_textscreenshot
  • 页面操作:click_elementinput_textselect_option
  • 键盘和滚动:send_keysscroll
  • 脚本执行:execute_script

get_page_text 最多返回 50,000 字符,并提供 truncatedoriginalLength,避免大型网页占满 Agent 上下文。

环境要求

  • Node.js 18+
  • pnpm
  • Google Chrome
  • 支持 stdio MCP 的客户端

安装与构建

git clone https://github.com/kaleburannengsha-hue/nabo-mcp-lite.git
cd nabo-mcp-lite
pnpm install
pnpm test
pnpm type-check
pnpm build

构建产物位于 dist/

加载 Chrome 扩展

  1. 打开 chrome://extensions
  2. 开启“开发者模式”。
  3. 点击“加载已解压的扩展程序”。
  4. 选择项目的 dist 目录。
  5. 每次重新构建后,点击扩展卡片上的刷新按钮。

MCP 配置

Claude Desktop 示例见:

config/claude-desktop.example.json

核心配置:

{
  "mcpServers": {
    "nanobrowser": {
      "command": "node",
      "args": [
        "D:\\path\\to\\nabo-mcp-lite\\server\\single-session-server.cjs"
      ]
    }
  }
}

Claude Code:

claude mcp add nanobrowser -- node D:\path\to\nabo-mcp-lite\server\single-session-server.cjs

其他客户端可参考 config/mcp-stdio.example.json

测试真实连接

确保 Chrome 已加载并刷新扩展,且没有其他进程占用 9876:

$env:IDLE_WAIT_MS = "2000"
node scripts/runtime-test.cjs

成功输出应包含:

FIRST_CALL_OK
DOM_OK
PAGE_TEXT_OK
SECOND_CALL_OK
RUNTIME_TEST_OK

使用限制

  • 当前为单 Session 服务,同一时间只能有一个服务端监听 9876。
  • 多个 MCP 客户端同时启动服务端会产生端口冲突。
  • chrome:// 内部页面受 Chrome 安全策略限制。
  • execute_script 可以执行网页脚本,只应连接可信的本地 MCP 客户端。

文档

来源与许可证

浏览器控制层基于 Nanobrowser 精简和修改。

项目按 Apache License 2.0 发布,详见 LICENSENOTICE

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured