@antseedstats/mcp-server

中文文档
0.5.2发布于 2026/10/22MITTypeScriptES Module近 30 天下载 1798

MCP server for AntSeedStats: the AntSeed AI-inference marketplace on Base (sellers, models, prices, epochs, $ANTS) for AI clients

原始使用文档
文档目录13 节
  1. Quick start
  2. Hosted (no install)
  3. Local (stdio)
  4. "Server disconnected" in a desktop app
  5. Self-hosted HTTP
  6. Tools (40)
  7. Paid tool: antseedstats_ask
  8. Resources (6)
  9. Prompts (3)
  10. Configuration
  11. Development
  12. Links
  13. License

@antseedstats/mcp-server

MIT License

MCP server for AntSeedStats, the independent stats layer for AntSeed, a peer-to-peer AI-inference marketplace on Base. One tool per public API endpoint, generated from the same catalogue that drives antseedstats.com/developers and the OpenAPI file, so the tools cannot lag the API.

Ask your AI client things like "Where can I buy kimi-k3 on AntSeed, cheapest trusted seller first?", "How much did seller 0x… settle per day last week?" or "What is the projected $ANTS per USD this epoch?".

Quick start

Hosted (no install)

The server runs at https://antseedstats.com/mcp (Streamable HTTP, stateless, no auth).

# Claude Code
claude mcp add --transport http antseedstats https://antseedstats.com/mcp

Claude Desktop has no remote URL field yet; bridge it with mcp-remote in claude_desktop_config.json:

{
  "mcpServers": {
    "antseedstats": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://antseedstats.com/mcp"]
    }
  }
}

Local (stdio)

{
  "mcpServers": {
    "antseedstats": {
      "command": "npx",
      "args": ["-y", "@antseedstats/mcp-server"]
    }
  }
}

The same block works in Cursor (.cursor/mcp.json). VS Code wraps it as "mcp": { "servers": { … } } (.vscode/mcp.json). The local server calls the public API at https://antseedstats.com.

"Server disconnected" in a desktop app

Desktop apps start the command without your shell's PATH. With node from nvm, Volta, asdf or Homebrew a bare npx is not found and the client reports "Server disconnected". Use the full path (which npx in a terminal) and pass its directory as PATH:

{
  "mcpServers": {
    "antseedstats": {
      "command": "/full/path/to/npx",
      "args": ["-y", "mcp-remote", "https://antseedstats.com/mcp"],
      "env": { "PATH": "/full/path/to/node/bin:/usr/local/bin:/usr/bin:/bin" }
    }
  }
}

Self-hosted HTTP

npx @antseedstats/mcp-server --http            # 127.0.0.1:3200/mcp and /health
PORT=4000 ANTSEEDSTATS_API_URL=http://127.0.0.1:3199 npx @antseedstats/mcp-server --http

Tools (40)

ToolWhat it answers
antseedstats_network_summaryLifetime totals, rolling 24h/7d/30d windows, current epoch, 7d spend by modality
antseedstats_network_dailyPer UTC day: settled, users, tokens, free usage, images, video
antseedstats_leadersLast 24h leaders (seller, model by sales, by tokens, free), wash left out
antseedstats_sellersEvery seller with lifetime and 7-day figures, trust score, wash flag
antseedstats_sellers_detailOne seller: totals, trust parts, verification, stake
antseedstats_sellers_dailyOne seller per UTC day (the cross-check against its own ledger)
antseedstats_sellers_modelsWhat a seller advertises (signed prices) and what it sold
antseedstats_modelsModel catalogue: sellers, min and max prices, usage
antseedstats_models_detailWhere to buy one model, trusted first, with intent filters (trusted, verified, organic, live, price caps)
antseedstats_pricesEvery listing with the OpenRouter list price and the saving, with the same intent filters
antseedstats_epochsEvery epoch: emission, seller and buyer points, burn
antseedstats_epochs_detailOne epoch; live budgets, usage and projected burn when current
antseedstats_ants_supply$ANTS minted, emitted, burned, staked (canonical token address)
antseedstats_searchNames to ids: a seller name, a model in any spelling, a lab, a 0x address or hash
antseedstats_estimateCost of a monthly token mix on AntSeed vs the list price: cheapest, trusted pick, saving
antseedstats_glossaryEvery definition behind the site's info dots, by page or by search
antseedstats_changelogWhat changed on the site and the API, newest first
antseedstats_usageWho reads the API: calls per UTC day and client family, most called endpoints
antseedstats_distributionWho the volume concentrates on: top buyers and sellers, HHI, Gini, Lorenz curve
antseedstats_registryAntSeed's on-chain wash registry (the chain's list; our clusters are only ever a flag)
antseedstats_buyersEvery buyer with lifetime spend, tokens, requests, plus the escrow totals
antseedstats_buyers_detailOne buyer: spend, the sellers it paid, the models it bought, free-tier usage
antseedstats_buyers_dailyOne buyer's spend per UTC day
antseedstats_buyers_rewardsOne buyer's $ANTS: earned, claimed, staked
antseedstats_labsThe labs behind the models, with model counts
antseedstats_labs_detailOne lab: profile, links and its models on AntSeed with cheapest prices
antseedstats_staking_poolsEvery provider pool: stake, power, usage points, reward, APY estimate
antseedstats_staking_positionsEvery lANTS position: owner, pool, principal, power, lock, state
antseedstats_rewards_currentThis epoch's budgets and the top earners with projected $ANTS
antseedstats_rewards_poolsThe pools bucket cut, locked rewards, USDC stake and claims
antseedstats_referralsAIP-6 referrers ranked: new buyers and ANTS (live: false, empty until the contracts deploy)
antseedstats_referrals_detailOne wallet's referral rank, buyers, ANTS, invites (dormant, as above)
antseedstats_referrals_buildersAIP-6 builders: apps credited for usage (dormant, as above)
antseedstats_diemThe DIEM pool: stake, USDC paid, APY estimate, top stakers, staked series
antseedstats_ants_holders$ANTS holders by balance, with labels for protocol contracts
antseedstats_channelsPayment channel lifecycle counts and the most recently active channels
antseedstats_channels_detailOne channel: pair, settled, per-model split, last settlements
antseedstats_requestsThe live requests feed (per-event usage reports) and the rolling 24h band
antseedstats_transactionsLatest on-chain activity across every AntSeed contract, by kind
antseedstats_statusIndexer head, lag and subsystems

