Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
Agentpay
ภาพรวม
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
AI Agent payment protocol on CKB Fiber Network. Zero-gas micropayments with Hold Invoice escrow.
สามเสาของ PopNx MCP
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
- เสียงผู้ใช้iยังไม่มีรีวิวรีวิวเปิดพร้อมระบบบัญชีในขั้นถัดไป
- ผลตรวจเบื้องต้นของเราiผ่าน 1 จาก 1 ข้อตรวจจากข้อมูลที่เปิดอยู่ ยังไม่ได้สแกนโค้ด
- การใช้งานiยังไม่ได้วัด★ –
ใช้ทำอะไรได้
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
- การเชื่อมต่อ: รันบนเครื่อง
- ช่องทาง (transport): stdio
- หมวด: ร้านค้าออนไลน์และรับเงิน
- ต้องใส่ค่าเหล่านี้: FIBER_RPC_URL
ติดตั้ง
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ก่อนติดตั้ง
- ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
- รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
- ค่าที่คุณต้องใส่เอง:
FIBER_RPC_URL
ต้องเตรียมก่อน
- npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"agentpay": {
"command": "npx",
"args": [
"-y",
"@agentpay-dev/mcp-server"
],
"env": {
"FIBER_RPC_URL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add agentpay --env FIBER_RPC_URL='ใส่ค่าของคุณ' -- npx -y @agentpay-dev/mcp-serverเติมค่าที่เว้นว่างไว้ก่อนรัน
หรือคัดลอกค่าตั้งเอง
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"agentpay": {
"command": "npx",
"args": [
"-y",
"@agentpay-dev/mcp-server"
],
"env": {
"FIBER_RPC_URL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
หรือคัดลอกค่าตั้งเอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"agentpay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agentpay-dev/mcp-server"
],
"env": {
"FIBER_RPC_URL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าที่ต้องใส่เอง
- Fiber Network RPC URL
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
ทำอะไรได้บ้าง
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
ผลตรวจเบื้องต้นi
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
- ✓ ผ่าน
ตัวตนผู้ทำตรงกับ repo
ชื่อใน registry ยืนยันด้วยบัญชี GitHub alefnt ซึ่งเป็นเจ้าของ repo
- … ยังไม่ตรวจ
ยังมีคนดูแล
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- … ยังไม่ตรวจ
มีสัญญาอนุญาต (license)
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- – ไม่เกี่ยว
endpoint ตอบ
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
- – ไม่เกี่ยว
ล็อกอินแบบ OAuth
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
- … ยังไม่ตรวจ
คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับตัวอื่นในหมวด ร้านค้าออนไลน์และรับเงินi
- ดาวมากกว่า 0% ของอีก 1743 ตัวในหมวดนี้
- ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 3% ของอีก 1743 ตัวในหมวดนี้
- ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1743 ตัวในหมวดนี้
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
คำถามที่พบบ่อย
Agentpay ปลอดภัยไหม?
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใช้กุญแจหรือรหัสอะไรบ้าง?
ต้องใส่ค่าเหล่านี้: FIBER_RPC_URL
ตัวนี้รันบนเครื่องหรือบนคลาวด์?
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
ยังมีคนดูแลอยู่ไหม?
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.1) เข้า registry 8 เดือนที่ผ่านมา
ใช้กับโปรแกรมไหนได้บ้าง?
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
มีตัวไหนใช้แทนได้บ้าง?
ในหมวดเดียวกันมี Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce
ตัวที่ใช้แทนได้
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Stripe MCP
server ทางการของ Stripe ให้ AI ดูและจัดการลูกค้า สินค้า การชำระเงิน และใบแจ้งหนี้ ต่อผ่านคลาวด์ของ Stripe และล็อกอินแบบ OAuth
MCP Cn Commerce
8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending
README จากผู้ทำ
เปิดอ่าน README
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
AgentPay - BTC-Native AI Agent Payment Protocol
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:
- Zero-gas micropayments - Pay per API call, no minimum amount
- Hold Invoice escrow - Lock funds until service delivery is confirmed
- BTC interoperability - Cross-chain payments via Lightning Network
- MCP integration - Let Claude/GPT agents make payments natively
Quick Start
Install
npm install @agentpay-dev/sdk @agentpay-dev/core
Create a Payment Agent
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' } );
Scaffold a New Project
npx create-agentpay my-agent
cd my-agent && npm install
Architecture
+-----------------------------------------------------+
| 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) | +-----------------------------------------------------+
Packages
| 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 |
Key Features
Hold Invoice - Trustless Escrow
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
MCP Server - AI-Native Payments
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:
| 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 |
x402 HTTP Compatibility
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
BTC Cross-Chain
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...', });
Ecosystem Integration
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 |
Project Structure
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
Documentation
- Product Overview - What AgentPay solves and how
- Architecture - Technical design and protocol layers
- Competitive Analysis - Comparison with x402, AP2, Stripe
Tech Stack
- Runtime: Node.js 20+ / TypeScript 5.5+
- L2 Network: CKB Fiber Network (Lightning-compatible)
- L1 Blockchain: Nervos CKB
- Asset Standard: xUDT (extensible User Defined Token)
- Identity: .bit decentralized identity
- Cross-chain: Cch (CKB - BTC Lightning bridge)
- AI Integration: Model Context Protocol (MCP)
- Build: pnpm workspace monorepo
Development
git clone https://github.com/alefnt/AgentPay.git
cd AgentPay pnpm install pnpm build pnpm test
Roadmap
- Core protocol (Fiber RPC, settlement, assets)
- SDK (AgentWallet, ServiceProvider, HubClient)
- MCP Server with 8 payment tools
- x402 HTTP 402 facilitator
- AP2 protocol bridge
- DePIN metering module
- BTC cross-chain (Cch + LND)
- RGB++ bridge integration
- npm packages published
- MCP Registry registration
- Fiber mainnet deployment
- Stablecoin (RUSD) support on CKB
- Public demo site
- Production Hub service
License
MIT - see LICENSE for details.
Built for the Agent Economy - where AI agents autonomously discover, negotiate, and pay for services.