Agent Data Tools

io.github.Nutshell2000v1.0.0更新于 Oct 9, 2026

Pay-per-call web, AI and Base on-chain tools for agents. Paid per call in USDC via x402.

已验证Streamable HTTP可网页运行Media & DesignWeb Search & ScrapingFinance

概览

AI 生成的概览

一个远程 MCP 服务器,按次收费提供九种工具:网页提取、摘要、截图、图像生成、转录、图像描述、域名查询和 Base 链上查询。

功能
通过流式 HTTP 提供九种工具:网页正文提取、网页摘要、网页截图、图像生成、音频转录、图像描述、域名与 DNS 及邮件认证查询、Base ERC-20 代币信息与风险标记、Base 钱包余额。列出工具免费;每次调用通过 x402 协议以 Base 上的 USDC 付费,价格从 0.002 美元到 0.02 美元不等。未付费的调用会返回付款要求,失败的调用不收费。
适用场景
适合助手偶尔需要网页提取、摘要、截图、转录或 Base 链上数据,而不想自行运行浏览器、AI 模型或 RPC 基础设施的场景。适用于已支持在 Base 上以 USDC 进行 x402 付款的代理。
运行要求
远程 MCP 端点,无需本地运行时或软件包。需要支持 x402 付款的 MCP 客户端,以及 Base 上已充值的 USDC 钱包,因为每次工具调用都要付费。需要能访问该端点及 Base 网络。
安装前请注意
每次工具调用都会在 Base 主网上花费真实 USDC,费用按调用累积。付款发送到配置为 PAY_TO 的地址。服务器无状态且未声明身份验证,任何知道端点的人都能调用。代币风险标记基于字节码启发式判断,对于代理合约,描述的是代理本身而非其实现。

安装

在 SourceWeft 中

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

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "agent-data-tools": {
      "type": "http",
      "url": "https://agent-data-tools.peterbellbring.workers.dev/mcp"
    }
  }
}

README

Agent Data Tools

A Cloudflare Worker that sells nine tools to AI agents. Each call is paid in USDC on Base through the x402 protocol, and the money goes straight to the address in PAY_TO.

EndpointReturnsPrice
GET /extract?url=Web page as clean text, headings and links$0.002
GET /summarize?url=Short summary and key points of a page$0.01
GET /screenshot?url=JPEG of the rendered page (base64)$0.02
GET /image?prompt=Generated 1024x1024 image (base64)$0.02
GET /transcribe?url=Text of an audio file (max 5 MB)$0.02
GET /describe?url=Description of an image, or an answer about it$0.01
GET /domain?name=DNS, registration age, SPF/DMARC$0.005
GET /token?address=Base ERC-20 facts and risk flags$0.01
GET /wallet?address=Base wallet balances$0.005

The AI endpoints run on Workers AI and /screenshot on Browser Rendering, both within Cloudflare's free daily allowance (10,000 AI "neurons" and 10 browser-minutes). When either runs out, or the browser is rate limited, the endpoint answers 503 and the caller is not charged.

Free routes: / (a web page for browsers, JSON for programs), /openapi.json, /llms.txt, /robots.txt, /health, /.well-known/x402, /.well-known/mcp/server-card.json, /.well-known/api-catalog.

MCP

The same nine tools are available as an MCP server at /mcp (streamable HTTP, stateless). Listing tools is free. Calling a tool without payment returns an x402 payment requirement; an MCP client with x402 support pays and retries. A tool call that fails is not charged.

Each tool is defined once in src/discovery.ts (name, price, parameters) and implemented once in src/tools.ts; the HTTP route, the MCP tool, the OpenAPI document and the web page are all generated from those.

Where it is listed

  • Official MCP Registry: listed as io.github.Nutshell2000/agent-data-tools. To publish a new version, raise version in server.json and push a matching v* tag; the workflow in .github/workflows/publish-mcp.yml does the rest on GitHub's servers.
  • 402 Index (https://402index.io): all nine endpoints registered on 8 October 2026, pending their review.
  • x402scan: not yet. Needs a wallet sign-in at https://www.x402scan.com/resources/register.
  • Coinbase Bazaar: not yet. See below.

An unpaid request gets HTTP 402 with a PAYMENT-REQUIRED header. Calls that fail (4xx/5xx) are not charged.

Configuration

All settings are in wrangler.jsonc:

  • PAY_TO: the address that receives payments.
  • NETWORK: eip155:8453 for Base mainnet.
  • FACILITATOR_URL: the service that verifies and broadcasts payments.
  • PAYWALL: set to off only for local testing.

Commands

bash
npx wrangler dev
bash
npx wrangler deploy
bash
npx wrangler tail

wrangler tail streams live requests, which is the quickest way to see whether anyone is calling the service.

On Windows, wrangler dev can fail with SQLITE_CANTOPEN when the project path is long. Add --persist-to with a short folder path to fix it.

To try /screenshot without the paywall, use npx wrangler dev --remote --var PAYWALL:off. It runs on Cloudflare, so no browser is downloaded to this PC.

Listing in the Coinbase Bazaar

The default facilitator needs no account. To appear in Coinbase's x402 Bazaar, payments must go through the Coinbase CDP facilitator:

  1. Create a free API key at https://portal.cdp.coinbase.com.

  2. Store it as Worker secrets (you'll be prompted for each value):

    bash
    npx wrangler secret put CDP_API_KEY_ID
    bash
    npx wrangler secret put CDP_API_KEY_SECRET
  3. In wrangler.jsonc, set FACILITATOR_URL to https://api.cdp.coinbase.com/platform/v2/x402 and deploy.

The Bazaar indexes an endpoint after its first settled payment. The CDP path has not been tested end to end, because that needs a real key.

Checking that it works

Live URL: https://agent-data-tools.peterbellbring.workers.dev

Coinbase runs a free validator. A pass shows "valid":true and "simulation":{"outcome":"accepted"}:

bash
curl -X POST https://api.cdp.coinbase.com/platform/v2/x402/validate -H "Content-Type: application/json" -d "{\"resource\":\"https://agent-data-tools.peterbellbring.workers.dev/domain?name=cloudflare.com\",\"method\":\"GET\"}"

Incoming payments show up as USDC transfers to PAY_TO on https://basescan.org.

Limits

  • /extract reads at most 2 MB of a page and waits at most 8 seconds for it.
  • /token and /wallet use the public Base RPC, which is rate limited. Set BASE_RPC_URL to a private endpoint if volume grows.
  • Token capability flags are bytecode heuristics, and for a proxy they describe the proxy, not its implementation.

来源:README.md,提交 09a76de

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v1.0.0最新Oct 9, 2026