Skip to content
MCP server

agentpay

Enforced budgets for agents paying x402 APIs: the gateway holds the wallet, not the agent.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.9.0
Listing updated
5 days ago

About agentpay

agentpay is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add agentpay --env AGENTPAY_API_KEY='<AGENTPAY_API_KEY>' -- npx -y agentpay-gateway

Add to claude_desktop_config.json

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "agentpay-gateway"
      ],
      "env": {
        "AGENTPAY_API_KEY": "<AGENTPAY_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "agentpay-gateway"
      ],
      "env": {
        "AGENTPAY_API_KEY": "<AGENTPAY_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "agentpay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "agentpay-gateway"
      ],
      "env": {
        "AGENTPAY_API_KEY": "<AGENTPAY_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "agentpay-gateway"
      ],
      "env": {
        "AGENTPAY_API_KEY": "<AGENTPAY_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "agentpay-gateway"
      ],
      "env": {
        "AGENTPAY_API_KEY": "<AGENTPAY_API_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • AGENTPAY_URLagentpay gateway URL
  • AGENTPAY_API_KEYAgent key from POST /admin/keys

Pricing

Open source

agentpay FAQ

Is agentpay free?

Yes. agentpay is open source, so you can use and self-host it for free.

How do I add agentpay to Claude Code?

Run this command in your terminal: claude mcp add agentpay --env AGENTPAY_API_KEY='<AGENTPAY_API_KEY>' -- npx -y agentpay-gateway

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers