
mcp-anything
io.github.Dror-Bengal由 GitHub 帳號 Dror-Bengal 發布v0.2.0更新於 Oct 27, 2026
Meta-MCP gateway: search, inspect and call any MCP server from the public registries.
概覽
元 MCP 閘道:讓助理搜尋公開 MCP 登錄檔、檢視伺服器資訊,並透過五個固定成本的元工具呼叫其工具。
- 可以做什麼
- 搜尋與同步 MCP 伺服器索引:在官方、PulseMCP、npm 與 Glama 等來源做關鍵字檢索,並可強制重新整理索引
- 檢視伺服器資訊:回傳傳輸方式、套件、所需環境變數與密鑰,以及政策判定等登錄檔中繼資料
- 即時連線下游伺服器並列出其實際工具與 JSON schema
- 在下游伺服器上執行單一工具,並重複使用連線池中的工作階段
- 透過命令列執行 sync、search 與 serve,在終端機完成同樣的探索流程
- 適用情境
- 適合只想設定一個 MCP 項目、而不想逐一設定大量伺服器的情境,也適合讓助理按需尋找並使用某項能力,同時避免把成千上萬的工具 schema 塞進上下文。自架或私有登錄檔環境同樣適用。
- 執行需求
- 以 stdio 本機程序方式透過 npx 執行,需要 Node.js 20 或更新版本。首次使用需同步登錄檔索引,會經由網路從公開目錄下載資料。選用設定檔位於 ~/.config/mcp-anything/config.json,也可用命令列參數或 MCP_ANYTHING_CONFIG 指定路徑,用來設定政策、索引來源與各伺服器憑證。伺服器本身未宣告需要驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 mcp-anything,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-anything
[CI] [npm] [License: MIT] [Node >= 20]
One MCP server that can discover and call (almost) any MCP server in the world.
[mcp-anything demo: searching the MCP ecosystem from the terminal]
mcp-anything is a meta-MCP server: instead of configuring dozens of MCP servers in your host (Claude Desktop, Claude Code, Cursor, ...), you configure exactly one. It indexes the official MCP registry locally and exposes five small meta-tools that let the model search for servers, inspect them, and call their tools on the fly — without ever loading thousands of tool schemas into the context window.
Why
- Discovery: thousands of MCP servers exist; your host only knows the ones you hand-configured.
- Context: loading many servers burns your context window. Meta-tools keep the cost constant — the model searches for capabilities in two phases (search → inspect → call), the same pattern Anthropic's Tool Search uses.
- One config: a single entry in your MCP client config instead of one per server.
Quickstart
Claude Code
Claude Desktop / other hosts
Then just ask your model things like "find an MCP server that can query Postgres and list its tools" — it will use the meta-tools by itself.
HTTP mode & hosted discovery
A public instance with execution enabled would be an open proxy — never host a full instance publicly. The Dockerfile defaults to discovery-only for exactly this reason. A hosted discovery instance lets any MCP client search the ecosystem; actually connecting and calling tools is what the local install is for.
CLI
The meta-tools
Security model
Connecting an LLM to arbitrary servers from a public registry is dangerous by default. mcp-anything ships with conservative defaults and makes every relaxation explicit:
- Remote servers (streamable-http / sse): allowed, but private/loopback/link-local addresses (including cloud metadata endpoints like
169.254.169.254) and plainhttp:are blocked — an SSRF guard for registry entries that point into your network. Opt out withremote.allowPrivateNetwork(useful for local development only). - Stdio servers (spawning
npx/uvxprocesses): disabled by default. Running a package from a public registry is arbitrary code execution on your machine. Enable it only with an explicit per-package allowlist. - Secrets: API keys are never indexed or exposed to the model. You map them per server in your config; they are injected at connect time (headers for remote, env for stdio).
- Untrusted output: results and tool descriptions from downstream servers are labeled as third-party data so the model treats them as data, not instructions. This reduces prompt-injection risk; it does not eliminate it — see SECURITY.md.
- Limits: connect/call timeouts, response-size truncation, bounded session pool.
Configuration
~/.config/mcp-anything/config.json (or --config <path>, or MCP_ANYTHING_CONFIG):
Every field is optional; the defaults above (minus the example headers/env) are what you get with no config at all. registryUrl accepts any registry implementing the official REST API — including a private/self-hosted one.
Index sources — going wide
sources controls how much of the ecosystem gets indexed:
Entries appearing in several catalogs are deduplicated by normalized repository URL and package identifier; the most-trusted source wins the identity, metadata is backfilled from the others, and stars/downloads accumulate. Ranking then combines BM25 relevance with a log-scaled popularity boost (and a bonus for official-registry entries), so search_mcp_servers surfaces the maintained implementation of a capability rather than the hundredth abandoned clone. qualityFilter (default on) drops entries with no way to connect and no usable description — with wide sources, more is only better if the junk stays out of the top-5. A failed source degrades gracefully: the sync keeps whatever the other sources returned and reports the failure.
Design notes
- Lexical search, not embeddings. Fully local, zero API cost, no index build step — and for tool discovery, keyword search with fuzzy matching performs comparably in practice (Anthropic's Tool Search made the same call with BM25/regex).
- Sessions, not stateless calls. MCP is session-oriented (initialize handshake, capability negotiation). Downstream connections are pooled and reused across calls with LRU eviction.
- Graceful degradation. If the registry is unreachable, the last-synced cache keeps working.
Prior art & positioning
This space is active: MetaMCP and other gateways aggregate servers you configure; Composio's Rube routes to its own curated catalog; hosts are growing native tool-search. mcp-anything's niche is the open combination: the public registry as the catalog, a local-first single binary, and an explicit security policy — no cloud account, no curation lock-in, self-hostable against a private registry.
Roadmap
- Live health checks and result-quality signals in ranking
- Per-tool (not just per-server) search by indexing
tools/listof popular servers - OAuth flow passthrough for remote servers that require it
- Container/Wasm sandboxing for stdio servers as an alternative to allowlisting
- Multiple registries with federation and dedupe
- Optional streamable-http serving mode (for shared/team deployment)
Development
See CONTRIBUTING.md. Licensed MIT.
來源:README.md,提交 ff08efe
工具
0版本歷史
1- v0.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分