Payment gateway for AI agents with tool discovery, provisioning, metering, and reliability tools.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add agent-pay --env AGENTPAY_GATEWAY_KEY='<AGENTPAY_GATEWAY_KEY>' --env AGENTPAY_ADMIN_KEY='<AGENTPAY_ADMIN_KEY>' -- npx -y mcp-server-agentpay~/.codex/config.toml
[mcp_servers.agent-pay]
command = "npx"
args = ["-y", "mcp-server-agentpay"]
env = { AGENTPAY_GATEWAY_KEY = "<AGENTPAY_GATEWAY_KEY>", AGENTPAY_ADMIN_KEY = "<AGENTPAY_ADMIN_KEY>" }
# codex mcp add agent-pay --env AGENTPAY_GATEWAY_KEY='<AGENTPAY_GATEWAY_KEY>' --env AGENTPAY_ADMIN_KEY='<AGENTPAY_ADMIN_KEY>' -- npx -y mcp-server-agentpay~/.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>"
}
}
}
}.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>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agent-pay": {
"command": "npx",
"args": [
"-y",
"mcp-server-agentpay"
],
"env": {
"AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
"AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
}
}
}
}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>"
}
}
}
}.trae/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>"
}
}
}
}Environment variables
AGENTPAY_GATEWAY_KEYAGENTPAY_ADMIN_KEY
Replace the placeholders with your own credentials and keep them out of version control.