X402 Ads Mcp

io.github.forgemeshlabs由 GitHub 账号 forgemeshlabs 发布v0.2.6更新于 Nov 3, 2026

x402 广告推荐、意图分析和机器商务需求报告。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

x402 ad recommendations, intent analytics, and machine-commerce demand reports.

概览

X402 Ads 的本地 MCP 服务;无需登录;STDIO;8 个工具。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@forgemeshlabs/x402-ads-mcp

[M8ven Score] [mcpservers.org]

Install one middleware. Monetize unused 402 responses with recommendations, discovery, and machine commerce analytics.

This is the MCP side of that network: what autonomous agents probe, want, and abandon across the x402 ecosystem — as tools for your agent.

Wraps the ForgeMesh x402 Ads & Intent Network. Paid tools settle per call in USDC on Base mainnet over the x402 protocol — no account, no API key; your wallet is the login. Publishers get reports on their own services free.

Install

json
{  "mcpServers": {    "intent": {      "command": "npx",      "args": ["-y", "@forgemeshlabs/x402-ads-mcp"],      "env": {        "WALLET_PRIVATE_KEY": "0x... (optional — enables paid analytics)",        "X402_ADS_PUBLISHER_KEY": "pub_... (optional — free reports on your own services)"      }    }  }}

Both env vars are optional. With neither set, free tools work fully and paid tools return the x402 payment challenge (price, network, payTo) instead of settling — useful for inspection before spending anything.

Bonus: one-command publisher registration

This package doubles as the signup CLI for API operators (no MCP client needed):

bash
# read the terms first: https://ads.forgemesh.io/termsWALLET_PRIVATE_KEY=0xYOUR_WALLET npx -y @forgemeshlabs/x402-ads-mcp register \  --url https://api.your-service.com --accept-terms

One $0.10 USDC payment on Base; the paying wallet becomes your identity and your publisher key is printed once. Invalid requests are rejected before payment — you can't pay for a doomed registration.

Tools

ToolPriceWhat it returns
get_network_countersfreeLive network totals: 402s observed, agent-class requests, recommendations served
preview_recommendationsfreeThe exact recommendations block the middleware injects into a 402
get_termsfreeCanonical terms + complete data-collection disclosure
get_network_stats$0.005Network totals + monitor/indexer/agent classification split
get_intent_trends$0.01Top endpoints & categories autonomous agents request
get_category_demand$0.02Demand depth for one category: volume, buyer share, price points
get_intent_report$0.05 / free*Why-agents-didn't-buy funnel for one service

* get_intent_report is free with X402_ADS_PUBLISHER_KEY for services you contribute events to — the data co-op rule: your own data is free, forever.

Environment

VariableRequiredPurpose
WALLET_PRIVATE_KEYnoBase mainnet wallet holding USDC; enables automatic settlement of paid tools
X402_ADS_PUBLISHER_KEYnoPublisher key from ads.forgemesh.io; free lane for your own reports
X402_MAX_PRICE_USDnoPer-call price cap in USD; can only LOWER the built-in cap ($0.05, or $0.10 for register)
X402_SESSION_BUDGET_USDnoCumulative cap per process; can only LOWER the built-in $10

The backend URL is fixed to https://ads.forgemesh.io (the publisher key is only ever sent there). The server refuses to sign for any payee other than the ForgeMesh Ads wallet, any network other than Base mainnet, any asset other than USDC, or any amount over the cap. Use a dedicated, low-balance wallet. The key never leaves your machine — payments are signed locally (EIP-3009) and settle on-chain.

Ready-made configs live in examples/: a Claude Desktop mcpServers block and a commented env-var template.

Testing (safe by construction)

bash
npm test                # smoke: MCP boots over stdio and lists its 7 toolsnpm run test:free       # free tools against the live networknpm run test:challenge  # every paid tool returns an x402 challenge — no wallet, nothing can spendnpm run test:all        # all of the above

No test settles a payment. The challenge test deletes the payment env vars before loading, so it cannot move funds even if your shell has a wallet configured.

The network in one sentence

We measure machine commerce, not API content — publishers running the @forgemeshlabs/x402-ads middleware contribute anonymized 402 probe metadata; this MCP sells the aggregate demand signal back to agents and builders.

Full disclosure of what publishers send (and never send): https://ads.forgemesh.io/terms

License

MIT © ForgeMesh

来源:README.md,提交 28652b6

工具

8

list_tools

List Tools

Free. Lists every x402 Ads tool with its live price, so an agent can pick before paying. Fetches GET /menu with no payment.

无需输入参数。

get_network_counters

Get Network Counters

Free. Live totals for the ForgeMesh machine-commerce network: 402 responses observed, agent-class requests, recommendations served, services reporting, and x402 services indexed.

无需输入参数。

preview_recommendations

Preview Recommendations

Free. See the exact typed recommendations block (sponsored + similar x402 services) that the @forgemeshlabs/x402-ads middleware would inject into a 402 response for a given endpoint and category.

输入参数servicecategoryendpoint

get_network_stats

Get Network Stats

Paid, $0.005 USDC on Base via x402. Network-wide intent stats: total events, services, monitor/indexer/agent traffic classification split, and ad activity. Without WALLET_PRIVATE_KEY, returns the x402 payment challenge instead of settling.

无需输入参数。

get_category_demand

Get Category Demand

Paid, $0.02 USDC on Base via x402. Demand depth for one category: probe volume, distinct sources, buyer-class share, price points probed, daily series. Without WALLET_PRIVATE_KEY, returns the x402 payment challenge instead of settling.

输入参数windowcategory必填

get_intent_report

Get Intent Report

Why-agents-didn't-buy funnel for one service: bounce funnel, traffic classes, top abandoned endpoints, retry signals. FREE with X402_ADS_PUBLISHER_KEY for your registered services (the service id is bound to your key at registration); otherwise $0.05 USDC on Base via x402. Without a publisher key or WALLET_PRIVATE_KEY, returns the x402 payment challenge.

输入参数windowservice必填

get_terms

Get Terms & Data Disclosure

Free. The network's canonical terms of service and complete data-collection disclosure: exactly what the middleware sends and never sends.

无需输入参数。

版本历史

4
  1. v0.2.6最新Nov 3, 2026
  2. v0.2.5Oct 8, 2026
  3. v0.2.3Oct 5, 2026
  4. v0.2.2Sep 16, 2026

评分

已满足适用检查项的 90%

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

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分