Databroker

dev.mossforge由 mossforge.dev 发布v0.5.0更新于 Oct 24, 2026

Pay-per-call UK MOT history, reliability analytics and identifier utilities. x402 USDC on Base.

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

本地 MCP 服务器,让助手按次付费获取英国 MOT 车检历史与车辆可靠性数据,费用以 Base 链上的 USDC 从钱包支付。

可以做什么
发现已启用的数据集及其每次调用的 USDC 价格,并免费检查 API 健康状态或数据点的时效信息,无需为数据本身付费。对单个数据集与键的取数先报价、再确认,只有再次确认调用后才付款。为单个数据集创建最多 100 个键的批量任务,一次总付款,并可轮询任务状态。
适用场景
当助手需要英国车辆 MOT 车检历史、里程真实性判断或全英可靠性分析,且你愿意从钱包支付少量按次 USDC 费用、而不使用 API 密钥或订阅时适用。
运行要求
通过 npx 从 npm 包在本地运行,仅支持桌面客户端。需要 DATABROKER_BASE_URL 和一个已充值的 Base 主网 USDC 钱包:默认 raw 签名方式需 DATABROKER_WALLET_KEY,或使用 Coinbase CDP 账户及 CDP_API_KEY_ID、CDP_API_KEY_SECRET、CDP_WALLET_SECRET 和可选的 CDP SDK。需要能访问 DataBroker API 的网络。
安装前请注意
付费调用会从所配置钱包实际支出 USDC,请保持余额较少并用 DATABROKER_MAX_USDC 设置单次上限。raw 模式下 DATABROKER_WALLET_KEY 中的私钥存在于进程环境中,应使用专用的低余额钱包。仅支持 MCP elicitation 的客户端才会对每笔扣费进行人工确认;否则只有模型传入的 confirm 作为把关,除非设置 DATABROKER_REQUIRE_ELICITATION。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

databroker-mcp-server

Give any MCP-capable agent (Claude Desktop, Claude Code, Cursor, etc) pay-per-call access to MossForge DataBroker — UK vehicle MOT intelligence, UK-wide reliability analytics — with x402 USDC micropayments on Base mainnet handled automatically. No API keys, no subscription: fund a wallet, ask questions.

Tools

ToolCostPurpose
databroker_discoverfreeList enabled datasets, their kind, and per-call USDC prices
databroker_fetchfree to quote, paid to confirmFetch a single datapoint for a dataset + key
databroker_metafreeStaleness/TTL/source info for a datapoint, without paying for it
databroker_healthfreeAPI uptime check
databroker_batch_createfree to quote, paid to confirmFetch up to 100 keys from one on-demand dataset in a single job, one payment total
databroker_batch_statusfreePoll a batch job created by databroker_batch_create

Payments are never automatic. databroker_fetch and databroker_batch_create always quote the price first — nothing is paid until the tool is called again with confirm: true. Every paid call is also capped by DATABROKER_MAX_USDC (default 0.50); a call priced above the cap is declined before anything is paid.

Payment approval is enforced by the server, not by the calling model, on clients that support it. Immediately before any payment, this server sends an MCP elicitation request through the connected client, asking the human directly to approve or decline the exact charge — independent of whatever confirm value the model passed. Claude Code (CLI) supports this as of v2.1.76; other clients (Claude Desktop, Cursor, etc.) may not yet.

If the connected client doesn't advertise elicitation support, the server falls back to the pre-elicitation guarantee — confirm: true from the calling model, still capped by DATABROKER_MAX_USDC — rather than blocking every paid call. Set DATABROKER_REQUIRE_ELICITATION=true to instead hard-block paid calls on clients without elicitation support, if you know your client supports it and want the stricter guarantee. The server logs which mode is active on startup and the first time a non-elicitation client connects.

Setup

  1. Create a fresh EOA wallet and fund it with a few USDC on Base mainnet (plus nothing else — no ETH needed; EIP-3009 transfers are gasless for the payer).

  2. Add to Claude Desktop (claude_desktop_config.json):

json
{  "mcpServers": {    "databroker": {      "command": "npx",      "args": ["-y", "@mossforge/databroker-mcp"],      "env": {        "DATABROKER_BASE_URL": "https://api.databroker.mossforge.dev",        "DATABROKER_WALLET_KEY": "0x...",        "DATABROKER_MAX_USDC": "0.50"      }    }  }}
bash
claude mcp add --transport stdio \  --env DATABROKER_BASE_URL=https://api.databroker.mossforge.dev \  --env DATABROKER_WALLET_KEY=0x... \  databroker -- npx -y @mossforge/databroker-mcp
  1. Ask: "Should I buy this 2018 Golf, reg AB18 CDE? Check its MOT history and whether the mileage looks genuine."

Who holds the wallet

Two signer providers are supported, set via DATABROKER_SIGNER:

  • raw (default) — a private key you hold, read from DATABROKER_WALLET_KEY. Zero setup beyond a funded wallet, but the key material is only as safe as this process's environment, and the spend cap is enforced by this codebase alone.
  • cdp — pays from a Coinbase CDP-managed wallet. No private key ever touches this process; CDP signs remotely and can enforce spend policies (session caps, allowed tokens) at the custodian layer. Requires a CDP account and CDP_API_KEY_ID / CDP_API_KEY_SECRET / CDP_WALLET_SECRET, plus npm install @coinbase/cdp-sdk (it's an optional dependency, not installed by default).

Security notes

  • Use a dedicated, low-balance wallet. In raw mode the key never leaves your machine; payments are signed locally via the @x402/* v2 protocol stack (@x402/fetch + @x402/core/client + @x402/evm/exact/client), producing EIP-3009 transferWithAuthorization payloads.
  • The per-call cap (DATABROKER_MAX_USDC) is the blast radius for any single call and is checked before any payment is sent — a call priced above it is declined, not charged. Total exposure is otherwise the wallet balance — keep it small.
  • Every paid call goes through a quote first: databroker_fetch and databroker_batch_create never spend money unless called again with confirm: true.
  • On top of that, when the connected client advertises MCP elicitation support, every payment also requires a human to explicitly accept a prompt sent by the server itself, naming the exact URL and USDC amount — enforced in code (confirmWithHuman in lib.ts), not left to the calling model's judgement. On clients without elicitation support this extra check is skipped (see DATABROKER_REQUIRE_ELICITATION below if you'd rather it fail closed instead).

Env vars

VarRequiredDefaultNotes
DATABROKER_BASE_URLyes—e.g. https://api.databroker.mossforge.dev
DATABROKER_SIGNERnorawraw or cdp — see Who holds the wallet
DATABROKER_WALLET_KEYyes, if SIGNER=raw—0x-prefixed private key
CDP_API_KEY_IDyes, if SIGNER=cdp—Coinbase CDP API key id
CDP_API_KEY_SECRETyes, if SIGNER=cdp—Coinbase CDP API key secret
CDP_WALLET_SECRETyes, if SIGNER=cdp—Coinbase CDP wallet secret
DATABROKER_MAX_USDCno0.50Per-call spend cap, enforced regardless of signer
DATABROKER_REQUIRE_ELICITATIONnofalseIf true, block paid calls on clients that don't advertise MCP elicitation support, instead of falling back to confirm: true alone

来源:mcp-server/README.md,提交 adb015a

工具

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

版本历史

1
  1. v0.5.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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