
Base Token Facts
io.github.yankiifrv0.2.1更新于 Oct 6, 2026
Base token checks for agents: simulated buy and sell, taxes, honeypots. Pay per call in USDC (x402).
概览
让助手在交易前核查 Base 代币:风险判定、蜜罐与税费模拟、钱包与 Gas 数据,按次以 USDC 付费。
- 功能
- 它提供一组只读工具查询 Base Token Facts 服务:base_token_verdict 返回风险等级、评分与代理、增发、暂停、黑名单、所有者、DEX 流动性等标记;base_token_sellcheck 在最深池上模拟小额买入并立即卖出,给出买入/卖出税费与往返损失;base_token_facts 返回 ERC20 元数据、所有者、代理与实现;base_wallet_snapshot、base_gas、base_tx_summary 和 basename_resolve 分别覆盖余额、费用、交易解码与 Basename 解析。base_facts_budget 显示本次会话已花费金额。每次付费调用通过 x402 从你控制的钱包以 USDC 结算,答案基于单一区块读取。
- 适用场景
- 当助手准备在 Base 上买入、卖出或转移代币,需要先获取链上事实并做蜜罐或税费检查时使用。它面向在 Base 上交易或转移资金的智能体工作流,而非通用区块链浏览。
- 运行要求
- 以 stdio 在本地运行,通常通过 npx base-facts-mcp,因此需要 Node.js。需要一个专用的 Base 钱包并存入少量 USDC,通过 X402_PRIVATE_KEY 或付款方文件提供(X402_PAYER_FILE,默认 ~/.base-facts-mcp/payer.json)。可选设置包括 MAX_PRICE_USD 与 SESSION_BUDGET_USD。需要访问 Base Token Facts API 的网络连接;未声明账号或登录。
安装
在 SourceWeft 中
- 打开 控制台中的 Base Token Facts,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
base-facts-mcp
An MCP server for AI agents that trade or move money on Base. Each tool calls Base Token Facts and pays for the call itself in USDC over x402, from a small wallet you control. Every answer is read at one block and says which.
Facts and heuristics, not financial advice. API docs and live revenue counter: https://base-facts.yankii.fr and https://base-facts.yankii.fr/stats
Setup
- Make a dedicated wallet and put a little USDC on it, on the Base network (1 USDC pays for 100 verdicts). No ETH is needed: the x402 facilitator pays the gas. Never use your main wallet.
- Add the server to your MCP client, for example
claude_desktop_config.json:
payer.json is { "privateKey": "0x..." }; X402_PRIVATE_KEY works too. Without either, the server
uses ~/.base-facts-mcp/payer.json when it exists.
Every setting also exists as an option, for hosts that pass only command and args (Preste):
--payer-file <path>, --max-price <usd>, --budget <usd>, --api <url>. See
integrations/preste/ for the Preste config and skill.
Spending safety
MAX_PRICE_USD(default 0.02): the client refuses to sign any single payment above it.SESSION_BUDGET_USD(default 1): once reached, the client stops signing until restarted.- Only USDC on Base (
eip155:8453) is ever signed. - A refused or failed call (4xx/5xx) cancels the settlement: you are not charged, and the tool says
charged: falsewith the reason (for example not enough USDC). - Paid calls run one at a time so the budget count stays exact.
Development
npm test drives the server over stdio like a real client, with empty wallets: no USDC is spent.
来源:README.md,提交 9ad460f
工具
0版本历史
1- v0.2.1最新Oct 6, 2026


