
Mcp Gateway
io.github.rupinder2由 GitHub 帳號 rupinder2 發布v0.1.1更新於 Oct 24, 2026
Aggregates tools from multiple MCP servers with unified BM25/regex search and deferred loading.
概覽
一個本機 MCP 閘道,連接多個下游 MCP 伺服器,彙整其工具並提供統一的搜尋與呼叫入口。
- 可以做什麼
- 以 BM25 自然語言排序或正規表示式,在所有已註冊下游伺服器的工具中搜尋
- 探索並建立某個已註冊下游伺服器所提供工具的索引
- 依命名空間(server_name__tool_name)呼叫下游工具並傳入參數,可覆寫其驗證標頭
- 透過 JSON 設定檔註冊下游伺服器,支援 stdio 或 HTTP 傳輸
- 將工具定義快取在記憶體或 Redis,降低上下文用量
- 適用情境
- 當你執行多個 MCP 伺服器、希望只接一個入口而不必逐一加入時適用;也適合工具數量龐大、會佔用助理上下文視窗的情況。需要延後載入工具並在多個伺服器之上建立統一可搜尋索引時特別合適。
- 執行需求
- 以本機 Python 套件執行(pip install mcp-orchestrator),預設為 stdio,也可透過 ORCHESTRATOR_TRANSPORT 與 ORCHESTRATOR_PORT 使用 HTTP。需要 server_config.json 列出下游伺服器,路徑由 SERVER_CONFIG_PATH 指定。STORAGE_BACKEND 選擇 memory 或 redis,僅 redis 後端需要 REDIS_URL。下游伺服器可能各自需要權杖或啟動指令。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Gateway,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
MCP Orchestrator
[PyPI Version] [Python Version] [License: MIT] [Tests] [Contributions Welcome]
A central hub that connects to multiple downstream MCP servers, aggregates their tools, and provides unified access with powerful tool search capabilities.
Built around deferred tool loading — search across all your servers without blowing Claude's context window.
Features
- Config-based Server Registration: Add downstream MCP servers via JSON config file
- Tool Namespacing: Automatic
server_name__tool_nameformat - Tool Search: Unified BM25/regex search with deferred loading support
- Flexible Authentication: Static saved headers or token forwarding
- Multiple Transports: stdio or HTTP
- Tool Definition Caching: Cached definitions, raw result passthrough
- Storage Backends: In-memory (development) or Redis (production)
Quick Start
Installation
Running the MCP Server
HTTP Transport:
This starts the server on http://localhost:8080/mcp with CORS enabled.
Configuring Servers
Add downstream MCP servers in server_config.json:
Searching for Tools
The orchestrator provides unified tool search (BM25 by default, regex optional):
Architecture
Configuration
Environment Variables
Claude Desktop Integration
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
MCP Tools
tool_search
Search for tools using BM25 relevance ranking or regex pattern matching.
discover_tools
Discover tools from a registered downstream server.
call_remote_tool
Call a tool directly on a downstream MCP server.
Tool Search Results
The search tools return results in the format expected by Claude's tool search system:
Testing
Run the test suite:
Run with coverage:
Project Structure
License
MIT License
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
來源:README.md,提交 b44912b
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分