payclaw
payclaw
MCP 서버를 위한 드롭인 x402 결제 미들웨어입니다. Base 체인의 USDC를 사용하여 AI 에이전트의 도구 호출당 비용을 청구하세요. 10줄의 코드만으로 구현 가능하며, 결제 프로세서나 KYC가 필요 없습니다.
자금은 직접 이동합니다: 에이전트 지갑 → 귀하의 지갑. payclaw는 자금을 보관하지 않습니다.
빠른 시작
Python
pip install payclawfrom fastapi import FastAPI, Request
from payclaw import require_payment, PayclawConfig
app = FastAPI()
config = PayclawConfig(price_usdc=0.001, wallet_address="0xYourWallet")
@app.post("/tool")
@require_payment(config)
async def my_tool(request: Request):
return {"result": "tool output"}JavaScript / TypeScript
npm install payclaw-x402import { requirePayment } from "payclaw-x402";
const gate = requirePayment({ priceUsdc: 0.001, walletAddress: "0xYourWallet" });
export default { fetch: gate.wrapFetch(async (req) => {
return Response.json({ result: "tool output" });
})};Related MCP server: @true402.dev/mcp-server
작동 원리
에이전트가 귀하의 도구 엔드포인트를 호출합니다.
유효한 결제가 없으면 서버는 가격과 지갑 주소가 포함된 HTTP 402를 반환합니다.
에이전트가 Base 체인에서 USDC를 결제하고 트랜잭션 해시(tx hash)를 얻습니다.
에이전트가
X-Payment: <tx_hash>헤더를 포함하여 다시 요청합니다.payclaw가 온체인에서 검증한 후 도구를 실행합니다.
패키지
패키지 | 설치 | 문서 |
Python SDK |
| |
JavaScript SDK |
| |
payclaw Search MCP | — |
라이브 엔드포인트: https://payclaw-mcp.vercel.app/api/mcp
Claude Desktop과 연결:
{
"mcpServers": {
"payclaw": {
"command": "npx",
"args": ["mcp-remote", "https://payclaw-mcp.vercel.app/api/mcp"]
}
}
}Base 메인넷
from payclaw import mainnet_config
config = mainnet_config(price_usdc=0.001, wallet_address="0xYourWallet")const gate = requirePayment({
priceUsdc: 0.001, walletAddress: "0xYourWallet",
network: "base", chainId: 8453,
usdcAddress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
rpcUrl: "https://mainnet.base.org",
});보안
SQLite(Python) 또는 Redis/KV(JS)를 통한 재전송 공격 방지
ERC-20 전송 이벤트 검증 (
tx.value가 아님)체인 ID 검증 (테스트넷 재전송 공격 방지)
영수증 상태 확인 (실패한 트랜잭션 거부)
USDC 금액에 대한 정수 연산 (부동 소수점 사용 안 함)
법적 고지
MIT 라이선스. payclaw는 인프라 소프트웨어일 뿐입니다. 결제 프로세서, 송금업체 또는 금융 서비스가 아닙니다. 자금을 보관하지 않습니다. IP 주소는 속도 제한 목적으로만 일시적으로 저장될 수 있습니다. 사용에 따른 책임은 사용자에게 있습니다. 제재(OFAC) 및 관련 규정 준수는 배포자의 책임입니다.
payclaw(繁體中文)
適用於 MCP 伺服器的 x402 支付中介軟體。讓 AI 代理每次工具呼叫使用 Base 鏈上的 USDC 付款 — 10 行程式碼,無需支付處理器,無需 KYC。
資金直接流轉:Agent 錢包 → 你的錢包。payclaw 從不持有資金。
快速開始
Python
pip install payclawfrom fastapi import FastAPI, Request
from payclaw import require_payment, PayclawConfig
app = FastAPI()
config = PayclawConfig(price_usdc=0.001, wallet_address="0x你的錢包")
@app.post("/tool")
@require_payment(config)
async def my_tool(request: Request):
return {"result": "工具輸出"}JavaScript / TypeScript
npm install payclaw-x402import { requirePayment } from "payclaw-x402";
const gate = requirePayment({ priceUsdc: 0.001, walletAddress: "0x你的錢包" });
export default { fetch: gate.wrapFetch(async (req) => {
return Response.json({ result: "工具輸出" });
})};運作原理
Agent 呼叫你的工具端點
無有效付款 → 伺服器返回 HTTP 402,附上價格和錢包地址
Agent 在 Base 鏈支付 USDC,取得 tx hash
Agent 帶上
X-Payment: <tx_hash>header 重試payclaw 在鏈上驗證 → 執行工具
套件
套件 | 安裝 | 文件 |
Python SDK |
| |
JavaScript SDK |
| |
payclaw Search MCP | — |
線上端點: https://payclaw-mcp.vercel.app/api/mcp
法律聲明
MIT 授權。payclaw 僅為基礎設施軟體,並非支付處理器、貨幣傳輸業者或金融服務。本軟體不持有任何資金。使用風險由使用者自行承擔。遵守制裁(OFAC)及相關法規是部署方的責任。
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
- AlicenseBqualityAmaintenanceagenticpay lets MCP server developers monetize tools via per-call USDC micropayments on Solana, using the x402 protocol. Each tool declares a price; agents pay via signed Solana transactions; settlement happens on-chain in ~1.5–2 seconds.13MIT
- AlicenseAqualityAmaintenanceAn MCP server that enables AI agents to access paid AI inference and web tools via HTTP 402 micropayments in USDC on Base, using the agent's wallet as identity.14331MIT
- FlicenseAqualityBmaintenanceMCP server for a live x402 payment gateway on Base (USDC). Lets AI agents discover, preview for free, then pay per call — with prepaid gasless payments, signed receipts, and delta delivery.7
- AlicenseBqualityDmaintenanceAn MCP server providing 22 pay-per-call utility tools for AI agents (scrape, validate, embed, store, moderate, notify, convert, prevent loops) without accounts or API keys, using USDC payments via the x402 protocol.17401MIT
Related MCP Connectors
Monetize any MCP server: x402 paywall, pay-per-call billing in USDC on Base, agent marketplace.
Pay for HTTP APIs and charge for your own: x402 micropayments in USDC on Base.
Agent-commerce MCP server for x402/USDC payments and affiliate splits on Base.
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/TeaBay/payclaw'
If you have feedback or need assistance with the MCP directory API, please join our Discord server