# Agent Pay

> Agent Pay is an open-source MCP server. Payment gateway for AI agents with tool discovery, provisioning, metering, and reliability tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/joepangallo/agent-pay
- **MCP Registry name:** io.github.joepangallo/agent-pay
- **Listing updated:** 2026-11-13

## About

Payment gateway for AI agents with tool discovery, provisioning, metering, and reliability tools.

## Install

### Claude Code (Terminal)

```sh
claude mcp add agent-pay --env AGENTPAY_GATEWAY_KEY='<AGENTPAY_GATEWAY_KEY>' --env AGENTPAY_ADMIN_KEY='<AGENTPAY_ADMIN_KEY>' -- npx -y mcp-server-agentpay
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "agent-pay": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-agentpay"
      ],
      "env": {
        "AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
        "AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "agent-pay": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-agentpay"
      ],
      "env": {
        "AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
        "AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "agent-pay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-agentpay"
      ],
      "env": {
        "AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
        "AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "agent-pay": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-agentpay"
      ],
      "env": {
        "AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
        "AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "agent-pay": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-agentpay"
      ],
      "env": {
        "AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
        "AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Agent Pay free?

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

### How do I add Agent Pay to Claude Code?

Run this command in your terminal: claude mcp add agent-pay --env AGENTPAY_GATEWAY_KEY='<AGENTPAY_GATEWAY_KEY>' --env AGENTPAY_ADMIN_KEY='<AGENTPAY_ADMIN_KEY>' -- npx -y mcp-server-agentpay

## Where this comes from

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

---
Source: https://ai-powered.com/mcp/agent-pay
