Agent Pay
Payment gateway for AI agents with tool discovery, provisioning, metering, and…
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.1.2
- Listing updated
- 5 days ago
About Agent Pay
Agent Pay is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Payment gateway for AI agents with tool discovery, provisioning, metering, and reliability tools.
Install
Run in a terminal
claude mcp add agent-pay --env AGENTPAY_GATEWAY_KEY='<AGENTPAY_GATEWAY_KEY>' --env AGENTPAY_ADMIN_KEY='<AGENTPAY_ADMIN_KEY>' -- npx -y mcp-server-agentpayAdd to claude_desktop_config.json
{
"mcpServers": {
"agent-pay": {
"command": "npx",
"args": [
"-y",
"mcp-server-agentpay"
],
"env": {
"AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
"AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"agent-pay": {
"command": "npx",
"args": [
"-y",
"mcp-server-agentpay"
],
"env": {
"AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
"AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
}
}
}
}Add to .vscode/mcp.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>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"agent-pay": {
"command": "npx",
"args": [
"-y",
"mcp-server-agentpay"
],
"env": {
"AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
"AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"agent-pay": {
"command": "npx",
"args": [
"-y",
"mcp-server-agentpay"
],
"env": {
"AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
"AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
AGENTPAY_GATEWAY_KEYYour AgentPay gateway key (starts with apg_)RequiredAGENTPAY_ADMIN_KEYAdmin key for reliability endpoints (circuit breakers, health metrics, config)AGENTPAY_URLAgentPay API URL
Pricing
Open source
Agent Pay 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.