PayAgents
About
Give AI agents a policy-controlled wallet to pay 402-gated APIs across Bitcoin Lightning (L402) and Base USDC (x402), with per-transaction and daily spend caps.
Details
- Author
- Payagents
- Categories
- Finance, Other, AI
Jump to
Setup
Install PayAgents in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/payagents/payagents-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
The officialModel Context Protocol (MCP)server forPayAgents. Give your AI agents (Claude Desktop, Cursor, Windsurf, Zed, LangChain, OpenDevin) a policy-controlled wallet to pay for APIs and tools autonomously acrossBitcoin Lightning (L402)andBase USDC (x402).
Addpayagents-mcpto yourclaude_desktop_config.json:
- macOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "payagents": { "command": "npx", "args": ["-y", "payagents-mcp"], "env": { "PAYAGENTS_API_KEY": "pa_live_your_api_key_here" } } } }
Restart Claude Desktop, and your AI assistant will automatically have access to PayAgents payment tools!
Executes an HTTP request to any API endpoint or paywalled resource, automatically resolving and paying HTTP 402 / L402 / x402 payment challenges within your enterprise spending limits.
- Parameters:
- url(required, string): Target API URL.
- method(optional, default: "GET"):GET,POST,PUT,DELETE.
- body(optional, object/string): Request body payload.
- headers(optional, object): Additional HTTP headers.
- max_amount(optional, string): Max amount willing to pay (e.g."0.01 USD").
Checks the agent's available spending balance, subscription tier, and active spending policies (per-transaction caps and daily limits).
Queries details for a past transaction, showing payment rail, settlement method (🟢 Direct Non-CustodialvsPlatform Managed), and cryptographic verification proofs.
If you are building an MCP server and want to charge micro-fees when other agents call your tools:
npm install payagents-mcp @modelcontextprotocol/sdk zod
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { mcpCharge } from 'payagents-mcp'; import { z } from 'zod'; const server = new McpServer({ name: 'weather-mcp', version: '1.0.0' }); // Gate your tool behind $0.002 micro-payment server.tool( 'get_forecast', 'Retrieve real-time radar forecast data', { city: z.string() }, mcpCharge({ price: '0.002 USD' }, async ({ city }) => { return { content: [{ type: 'text', text: Forecast data for ${city} }], }; }) );
All agent payments are enforced by your PayAgents Dashboard Policy Engine:
- Per-Transaction Limit: Block any individual call exceeding your ceiling (e.g. max $0.01).
- Daily Budget Cap: Prevent runaway recursion loops (e.g. max $5.00/day).
- Domain Allowlists: Restrict agent spending only to verified domains.
- Human Approval Triggers: High-value calls are automatically paused for human approval.
Get Paid Kit ($49): x402 MCP path so agents help humans clear USDC, with spend caps + AUP. CAPTCHA/web-unlock as optional metered fuel.
Trustless AI task verification and XRPL escrow management — post jobs, verify completions, and release XRP payments automatically via MCP.
Independent verification for autonomous agents: pre-trade/pre-action review returning approve/reject verdicts with signed proofs (free /verify-proof), public on-chain-checkable verdict ledger; pay-per-call via Lightning, USDC (x402), or card.
Keyless crypto payments for AI agents. One MCP call turns any wallet address into a non-custodial crypto payment link or tip jar, no API key and no account, with funds settling straight to your wallet at a 0% platform fee (USDC/USDT, BTC, LTC, DASH, DOGE, ZCASH).
One x402/developer-credit control layer for paid AI/data tool calls, crypto conversion quotes, public MCP discovery, progress streaming, and receipt-backed agent spend governance.
MCP/x402 spend layer for AI agents to quote, pay for, invoke, stream, and receipt paid AI/API calls with crypto or developer credits.
Give AI agents a Bitcoin wallet with Lightning Network payments
Trust layer for AI agent commerce: escrow payments, verifiable reputation, and bounty marketplace with USDC/USDT/BTC Lightning support.
The infrastructure for AI-driven payments
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




