TabBridge
Enables MCP clients to operate Chrome tabs with semantic snapshots, policy approvals, and deterministic workflow replay.
README
TabBridge
TabBridge is a local-first browser execution layer for AI agents and deterministic workflows. It lets MCP clients, a CLI, or local REST callers operate the Chrome tabs you already have open, while a Chrome side panel shows every action and requires approval for sensitive operations.
TabBridge is not a chatbot and direct browser tools do not require an LLM. Optional model providers are used only for planning.
Architecture
Codex / Claude Code / custom MCP client / CLI
│
MCP / REST
│
daemon on 127.0.0.1:43120
sessions · policy · logs · workflows
│
authenticated local WebSocket
│
Chrome MV3 extension → current Chrome tab
MVP features
- Strict, versioned Zod protocol shared by every boundary.
- Semantic snapshots and temporary element references; stale references fail closed.
- REST API, WebSocket event stream, MCP stdio server, and CLI.
- MV3 side panel with status, action timeline, approvals, pause, and emergency stop.
- Safe/review/approval-required/blocked policy decisions and secret redaction.
- JSONL audit logs and YAML workflow recording, export, and deterministic replay.
- Optional Ollama, LM Studio, OpenAI-compatible, and Anthropic providers.
Five-minute quick start
Requirements: Node.js 22 or newer, pnpm, and Chrome.
For a tester-focused walkthrough using the bundled safe fixture, see SETUP.md.
pnpm install
pnpm build
pnpm --filter @tabbridge/daemon start
The daemon generates and persists the local extension token beneath ~/.tabbridge on first start. Retrieve it locally with:
pnpm --filter @tabbridge/cli start extension token
Open chrome://extensions, enable Developer mode, choose Load unpacked, and select apps/extension/dist. Open the TabBridge side panel, enter the token, and connect.
Check the connection and inspect the current page:
pnpm --filter @tabbridge/cli start doctor
pnpm --filter @tabbridge/cli start tabs
pnpm --filter @tabbridge/cli start snapshot
Add --json to CLI commands for machine-readable output.
MCP clients
Build first, then configure an MCP stdio server with:
command: node
args: [/absolute/path/to/TabBridge/packages/mcp-server/dist/index.js]
Do not assume a particular global client configuration path. See docs/mcp-setup.md for examples for Codex, Claude Code, and generic clients.
Ollama
Create ~/.tabbridge/config.yaml:
providers:
ollama:
type: ollama
baseUrl: http://127.0.0.1:11434
model: qwen3:8b
Model configuration is optional. Browser tools remain available without it. See docs/model-providers.md.
Workflows
Every successful session records semantic actions. Export and replay without an LLM:
tabbridge workflow export <session-id>
tabbridge workflow list
tabbridge workflow run download-daily-report
See docs/workflow-format.md and examples/workflows/download-daily-report.yaml.
Security model
The daemon binds to 127.0.0.1; the extension authenticates with a locally generated token; model secrets remain daemon-side. Sensitive actions wait for explicit approval and blocked actions never reach Chrome. Page content is always marked untrusted and cannot modify runtime policy. Logs and exports redact likely credentials.
See docs/security.md before using TabBridge with sensitive accounts.
Development
pnpm dev
pnpm format:check
pnpm lint
pnpm typecheck
pnpm test
pnpm build
The fixture site is local-only. Tests never target third-party production websites.
Current limitations
- Chrome only; native messaging is an extension point but the MVP transport is localhost WebSocket.
- One connected extension is the supported MVP topology.
- Semantic locators depend on the current page; snapshots must be refreshed after substantial DOM changes.
- The built-in model loop is intentionally minimal; external MCP harnesses are the primary interface.
- Chrome Web Store publication, remote daemon exposure, cookie export, CAPTCHA bypass, purchasing, and financial automation are out of scope.
Roadmap
- Harden native messaging and signed extension packaging.
- Add richer deterministic assertions and workflow migration tooling.
- Expand local fixture coverage and cross-platform installers.
- Add opt-in multi-profile routing without exposing browser credentials.
See CONTRIBUTING.md to contribute. TabBridge is licensed under Apache-2.0.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。