paid-mcp-metering
paid-mcp-metering
呼び出しごとに課金される従量制 MCP ツール。
探索は無料:POST /mcp は JSON-RPC 2.0 を Model Context Protocol に従って扱います(initialize、tools/list、ping)。実行は従量課金:POST /v1/t/{tool} は x402 v2 のペイウォールの背後にあります。未払いのリクエストには HTTP 402 を返して支払い情報を提示し、支払い済みのリクエストは PAYMENT-SIGNATURE ヘッダーを付け、ツールの実行前にファシリテーターを介して USDC を決済します。
ツール
ツール | 価格 | 返す内容 |
| $0.001/呼び出し | ソース URL 付きのランキング済みライブ Web 検索結果 |
| $0.01/呼び出し | 複数ソースによる調査で、統合された回答と引用ソースを返す |
アップストリームは Exa(プライマリ)と Tavily(フォールバック)です。各ハンドラーは最新のアップストリーム結果を返すか例外を投げます。固定された応答はありません。
Related MCP server: Base Intel Search
決済レール
x402 v2、USDC、そして EIP-155 ネットワークは X402_NETWORK で選択します(デフォルトは Base Sepolia テストネット、CAIP-2 eip155:84532)。ファシリテーターのデフォルトは https://x402.org/facilitator です。
環境変数 | 目的 |
| 受け取りアドレス。決済に必須。未設定の場合、402 要件のみを返す |
| CAIP-2 ネットワーク ID(デフォルトは |
| x402 ファシリテーターのエンドポイント |
| 検索アップストリームの認証情報 |
実行
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 レジストリで io.github.dev55acc-ai/paid-mcp-metering として指定しています。v* タグを付けると .github/workflows/publish-mcp.yml が実行されます。テスト、ビルド、npm publish(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.-