MCP-Pay
MCP-Pay
Algorand 上で動作する HTTP x402 マネタイズレイヤーです。AI エージェントが MCP ツールを、1 回の呼び出しにつき 1 セント未満の従量制で支払うことができます。
問題
Model Context Protocol (MCP) を使う自律型 AI エージェントは、有料ツールにアクセスできません。クレジットカード、API キー、サブスクリプションは人間向けのワークフローだからです。ツール作成者には呼び出しごとに課金する方法がなく、レガシーチェーンはマシン間のマイクロペイメントには遅すぎるか高すぎます。
Related MCP server: Loop MCP DualRail
解決策
MCP-Pay は、あらゆる MCP ツールを、Algorand 上で即座に収益化できる x402 エンドポイントに変換します。
エージェントは
GET /mcp/v1/toolsでツールを発見します(無料。JSON スキーマと価格を含みます)。エージェントは
POST /mcp/v1/tools/:name/executeを支払いなしで呼び出します。サーバーは
402 Payment Requiredで応答し、決済メタデータ(USDC 建て価格、受信者アドレス、ネットワーク)を返します。エージェントのローカルミドルウェアが、Algorand の USDC 送金(ASA 31566704)に自動署名して再試行します。
GoPlausible facilitator が検証とオンチェーンでの決済を行い(ファイナリティ 3.3 秒未満)、ツールが実行され、結果が 1 往復で返ります。
アカウント不要。キー不要。人手不要。
USP(独自の強み)
一般的な有料 API | MCP-Pay |
ハードコード済みの単一エンドポイント | ツールレジストリ:あらゆるツールがスキーマ付きの有料サービスになる |
人間向けに書かれたドキュメント | エージェントネイティブな発見:エージェントがツールをプログラムから一覧化・比較・選択できる |
サブスクリプション / 前払いクレジット | 真のペイパーコール(呼び出しごとの課金):リクエストごとにオンチェーンで決済 |
EVM のガス代でマイクロペイメントが成立しない | Algorand:手数料 ~0.001 ALGO、ファイナリティ 3.3 秒 |
含まれる有料ツール
ツール | 機能 | 価格 |
| LLM コンテキスト用に、任意の公開 Web ページをリーダーモードで抽出 | $0.002 |
| キー不要な公開フィードから取得する仮想通貨のリアルタイム現物価格 | $0.001 |
| Solidity ソースコードの静的ヒューリスティックなセキュリティスキャン | $0.005 |
アーキテクチャ
┌────────────────────────┐
│ AI AGENT (client/) │ 1. GET /mcp/v1/tools (discovery)
│ auto-paying MCP agent │ 2. POST .../execute → 402 challenge
└───────────┬────────────┘ 3. sign USDC txn locally
│ 4. retry + X-PAYMENT header
▼
┌────────────────────────┐
│ MCP-PAY SERVER (Hono) │ x402 paymentMiddleware protects each tool route
│ registry + tools/* │ executes tool only after verified settlement
└───────────┬────────────┘
▼
┌────────────────────────┐
│ GOPLAUSIBLE FACILITATOR│ /verify + /settle on Algorand TestNet
│ https://facilitator. │ USDC (ASA 31566704) transfer
│ goplausible.xyz │
└────────────────────────┘技術スタック
TypeScript、Hono
@x402-avm/extensions(Bazaar ディスカバリ)GoPlausible facilitator、Algorand TestNet USDC
ローカルでの実行
1. 前提条件
Node.js 20以上、pnpm(
npm i -g pnpm)資金が入っている Algorand TestNet アカウントを 2 つ:
サーバーウォレット(受信側):アドレスのみ
エージェントウォレット(支払い側):ニーモニックはローカルに保持し、絶対にコミットしない
Lora faucet から資金を調達し、Lora で両アカウントを USDC にオプトインしてから、Circle faucet(Algorand Testnet を選択)で TestNet USDC を取得してください。
2. 設定
pnpm install
cp .env.example .env.env に記入:
AVM_ADDRESS=<server wallet address> # receiver
AVM_MNEMONIC="<agent 25-word mnemonic>" # payer, LOCAL ONLY
SERVER_URL=http://localhost:40213. サーバー起動 + エージェントの実行
pnpm server # terminal 1
pnpm agent # terminal 2: discovery → 402 → auto-pay → resultオンチェーンで確認する
成功した呼び出しはすべて、実際の TestNet トランザクションを決済します。
ファシリテーターダッシュボード: https://facilitator.goplausible.xyz/dashboard
Lora エクスプローラー: https://lora.algokit.io/testnet
決済 TX の例(デモ実行から):
TODO: paste Lora transaction link after first live runAPI
エンドポイント | 支払い | 説明 |
| 無料 | ヘルスチェック |
| 無料 | スキーマと価格を含むツールカタログ |
| x402 | ツールの実行(1 回ごとに支払い) |
ロードマップ
支払いポリシーガード:ミドルウェアで、エージェントごとの予算を強制
クリエイターダッシュボード:自分の MCP ツールと価格を数分で登録できるように
GoPlausible の Bazaar に掲載し、サードパーティ製エージェントが MCP-Pay ツールを発見できるようにする
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to search, pay for, and call paid APIs using the x402 protocol, with automatic USDC settlement.2MIT
Loop MCP DualRailofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to pay for MCP tool calls using either Bitcoin/Lightning (L402) or USDC (x402) rails, with unified settlement and a 21% discount for Bitcoin payments.32MIT- AlicenseAqualityBmaintenanceEnables MCP clients to access all endpoints of an x402 gateway by paying real-time microtransactions (USDC on Base) per API call, with automatic tool discovery and spend guardrails.2389MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover, query, and pay for HTTP endpoints and MCP tools using Stellar USDC/SEP-41 stablecoins through a federated P2P bazaar catalog and x402 payment facilitator.Apache 2.0
Related MCP Connectors
Monetize any MCP server: x402 paywall, pay-per-call billing in USDC on Base, agent marketplace.
Agent x402 Paywall MCP — Coinbase HTTP 402 protocol + on-chain settlement. Agents pay per-call
Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/challalokesh08/mcp-pay'
If you have feedback or need assistance with the MCP directory API, please join our Discord server