Skip to content
MCP server

Agentpay

Spending controls for AI agents: per-agent budgets, vendor allowlists, full audit trail.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.2.1
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-run/mcp-server

Add to claude_desktop_config.json

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "@agentpay-run/mcp-server"
      ],
      "env": {
        "AGENTPAY_API_KEY": "<AGENTPAY_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "@agentpay-run/mcp-server"
      ],
      "env": {
        "AGENTPAY_API_KEY": "<AGENTPAY_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "agentpay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agentpay-run/mcp-server"
      ],
      "env": {
        "AGENTPAY_API_KEY": "<AGENTPAY_API_KEY>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "@agentpay-run/mcp-server"
      ],
      "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-run/mcp-server"
      ],
      "env": {
        "AGENTPAY_API_KEY": "<AGENTPAY_API_KEY>"
      }
    }
  }
}

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

Configuration

  • AGENTPAY_API_KEYAgentPay wallet API key (ap_test_... or ap_live_...). Generate at https://agentpay.run/dashboard.Required
  • AGENTPAY_BASE_URLOverride for self-hosted or local dev. Defaults to https://agentpay.run.

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-run/mcp-server

Where this comes from

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

How AIPoweredBot checks servers