
Crabeye Mcp Bridge
io.github.crabeye-ai由 GitHub 账号 crabeye-ai 发布v1.3.0更新于 Oct 24, 2026
One MCP connection for all your tools — with discovery, namespacing, and execution policies.
概览
本地 MCP 桥接器,把所有上游 MCP 服务器整合到单一 STDIO 连接,只向助手暴露 search_tools 和 run_tool 两个工具。
- 可以做什么
- 通过 search_tools 和 run_tool 两个元工具,跨所有已配置的上游 MCP 服务器搜索并执行工具,无需把全部工具定义塞进上下文
- 发现、命名空间化并索引 STDIO、HTTP 与 SSE 上游的工具,支持模糊搜索按需查找
- 按工具、按服务器或全局设置执行策略(always、prompt、never)并限制调用频率
- 用加密凭据库保存密钥,主密钥由操作系统钥匙串保护,支持凭据模板,并为 HTTP 上游提供一次性 OAuth 流程
- 提供命令行工具扫描客户端配置并注入桥接条目、撤销改动,并通过管理进程让多个桥接共享每个 STDIO 上游的同一子进程
- 适用场景
- 当你配置了多个 MCP 服务器、其工具定义挤占上下文窗口时适用;也适合需要集中控制哪些工具可直接执行、哪些需审批、哪些被禁止的场景,以及希望把令牌集中存放在加密凭据库而非硬编码在客户端配置中。
- 运行要求
- 以 Node.js 本地进程通过 npx 运行。需要至少一个上游 MCP 服务器:可运行 init 命令导入现有客户端配置,或手动编辑配置文件加入 upstreamMcpServers 段。仅支持桌面 MCP 客户端,不支持网页执行。
安装
在 SourceWeft 中
- 打开 控制台中的 Crabeye Mcp Bridge,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Crabeye MCP Bridge
One MCP connection for all your tools — with discovery, namespacing, and execution policies.
Every MCP server you add to your AI assistant means another connection, another set of tool definitions injected into the context window, and no way to search or control them centrally. Wire up ten servers with a hundred tools each and your assistant is burning tokens on a thousand tool schemas before the conversation even starts — most of which it will never call.
crabeye-mcp-bridge consolidates all your upstream MCP servers behind a single STDIO interface and exposes exactly two tools to the assistant: search_tools and run_tool. Tools from every server are discovered, namespaced, and indexed as soon as your assistant connects, but none of them touch the context window until the assistant actually searches for them. You can have a thousand tools ready to go without bloating the context, with fuzzy search to find them and per-tool execution policies to control what runs freely, what needs approval, and what is blocked.
Quick start
The fastest way to get started is with init, which discovers your MCP client configs and sets up the bridge automatically:
This scans for config files from Claude Desktop, Cursor, VS Code Copilot, Windsurf, Zed, Cline, Roo Code, opencode, and Continue.dev, lets you pick which ones to use, and optionally injects the bridge entry. After that, just run npx @crabeye-ai/crabeye-mcp-bridge — no --config flag needed.
opencode and Continue.dev are surfaced as detect-only: their config schemas don't fit the rename-and-inject pipeline, so init prints a manual snippet for them instead of rewriting the file.
To undo, run npx @crabeye-ai/crabeye-mcp-bridge restore.
Manual setup
If you prefer to set things up manually, say your MCP client config looks like this today:
First, store your secrets in the encrypted credential store:
Then rename mcpServers to upstreamMcpServers, add the bridge, and replace hardcoded tokens with ${credential:key} references:
That's it. Your AI assistant now has access to all tools from all configured servers through a single connection. The bridge automatically excludes itself from mcpServers to avoid recursion, so pointing --config at the same file is safe.
The bridge also reads upstreamServers (shorthand), servers (VS Code Copilot), and context_servers (Zed) as input keys. See docs/configuration.md for the full priority order and self-exclusion rules.
Alternatively, you can add the bridge alongside your existing mcpServers entries without renaming anything — the bridge will pick up the other servers from mcpServers automatically (excluding itself). Disable the other MCP servers in your client so the assistant uses the bridge as the single entry point.
Install as a Claude Code plugin
Register the bridge's repo as a Claude Code marketplace, then install the plugin:
Claude Code auto-registers the bridge as an MCP server. If you haven't configured upstreams yet, the bridge's startup error will surface in Claude Code's MCP server log — run npx @crabeye-ai/crabeye-mcp-bridge init in a terminal to discover and import existing MCP server configs from your other clients.
Features
- Discovery + search. Two meta-tools (
search_tools,run_tool) instead of N×M tool definitions in context. See docs/how-it-works.md. - Configuration. STDIO, HTTP, and SSE upstreams; categories; multi-source config keys. See docs/configuration.md.
- Authentication. Encrypted credential store, OS-keychain-backed master key,
${credential:key}templates, and a one-shotauth <server>OAuth flow for HTTP upstreams. See docs/auth.md. - Policies. Per-tool / per-server / global tool policies (
always/prompt/never), rate limiting. See docs/policies.md. - STDIO manager. STDIO, HTTP and SSE upstreams routed through a per-user manager process so multiple bridges share a single subprocess or connection per upstream. See docs/stdio-manager.md.
- CLI.
init,restore,credential,daemon,--validate. See docs/cli.md.
License
MIT
来源:README.md,提交 b4268c2
工具
0版本历史
1- v1.3.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分