MCP-native pay-per-tool-call micropayments for AI agents (Solana + USDC + x402)
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add agenticpay --env AGENTICPAY_BRIDGE_KEYPAIR='<AGENTICPAY_BRIDGE_KEYPAIR>' --env AGENTICPAY_BRIDGE_TOOLS='<AGENTICPAY_BRIDGE_TOOLS>' -- npx -y @agenticpay/mcp-bridge~/.codex/config.toml
[mcp_servers.agenticpay]
command = "npx"
args = ["-y", "@agenticpay/mcp-bridge"]
env = { AGENTICPAY_BRIDGE_KEYPAIR = "<AGENTICPAY_BRIDGE_KEYPAIR>", AGENTICPAY_BRIDGE_TOOLS = "<AGENTICPAY_BRIDGE_TOOLS>" }
# codex mcp add agenticpay --env AGENTICPAY_BRIDGE_KEYPAIR='<AGENTICPAY_BRIDGE_KEYPAIR>' --env AGENTICPAY_BRIDGE_TOOLS='<AGENTICPAY_BRIDGE_TOOLS>' -- npx -y @agenticpay/mcp-bridge~/.cursor/mcp.json
{
"mcpServers": {
"agenticpay": {
"command": "npx",
"args": [
"-y",
"@agenticpay/mcp-bridge"
],
"env": {
"AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
"AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agenticpay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agenticpay/mcp-bridge"
],
"env": {
"AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
"AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agenticpay": {
"command": "npx",
"args": [
"-y",
"@agenticpay/mcp-bridge"
],
"env": {
"AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
"AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agenticpay": {
"command": "npx",
"args": [
"-y",
"@agenticpay/mcp-bridge"
],
"env": {
"AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
"AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agenticpay": {
"command": "npx",
"args": [
"-y",
"@agenticpay/mcp-bridge"
],
"env": {
"AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
"AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>"
}
}
}
}Environment variables
AGENTICPAY_BRIDGE_KEYPAIRAGENTICPAY_BRIDGE_TOOLS
Replace the placeholders with your own credentials and keep them out of version control.