AI Agent payment protocol on CKB Fiber Network. Zero-gas micropayments with Hold Invoice escrow.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Give every AI Agent a wallet. Let Agents pay each other - instantly, with zero fees.
AgentPay is a BTC-native payment protocol designed for AI Agent economies. Built on CKB Fiber Network (Lightning-compatible L2), it enables:
| Package | npm | Description |
|---|---|---|
@agentpay-dev/core | Protocol core: Fiber RPC, settlement, assets, DePIN metering | |
@agentpay-dev/sdk | Developer SDK: AgentWallet, ServiceProvider, HubClient | |
@agentpay-dev/mcp-server | MCP Server: 8 payment tools for Claude/GPT | |
@agentpay-dev/x402-facilitator | HTTP 402 payment middleware with Fiber settlement | |
@agentpay-dev/ap2 | Google AP2 protocol bridge to Fiber | |
create-agentpay | CLI scaffolding tool |
The killer feature. Agent A locks payment, Agent B delivers, funds release only on confirmation:
Registered on the official MCP Registry as io.github.alefnt/agentpay.
Add to Claude Desktop config:
8 MCP Tools:
| Tool | Description |
|---|---|
get_balance | Check wallet balance (CKB + xUDT) |
send_payment | Send a payment via Fiber invoice |
create_invoice | Generate a Fiber invoice to receive payment |
pay_for_service | Pay-and-call another agent's API |
create_hold_invoice | Create escrow payment (lock funds) |
settle_hold | Release held funds after service delivery |
cancel_hold | Cancel and refund held payment |
list_channels | View active payment channels |
Any HTTP API becomes a paid API with one middleware:
Pay with BTC, settle on CKB via Lightning-Fiber bridge:
AgentPay enhances existing payment solutions:
| Platform | How AgentPay Helps |
|---|---|
| x402 (Coinbase) | Zero-gas Fiber settlement backend for HTTP 402 protocol |
| AP2 (Google) | Settlement layer for agent authorization framework |
| Stripe | Complements with agent-to-agent micropayments (sub-cent) |
| Lightning Network | Cross-chain via Cch bridge, expanding BTC payment reach |
MIT - see LICENSE for details.
Built for the Agent Economy - where AI agents autonomously discover, negotiate, and pay for services.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agentpay-2)<a href="https://allmcps.com/mcp/agentpay-2"><img src="https://allmcps.com/api/badge/agentpay-2?style=directory" alt="Agentpay on AllMCPs" /></a>