X402 Money Farm

io.github.Darkchild88由 GitHub 账号 Darkchild88 发布v1.0.1更新于 Oct 24, 2026

Pay-per-call web extraction: clean text, metadata, links, JSON-LD, change detection. USDC on Base.

已验证STDIO仅桌面网页搜索与抓取金融

概览

AI 生成的概览

本地 MCP 服务器,为助手提供按次付费的网页抽取工具——正文、元数据、链接、JSON-LD 与变更指纹,以 Base 上的 USDC 结算。

可以做什么
  • 抽取网页正文,输出纯文本或 Markdown,去除导航与广告
  • 读取页面元数据:标题、描述、canonical、OpenGraph、Twitter 卡片、图标与日期
  • 列出页面全部链接,补全为绝对地址并去重,区分内链外链并统计各域名数量
  • 解析 JSON-LD 区块并按 schema.org 类型建立索引
  • 生成页面指纹并给出已变更/未变更判定,用于变更监测
  • 查看免费目录,含实时价格、钱包状态与本次会话花费
适用场景
当助手需要从指定网址获取干净正文、结构化元数据或链接清单,而你不想为抓取 API 注册账号时适用。也适合无需账号或订阅地监测页面变化。
运行要求
通过 npx 以 stdio 在本地运行(需 Node.js)。付费工具需要 X402_PRIVATE_KEY,即一个持有 USDC 的 Base 钱包私钥;手续费由 facilitator 支付,无需 ETH。X402_MAX_USD 设定花费上限(默认 1.00),FARM_BASE_URL 指定服务地址,X402_NETWORK 默认为 Base 主网。需要网络访问。
安装前请注意
服务器在磁盘配置文件中保存钱包私钥,并用它签署真实的 USDC 付款,应使用小额专用钱包而非主钱包。每次付费调用都会花钱;X402_MAX_USD 上限可限制循环调用的代理,但应主动设定。调用会把目标网址发送给远程抽取服务。失败的调用不计费,每个响应都含付款信息块便于对账。

安装

在 SourceWeft 中

  1. 打开 控制台中的 X402 Money Farm,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

x402 Money Farm — MCP server

Paid web-extraction tools for agents. No account, no API key, no subscription, no signup form: each call settles a fraction of a cent in USDC on Base, per request, and the response arrives only after settlement.

ToolWhat it returnsPrice
farm_catalogEverything below, with live prices and wallet statusfree
farm_clean_textMain article text without nav/ads/boilerplate, text or Markdown$0.02
farm_metadataTitle, description, canonical, OpenGraph, Twitter, icons, dates$0.01
farm_linksAll links, absolutised, deduplicated, internal/external, per-host counts$0.01
farm_jsonldJSON-LD blocks parsed and indexed by schema.org type$0.01
farm_fingerprintNoise-normalised page fingerprint plus a changed/unchanged verdict$0.015

Add it to a client

Claude Desktop — claude_desktop_config.json:

json
{  "mcpServers": {    "x402-money-farm": {      "command": "npx",      "args": ["-y", "x402-money-farm-mcp"],      "env": {        "X402_PRIVATE_KEY": "0xyour_funded_base_wallet_key",        "X402_MAX_USD": "1.00"      }    }  }}

Claude Code:

bash
claude mcp add x402-money-farm \  --env X402_PRIVATE_KEY=0x... \  --env X402_MAX_USD=1.00 \  -- npx -y x402-money-farm-mcp

Any other MCP client works the same way — it is a plain stdio server.

Try it before paying anything

bash
npx -y x402-money-farm-mcp

Then have the agent call farm_catalog. It reports the live prices, whether a wallet is configured and how much has been spent this session. Nothing is billed, and no wallet is needed to see it. If the prices do not suit you, you learned that for free.

Configuration

The server pays from your wallet, one call at a time. Gas is paid by the facilitator, so the wallet needs USDC on Base but no ETH.

VariableDefaultMeaning
X402_PRIVATE_KEY—Your funded Base wallet, 0x + 64 hex characters. Without it the paid tools decline with an explanation and only farm_catalog works.
X402_MAX_USD1.00Hard spend cap for the process. Once reached, every further paid call is refused.
FARM_BASE_URLhttps://x402-money-farm.fly.devThe service to buy from.
X402_NETWORKeip155:8453Base mainnet.

Fund a wallet for this purpose with a few dollars — not your main one. The key sits in a config file on disk; treat it accordingly. The spend cap exists so a looping agent cannot drain even that wallet.

What a call costs, exactly

The price in the table is the whole price. No monthly minimum, no per-seat fee, no metered surprise. The server returns HTTP 402 with the exact amount, your wallet signs that amount, and you get the answer after settlement. A failed call is not billed. Every response carries a _payment block with the amount, the running session total and the paying address, so you can reconcile against the chain yourself.

Why pay-per-call at all

Because the alternative is a signup, a credit card, a minimum plan and a key to rotate — for an agent that wanted the metadata of four URLs. Here the agent decides on its own, pays four cents, and nobody had to create an account.

License

MIT.

来源:README.md,提交 316600a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 21, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分