Every result starts with a provenance line (the page on antseedstats.com, the Base block it is as of, and whether each figure is a chain fact, a seller's own announcement or antseedstats' judgement), then the API's data as JSON, then a one-line attribution. Field names and units are the API's: antseedstats.com/developers.

Lists return 20 rows by default and at most 100 (limit); the REST API goes to 1000.

Every tool declares an outputSchema (the API's own response schema) and returns structuredContent ({ data, meta }) next to the text, so clients that read typed results need no parsing.

Paid tool: antseedstats_ask

One question in plain language, one answer with sources, computed by the site from its own data. It costs $0.03 in USDC on Base per answer, paid with x402: the server signs a USDC authorisation for the exact price with a key from your environment and the facilitator settles it (no ETH needed). You pay only for a successful answer. Terms: antseedstats.com/developers#ask.

{
  "mcpServers": {
    "antseedstats": {
      "command": "npx",
      "args": ["-y", "@antseedstats/mcp-server"],
      "env": { "X402_PRIVATE_KEY": "0x… (a dedicated Base wallet with a little USDC)" }
    }
  }
}

The key is read only in local (stdio) mode and never leaves the process. The hosted server at antseedstats.com/mcp never pays; there the tool explains how to enable it. All the other tools stay free.

Resources (6)

The site's backstage, readable from inside the client: antseedstats://llms.txt (the front door), antseedstats://llms-full.txt (everything in one file), antseedstats://glossary, antseedstats://faq, antseedstats://openapi.json, antseedstats://changelog. One GET each, cached five minutes.

Prompts (3)

Recipes that chain the tools in the right order: compare_sellers_for_model (model, token mix), audit_seller (address or name), weekly_network_report.

Configuration

VariableDefaultMeaning
ANTSEEDSTATS_API_URLhttps://antseedstats.comREST API origin (--api <url> also works)
PORT3200HTTP mode port (--port <n> also works); binds 127.0.0.1
TRUST_PROXYunsetHTTP mode behind nginx: trust X-Real-IP / X-Forwarded-For and forward them to the API
MCP_RATE_LIMIT_PER_MIN60HTTP mode budget per client IP (the API has its own 60/min per IP)

Development

npm install
npm run sync-catalog   # regenerate src/generated/catalog.ts from ../antseed-stats (ANTSEEDSTATS_REPO to point elsewhere)
npm run check-drift    # compare the generated catalogue with the live openapi.json
npm test               # unit tests, plus live stdio and HTTP tests when MCP_TEST_API (default http://127.0.0.1:3199) answers
npm run build

License

The code is MIT. The data the tools return is published by AntSeedStats under CC BY 4.0: free to use with attribution to AntSeedStats (antseedstats.com).

版本与发布记录

@antseedstats/mcp-server 共发布 10 个版本,首次发布于 2026/10/08;过去 12 个月发布了 10 个版本。

版本发布日期距今
0.5.2latest2026/10/2217 天前
0.5.12026/10/1029 天前
0.5.02026/10/1029 天前
0.4.02026/10/1029 天前
0.3.02026/10/0930 天前
0.2.02026/10/0930 天前

关于 @antseedstats/mcp-server 的常见问题

@antseedstats/mcp-server 是什么?

MCP server for AntSeedStats: the AntSeed AI-inference marketplace on Base (sellers, models, prices, epochs, $ANTS) for AI clients

如何安装 @antseedstats/mcp-server?

在项目目录运行 npm install @antseedstats/mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 antseedstats-mcp,可以用 npx antseedstats-mcp 直接运行。

@antseedstats/mcp-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@antseedstats/mcp-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@antseedstats/mcp-server 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@antseedstats/mcp-server 可以商用吗?

@antseedstats/mcp-server 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@antseedstats/mcp-server 的下载量有多少?

根据 npm 官方下载统计,@antseedstats/mcp-server 在 2026/10/06 – 2026/11/04 这 30 天内被下载 1,798 次,日均约 60 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@antseedstats/mcp-server 还在维护吗?

最新版本 0.5.2 发布于 2026/10/22(17 天前);至今共发布 10 个版本,其中过去 12 个月发布了 10 个;首次发布于 2026/10/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。