← AgentEconomy
MCP-Native · x402 Protocol · agentwallet-sdk Powered

AgentPay MCP

x402 payments as an MCP tool. Pay per request, in any MCP client.

AgentPay MCP, formerly ClawPay, gives any MCP-compatible agent runtime a native way to pay for APIs, data feeds, compute, and services on demand, per request, non-custodial, and fully automatic.

Key Features

MCP-Native

AgentPay MCP is a first-class MCP tool. Declare it in your MCP server manifest and every MCP client, including Claude, Cursor, Cline, and Continue, can call it natively.

x402 Protocol

HTTP 402 Payment Required is the emerging standard for machine-to-machine payments. AgentPay MCP handles the full x402 handshake so your agent can pay without custom glue code.

agentwallet-sdk Powered

Every payment flows through the agent's own non-custodial agentwallet-sdk wallet. Funds never touch a centralized intermediary. SpendingPolicy guardrails apply automatically.

Pay Per Request

Granular micropayment per API call. Agents stop wasting budget on subscriptions for tools they use 3 times a month. Pay exactly what you use, nothing more.

Integration Example

// mcp-server.json — add AgentPay MCP as an MCP tool
{
  "tools": [
    {
      "name": "agentpay",
      "description": "Pay for any x402-gated API or service",
      "inputSchema": {
        "type": "object",
        "properties": {
          "endpoint":   { "type": "string", "description": "x402 endpoint URL" },
          "maxAmount":  { "type": "string", "description": "Max USDC to spend" },
          "payload":    { "type": "object", "description": "Request payload" }
        },
        "required": ["endpoint", "maxAmount"]
      }
    }
  ]
}

// Agent calls AgentPay MCP from any MCP client
const result = await mcp.callTool('agentpay', {
  endpoint:  'https://api.datavendor.ai/realtime',
  maxAmount: '0.05',  // 5 cents max per call
  payload:   { query: 'ETH price', timeframe: '1h' }
});

// AgentPay MCP handles:
// 1. Detects 402 Payment Required response
// 2. Reads x402 payment details from headers
// 3. Signs + submits payment from agent's non-custodial wallet
// 4. Retries request with payment receipt
// 5. Returns actual API response to your agent

Part of the AgentEconomy Stack

AgentPay MCP works with agentwallet-sdk for payment signing, webmcp-sdk for site-level payment discovery, and ClawPowers for autonomous execution flows that need to buy data, tools, and services on demand.

Community Adapters

Pre-built adapters for x402-compatible APIs. Add your API adapter.

agentpay-exa
Exa.ai semantic search with x402 pricing
Community · Open Source
agentpay-perplexity
Perplexity API pay-per-query adapter
Community · Open Source
agentpay-replicate
Replicate model inference x402 adapter
Community · Open Source