What is the AgentPay MCP server?
Agent payments, API key vaulting, and governed mandates. Agents spend within user-defined limits.
How to install AgentPay
Copy-paste configuration for popular MCP clients.
transport: stdio
Config generated by PluginBench — verify against the source before use.Environment / auth
AGENTPAY_API_KEYrequiredsecretAgentPay merchant API key used for authenticated tool calls
AGENTPAY_MERCHANT_IDOptional AgentPay merchant ID for intent creation and attribution
AGENTPAY_API_URLOptional override for the AgentPay API base URL
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"agentpay": {
"command": "npx",
"args": [
"-y",
"@agentpayxyz/mcp-server"
],
"env": {
"AGENTPAY_API_KEY": "<YOUR_AGENTPAY_API_KEY>",
"AGENTPAY_MERCHANT_ID": "<YOUR_AGENTPAY_MERCHANT_ID>",
"AGENTPAY_API_URL": "<YOUR_AGENTPAY_API_URL>"
}
}
}
}Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"agentpay": {
"command": "npx",
"args": [
"-y",
"@agentpayxyz/mcp-server"
],
"env": {
"AGENTPAY_API_KEY": "<YOUR_AGENTPAY_API_KEY>",
"AGENTPAY_MERCHANT_ID": "<YOUR_AGENTPAY_MERCHANT_ID>",
"AGENTPAY_API_URL": "<YOUR_AGENTPAY_API_URL>"
}
}
}
}Windsurf
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"agentpay": {
"command": "npx",
"args": [
"-y",
"@agentpayxyz/mcp-server"
],
"env": {
"AGENTPAY_API_KEY": "<YOUR_AGENTPAY_API_KEY>",
"AGENTPAY_MERCHANT_ID": "<YOUR_AGENTPAY_MERCHANT_ID>",
"AGENTPAY_API_URL": "<YOUR_AGENTPAY_API_URL>"
}
}
}
}VS Code
.vscode/mcp.json
{
"servers": {
"agentpay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agentpayxyz/mcp-server"
],
"env": {
"AGENTPAY_API_KEY": "<YOUR_AGENTPAY_API_KEY>",
"AGENTPAY_MERCHANT_ID": "<YOUR_AGENTPAY_MERCHANT_ID>",
"AGENTPAY_API_URL": "<YOUR_AGENTPAY_API_URL>"
}
}
}
}Claude Code
claude mcp add agentpay --env AGENTPAY_API_KEY=<YOUR_AGENTPAY_API_KEY> --env AGENTPAY_MERCHANT_ID=<YOUR_AGENTPAY_MERCHANT_ID> --env AGENTPAY_API_URL=<YOUR_AGENTPAY_API_URL> -- npx -y @agentpayxyz/mcp-server