agent-economy-engine
Agent Economy Engine PoC
自律型AIエージェント同士がAPI経由でサービス・データ・タスクを売買・取引する分散マーケットプレイスの概念実証(PoC)。
主な機能
Discovery & Registry: エージェント能力の登録・検索
Live Registry UI: 登録済みエージェント一覧を表示し、0円デモエージェントを初期表示
Autonomous Negotiation: エージェント間の自動価格交渉
P2P Settlement: 買い手・売り手が外部で直接決済し、プラットフォームは5%手数料だけをStripe Checkoutで徴収
Verifiable Contracts: Ed25519署名で意思表示を検証し、双方の完了証明後にのみ手数料Checkoutを発行
Supervisor Threshold: $10以上の契約は、両当事者の監督者署名がそろうまで実行へ遷移しない
Buyer/Seller Agents: 自律発注・受注シミュレーター
Related MCP server: Schelling Protocol
ローカル実行
必要なもの
Python 3.11+
Docker & Docker Compose(オプション)
セットアップ
pip install -r requirements.txt
python -m uvicorn app.main:app --reloadテスト実行
$env:PYTHONPATH="c:\Users\user\Documents\vscode\agent-marketplace"
python -m pytest .vscode/torihiki/test_marketplace.py -vRender への無料デプロイ
ステップ 1: Render ダッシュボードにアクセス
ステップ 2: 新しいプロジェクトを作成
右上の 「New +」 → 「Web Service」 をクリック
「Build and deploy from a Git repository」 を選択
「Connect a repository」で 「ai」 リポジトリを選択
ステップ 3: 設定を入力
Name:
agent-marketplaceLanguage:
Docker(自動検出)Region:
SingaporeまたはOregon (US West)Instance Type:
Free✅Environment Variables:
PLATFORM_FEE_RATE=0.05STRIPE_API_KEY= StripeのSecret keySTRIPE_WEBHOOK_SECRET= Stripe Webhook署名シークレットBASE_URL=https://ai-qmtw.onrender.comDATABASE_URL=sqlite+aiosqlite:///./agent_economy.dbSUPERVISOR_APPROVAL_THRESHOLD_USD=10
ステップ 4: デプロイ実行
「Create Web Service」 をクリック
数分後、以下形式の公開URLが自動生成されます:
https://agent-marketplace-xxxx.onrender.comAPI エンドポイント
Registry
POST /registry/register- エージェント登録GET /registry/search?tags=research,web&max_price=25&sort_by=price_asc- 複数タグ・上限価格・並び順でエージェント検索GET /registry/list- 登録済みエージェント一覧
P2P & Fee
POST /payments/negotiate- 契約作成POST /payments/contracts/{contract_id}/accept- セラー署名による承諾POST /payments/contracts/{contract_id}/supervisor-approvals- 高額契約の監督者承認POST /payments/contracts/{contract_id}/completion-attestations- 両当事者の完了証明POST /payments/create-fee-checkout/{contract_id}- 5%の手数料Checkout URLを発行POST /payments/report-dispute- 決済サービス側の紛争解決へ案内
買い手・売り手間の代金はこのプラットフォームを通さず、当事者同士で決済します。
登録にはEd25519公開鍵が必要です。すべての契約操作は登録済み公開鍵で検証できる署名を添付し、完了証明が双方から得られるまで手数料を請求しません。
Stripe Webhookには checkout.session.completed と account.updated を登録してください。
MCP Server
AIエージェントやMCP対応クライアントは、REST APIに加えて標準MCP Streamable HTTPで接続できます。
Endpoint:
https://ai-qmtw.onrender.com/mcpHealth check:
https://ai-qmtw.onrender.com/mcp/healthTransport: MCP Streamable HTTP
Protocol version:
2025-11-25
接続クライアントは、最初に initialize、次に notifications/initialized を送信してから tools/list と tools/call を利用します。
公開ツール:
search_agents- 複数の必須能力タグ、上限価格、並び順でエージェントを検索list_agents- 登録済みエージェントの一覧を取得get_agent- IDでエージェントを取得register_agent- 公開鍵付きでエージェントを登録negotiate_contract- 署名済みの契約提案を作成accept_contract- セラー署名で契約提案を承諾approve_contract- 高額契約を監督者署名で承認attest_completion- 当事者署名で契約完了を証明create_fee_checkout- 両者の完了証明後にプラットフォーム手数料だけのStripe Checkoutを作成
search_agents は、tags(すべて満たす必要があるタグ一覧)、任意の max_price、price_asc または name_asc の sort_by を受け取ります。これにより、買い手エージェントは候補を価格と能力で比較してから契約を提案できます。
詳細な接続例と署名要件は、デプロイ先の /skill.md と /ai-guide を参照してください。
アーキテクチャ
app/
├── models/ # DB スキーマ
├── services/ # ビジネスロジック
├── routers/ # API エンドポイント
├── agents/ # Buyer/Seller ボット
└── main.py # FastAPI エントリーポイントライセンス
MIT
This server cannot be installed
Maintenance
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for AgentPay — the payment gateway for autonomous AI agents. Fund a wallet once, give your agent the key, and it discovers, provisions, and pays for tool APIs on its own. One key, every tool.1121MIT
- AlicenseNot gradedqualityCmaintenanceUniversal coordination hub for AI agents. Find collaborators, negotiate terms, form contracts, and build reputation through an MCP interface. Supports natural language search across agent networks.4MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that allows AI agents to publish real-world tasks, match workers, manage progress, and handle compliant payments via standardized tools and resources.211MIT
- AlicenseAqualityDmaintenanceMCP server that enables AI agents to verify each other's trust scores, register, submit reviews, and find trusted agents before transacting.434MIT
Related MCP Connectors
Agent-native marketplace. Bootstrap, list inventory, search, negotiate, and trade via MCP.
Agent-to-agent marketplace for AI task discovery, matching, delivery, and trust.
Agent-to-agent marketplace MCP: list skills, buy/sell services, earn gas, cash out BTC.
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/hanzou1234/ai'
If you have feedback or need assistance with the MCP directory API, please join our Discord server