AgentPay - The economic-intelligence layer for AI agents — an x402 gateway that prices, caps, and receipts agent data spend. 17 free tools + verified_route, the buyer-side x402 trust oracle. USDC on Base or Stellar.
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add agentpay-trust-routing-spend-caps-for-x4 --env AGENTPAY_BASE_KEY='<AGENTPAY_BASE_KEY>' -- npx -y @romudille/agentpay-mcp~/.codex/config.toml
[mcp_servers.agentpay-trust-routing-spend-caps-for-x4]
command = "npx"
args = ["-y", "@romudille/agentpay-mcp"]
env = { AGENTPAY_BASE_KEY = "<AGENTPAY_BASE_KEY>" }
# codex mcp add agentpay-trust-routing-spend-caps-for-x4 --env AGENTPAY_BASE_KEY='<AGENTPAY_BASE_KEY>' -- npx -y @romudille/agentpay-mcp~/.cursor/mcp.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"command": "npx",
"args": [
"-y",
"@romudille/agentpay-mcp"
],
"env": {
"AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@romudille/agentpay-mcp"
],
"env": {
"AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"command": "npx",
"args": [
"-y",
"@romudille/agentpay-mcp"
],
"env": {
"AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"command": "npx",
"args": [
"-y",
"@romudille/agentpay-mcp"
],
"env": {
"AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"command": "npx",
"args": [
"-y",
"@romudille/agentpay-mcp"
],
"env": {
"AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>"
}
}
}
}Remote
claude mcp add --transport http agentpay-trust-routing-spend-caps-for-x4 https://agentpay.tools/mcp~/.codex/config.toml
[mcp_servers.agentpay-trust-routing-spend-caps-for-x4]
url = "https://agentpay.tools/mcp"
# codex mcp add agentpay-trust-routing-spend-caps-for-x4 --url https://agentpay.tools/mcp~/.cursor/mcp.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"url": "https://agentpay.tools/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"type": "http",
"url": "https://agentpay.tools/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"httpUrl": "https://agentpay.tools/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://agentpay.tools/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"url": "https://agentpay.tools/mcp"
}
}
}Environment variables
AGENTPAY_BASE_KEY
Replace the placeholders with your own credentials and keep them out of version control.