Power your agent
The publisher's own command. Not a PlugMCP endpoint.
Host a copy with our keys and logs.
npx -y @agentpay-dev/[email protected]Claude Code has no install link for a local command. Copy the command below and run it in a terminal.
FIBER_RPC_URL=<value> claude mcp add io.github.alefnt-agentpay -- npx -y @agentpay-dev/mcp-server@0.1.1Run in a terminal.
{ "mcpServers": { "io.github.alefnt-agentpay": { "command": "npx", "args": [ "-y", "@agentpay-dev/[email protected]" ], "env": { "FIBER_RPC_URL": "<value>" } } }}claude_desktop_config.json
Remote URL or a command on your machine? How the two installs differ
Run on PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
LaunchGive 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:
npm install @agentpay-dev/sdk @agentpay-dev/core
import { AgentWallet } from '@agentpay-dev/sdk';
const wallet = new AgentWallet({ fiberRpcUrl: process.env.FIBER_RPC_URL });
// Pay another agent for a service
const result = await wallet.payAndCall(
'https://translator-agent.example.com',
'translate',
{ text: 'Hello World', target: 'zh' }
);
npx create-agentpay my-agent
cd my-agent && npm install
+-----------------------------------------------------+
| Applications |
| AI Agents | DePIN Devices | API Marketplaces |
+-----------------------------------------------------+
| AgentPay SDK |
| AgentWallet | ServiceProvider | HubClient |
+-----------------------------------------------------+
| AgentPay Core |
| Settlement | Metering | DID | Assets |
+-----------------------------------------------------+
| CKB Fiber Network (L2) |
| Payment Channels | Hold Invoice | HTLC Routing |
+-----------------------------------------------------+
| CKB L1 + BTC Lightning Network |
| xUDT Assets | RGB++ | Cross-chain (Cch) |
+-----------------------------------------------------+
The killer feature. Agent A locks payment, Agent B delivers, funds release only on confirmation:
import { ServiceProvider } from '@agentpay-dev/sdk';
const provider = new ServiceProvider({
fiberRpcUrl: process.env.FIBER_RPC_URL,
services: {
translate: {
price: 100_000_000n, // 1 CKB per request
handler: async (params) => {
const result = await doTranslation(params.text, params.target);
return { translation: result };
}
}
}
});
// Hold flow: Lock -> Deliver -> Release (atomic)
// If service fails, funds auto-refund via HTLC timeout
Registered on the official MCP Registry as io.github.alefnt/agentpay.
Add to Claude Desktop config:
{
"mcpServers": {
"agentpay": {
"command": "npx",
"args": ["@agentpay-dev/mcp-server"],
"env": { "FIBER_RPC_URL": "http://localhost:8227" }
}
}
}
8 MCP Tools:
Any HTTP API becomes a paid API with one middleware:
import { createX402Middleware } from '@agentpay-dev/x402-facilitator';
const paywall = createX402Middleware({ price: '100000000' });
http.createServer((req, res) => {
paywall(req, res, () => {
res.end(JSON.stringify({ data: 'premium content' }));
});
});
// Client: HTTP 402 -> pay Fiber invoice -> retry -> get content
Pay with BTC, settle on CKB via Lightning-Fiber bridge:
import { CchClient } from '@agentpay-dev/core';
const cch = new CchClient({ cchRpcUrl: process.env.CCH_RPC_URL });
await cch.sendBtcToCkb({
btcPayReq: 'lnbc100n1p...',
fiberChannelId: '0x...',
});
AgentPay enhances existing payment solutions:
AgentPay/
packages/
core/ # Protocol core (Fiber RPC, settlement, DePIN)
sdk/ # Developer SDK (Wallet, Provider, Hub)
mcp-server/ # MCP Server for AI agents
x402-facilitator/ # HTTP 402 middleware
ap2/ # Google AP2 bridge
create-agentpay/ # CLI scaffolding
services/
hub/ # Hosted wallet service
registry/ # Agent discovery service
examples/
translate-agent/ # Translation service example
code-review-agent/ # Code review agent example
btc-to-ckb/ # Cross-chain payment example
docs/
product.md # Product overview
architecture.md # Technical architecture
git clone https://github.com/alefnt/AgentPay.git
cd AgentPay
pnpm install
pnpm build
pnpm test
MIT - see LICENSE for details.
Built for the Agent Economy - where AI agents autonomously discover, negotiate, and pay for services.
© 2026 MCP Directory.
AI Agent payment protocol on CKB Fiber Network. Zero-gas micropayments with Hold Invoice escrow.
{ "mcpServers": { "io.github.alefnt-agentpay": { "command": "npx", "args": [ "-y", "@agentpay-dev/[email protected]" ], "env": { "FIBER_RPC_URL": "<value>" } } }}Tools
No tool list yet. Remote servers get one after the first health check.
FAQ
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
The publisher lists these environment variables: FIBER_RPC_URL.
Agentpay runs locally over stdio.
Last checked 2026-11-09. AI Agent payment protocol on CKB Fiber Network. Zero-gas micropayments with Hold Invoice escrow.