
AntFeed
io.github.Augustas11由 GitHub 帳號 Augustas11 發布v0.2.3更新於 Oct 28, 2026
Discover and transact on the AntSeed P2P AI network from any MCP-compatible agent.
概覽
此 MCP 伺服器讓助理查詢 AntFeed Explorer 上的 AntSeed P2P AI 網路賣家、定價、支付通道與網路統計,並可透過本機買家開啟付費工作階段。
- 可以做什麼
- 搜尋與列出提供者:依地址、顯示名稱或服務尋找賣家,並依評分或近期排序列出提供者及其定價摘要與收益
- 查詢定價與支付通道:取得某賣家某服務的即時定價,檢視鏈上工作階段/通道狀態
- 讀取網路與買家資料:網路統計、Base gas 價格、日活躍使用者趨勢,以及買家信任評分與工作階段歷史
- 開啟工作階段:透過本機 AntSeed 買家以初始 USDC 押金建立新工作階段;未偵測到買家時提供安裝診斷工具
- 適用情境
- 適合讓助理研究 AntSeed 賣家、比較即時定價、查看通道結算或網路活躍度,或直接在對話中發起付費工作階段。僅做唯讀查詢時不需要本機買家。
- 執行需求
- 以 stdio 方式在本機執行,通常透過 npx 啟動 npm 套件,需要 Node.js。選用環境變數:ANTFEED_EXPLORER_URL(預設公用 Explorer)、ANTSEED_BUYER_URL(本機買家 RPC)、ANTSEED_BUYER_STRICT、ANTSEED_MAX_DEPOSIT_USDC,以及逾時與日誌層級設定。需要能連線 Explorer;create_session 需要本機已執行 AntSeed 買家,且僅在啟動時偵測一次。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 AntFeed,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@antfeed/mcp
Discover and transact on the AntSeed P2P AI network from any MCP-compatible AI agent.
A Model Context Protocol server that turns the AntFeed Explorer into a one-line discovery front door for Claude Code, Cursor, Claude Desktop, and any other MCP host. List sellers, look up provider addresses, inspect on-chain payment channels, and (when a local AntSeed buyer is running) open new sessions — all from inside your agent.
Install
Add the following block to ~/.claude.json (Claude Code), claude_desktop_config.json (Claude Desktop), or your IDE's MCP config:
Restart your MCP host. The server boots over stdio and exposes the tools below.
Tools
Every tool returns both structuredContent (typed object matching its declared outputSchema) and content[0].text (the same payload serialized as JSON, for older MCP clients). Annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) are exposed so hosts like Claude Desktop / Cursor can render confirm dialogs before destructive calls.
Example: list top providers
Returns the top three sellers ranked by total USDC earned. To paginate, pass back the returned nextCursor as cursor on the next call.
Data sources
The MCP wraps the following AntFeed Explorer endpoints:
GET /api/providers— provider directory (displayName, services, per-service pricing, region, on-chain aggregates). Refreshed hourly fromnetwork.antseed.com. Backslist_providersandlookup.GET /api/sellers/{address}/services— one seller's service catalog + live pricing. Backsget_pricing.GET /api/channels— on-chain payment channel records. Backsget_session_status.GET /api/stats— network-wide aggregates (revenue, sessions, drift). Backsnetwork_stats.GET /api/gas— current Base gas price. Backsnetwork_stats.GET /api/buyers/{address}+GET /api/score/{address}— buyer detail, session history, top sellers, and trust-score breakdown. Backsget_buyer.GET /api/metrics/dau— daily active users, by UTC day. Backsdau_trendand the DAU field innetwork_stats.
A few small client-side adaptations remain:
- No server-side
/api/searchyet →lookupperforms client-side substring matching over the top page of/api/providers(matching against address, displayName, and service names). A future server-side endpoint will letlookupscale past 1000 providers — the MCP will switch over without any client changes. - No per-channel
/api/channels/{id}yet →get_session_statuspaginates/api/channels(sorted bylast_activity desc) and filters client-side. Channels deeper than 5000 records may returnSESSION_OUT_OF_RANGE.
Config
All values are optional. Resolution order: --config file.json → environment variable → built-in default.
You can also pass --config path/to/config.json with the same keys (camelCase: explorerUrl, buyerUrl, timeoutMs, logLevel, buyerStrict, maxDepositUsdc).
Buyer auto-detect
On startup the server probes GET <ANTSEED_BUYER_URL>/health with a 500 ms timeout:
- reachable → registers
create_session. - not reachable → registers
buyer_setup(a diagnostic tool with install instructions) instead, andcreate_sessionis omitted from the tool list.
Detection runs once at startup. Restart the MCP host after installing or starting a buyer.
Error model
Every tool returns either a successful structured payload or an MCP error result with isError: true and a structured body of shape:
Security model
Installing @antfeed/mcp is an explicit trust decision. Read this section before letting an autonomous agent call its tools.
- The agent caller is treated as untrusted. Every tool argument is validated by a strict zod schema before any network call.
peerId/providerPeerIdmust be0x+ 40 hex chars;sessionIdmust be0x+ 1–128 hex chars;serviceis bounded to a short identifier;initialDepositUsdcis hard-capped byANTSEED_MAX_DEPOSIT_USDC(default 10 USDC). A prompt-injected agent cannot move arbitrary amounts or craft URL/path-traversal payloads through this MCP. - The explorer is treated as semi-trusted. Every response from
ANTFEED_EXPLORER_URLis re-validated against a strict zod shape — addresses must be 40-hex, channel IDs must be hex, numeric fields must be finite. Responses are streamed with a 2 MB byte cap so a compromised or hijacked endpoint cannot exhaust memory. Plainhttp://is only permitted for loopback hosts; non-loopback URLs must behttps://. - The local buyer holds your signing key; this MCP never sees it. The MCP only ever POSTs
create_session(with bounded deposit, validated input) to the buyer URL — it does not read or store any key material. To prevent another local process from impersonating the buyer (e.g. on shared/multi-tenant dev boxes), setANTSEED_BUYER_STRICT=1and have your buyer respond to/healthwith{"service":"antseed-buyer"}. - The package itself ships minimally.
dist/, README, LICENSE — no postinstall scripts, no test files, no source maps that leak local paths.npm audit --omit=devreports zero production-tree vulnerabilities. Dependencies are pinned to~ranges; on publish, the package is signed with npm provenance so consumers can verify the tarball came from this repo (npm audit signatures). - Error messages are sanitized. File paths, IP addresses, and
UPPER_CASE_VAR=…patterns are scrubbed before any error reaches the agent or the MCP host's logs.
If you spot a security concern, please open a private GitHub Security Advisory — we triage these within 72 hours. Do not file a public issue for security-impacting bugs.
For sellers
If you already operate an AntSeed seller and you appear in the AntFeed Explorer directory, you are automatically discoverable through this MCP — no extra registration. New sellers join the directory by simply transacting on-chain (the explorer indexes Base mainnet AntSeed Channels events). Once /api/services and /api/sellers/{address}/services land, get_pricing and list_providers#servicesOffered will populate without any client changes.
Develop
Smoke test the MCP handshake with the official inspector:
Registry submission
The package is submitted to the public MCP server registries (registry.modelcontextprotocol.io, Smithery, PulseMCP, Glama, mcp.so) so any MCP-aware client can discover and install it without copy-pasting the snippet above. Source of truth for the official registry submission is server.json; the Smithery descriptor is smithery.yaml. The full submission checklist with current URLs lives in REGISTRIES.md. Registry repo: https://github.com/modelcontextprotocol/registry.
For per-tool usage observability on the Vercel dashboard, see USAGE.md.
Links
- AntFeed Explorer: https://antfeed.org
- AntFeed Explorer API docs (OpenAPI 3.0): https://antfeed.org/api/openapi.json
- AntSeed protocol contracts (Base mainnet): see the Explorer's About page
License
MIT
來源:antfeed-mcp/README.md,提交 5bcd827
工具
0版本歷史
1- v0.2.3最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。