paid-mcp-metering
paid-mcp-metering
按调用次数计费的 MCP 工具。
服务发现免费:POST /mcp 遵循 Model Context Protocol 规范,采用 JSON-RPC 2.0(initialize、tools/list、ping)。执行按量计费:POST /v1/t/{tool} 位于 x402 v2 付费墙之后。未付费请求会收到 HTTP 402 及支付要求;已付费请求携带 PAYMENT-SIGNATURE 请求头,并在工具运行前通过 facilitator 完成 USDC 结算。
工具
工具 | 价格 | 返回内容 |
| $0.001/次 | 按相关性排序的实时网页结果及来源 URL |
| $0.01/次 | 多来源研究过程,返回综合答案及引用来源 |
上游为 Exa(主)和 Tavily(备)。每个处理器实时返回上游输出,否则直接抛出异常——绝无预置响应。
Related MCP server: Base Intel Search
支付轨道(Rails)
x402 v2、USDC、EIP-155 网络由 X402_NETWORK 指定(默认 Base Sepolia 测试网,CAIP-2 为 eip155:84532)。Facilitator 默认为 https://x402.org/facilitator。
环境变量 | 用途 |
| 收款地址。结算必需;未设置时仅返回 402 支付要求 |
| CAIP-2 网络 ID(默认 |
| x402 facilitator 端点 |
| 搜索上游服务的凭据 |
运行
npm install
npm run build
npm start # node dist/x402-server.js
npm test # build + node --test dist/test-x402.js免费服务发现:
curl -s localhost:4021/mcp -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'付费执行:
curl -s localhost:4021/v1/t/web_search -H 'Content-Type: application/json' \
-d '{"query":"x402 protocol","max_results":3}'
# -> 402 with payment requirements; pay via an x402 client and retry with PAYMENT-SIGNATURE注册中心
server.json 面向官方 MCP Registry,标识为 io.github.dev55acc-ai/paid-mcp-metering。打上 v* 标签将触发 .github/workflows/publish-mcp.yml:测试、构建、npm 发布(设置了 NPM_TOKEN 时),随后通过 GitHub OIDC 认证完成注册中心发布——无需存储任何注册中心凭据。
许可证
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Pay-per-call research tools for AI agents, paid via x402 USDC. Remote MCP, one free tool.
5 pay-per-call SEO tools over MCP. Free discovery, tool calls settle in USDC on Base via x402.
8 pay-per-call web intel tools over MCP. Free discovery, calls settle in USDC on Base (x402).
Paid MCP tools behind one endpoint. Agents pay per call in USDC on Base via x402.
Related MCP Servers
- AlicenseAqualityCmaintenancePaid web research MCP tools for autonomous agents: search, page extraction, citations, and diff monitoring through a live x402 API. Unpaid calls return the Base USDC payment requirement so agents can pay and retry safely.41MIT
- AlicenseNot gradedqualityDmaintenancePay-per-call web search for AI agents, settled in USDC on Base via the x402 protocol. No API key or subscription required; users fund a wallet and get a web_search tool.8 npm1MIT
- AlicenseBqualityDmaintenanceExposes 25 paid API endpoints as MCP tools for AI agents, with payments in USDC on Base mainnet via the x402 protocol, enabling tasks like web search, company intelligence, and crypto research.2555 npmMIT

Agent Search Proofficial
FlicenseNot gradedqualityAmaintenanceEnables agent-native web search and multi-angle research synthesis with pay-per-call USDC payments on Base via x402, requiring no API keys or subscriptions.-