MCP Server Studio
x402 USDC paywall bridge for MCP — pay per tool call on Solana.
Registry name: io.github.krystiangw/agenticpay
Add to claude_desktop_config.json:
{
"mcpServers": {
"agenticpay": {
"command": "npx",
"args": [
"-y",
"@agenticpay/[email protected]"
],
"env": {
"AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
"AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>",
"AGENTICPAY_BRIDGE_NETWORK": "<AGENTICPAY_BRIDGE_NETWORK>",
"AGENTICPAY_BRIDGE_RPC": "<AGENTICPAY_BRIDGE_RPC>"
}
}
}
}Run in your terminal:
claude mcp add agenticpay -e AGENTICPAY_BRIDGE_KEYPAIR='<AGENTICPAY_BRIDGE_KEYPAIR>' -e AGENTICPAY_BRIDGE_TOOLS='<AGENTICPAY_BRIDGE_TOOLS>' -e AGENTICPAY_BRIDGE_NETWORK='<AGENTICPAY_BRIDGE_NETWORK>' -e AGENTICPAY_BRIDGE_RPC='<AGENTICPAY_BRIDGE_RPC>' -- npx -y @agenticpay/[email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"agenticpay": {
"command": "npx",
"args": [
"-y",
"@agenticpay/[email protected]"
],
"env": {
"AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
"AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>",
"AGENTICPAY_BRIDGE_NETWORK": "<AGENTICPAY_BRIDGE_NETWORK>",
"AGENTICPAY_BRIDGE_RPC": "<AGENTICPAY_BRIDGE_RPC>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"agenticpay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agenticpay/[email protected]"
],
"env": {
"AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
"AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>",
"AGENTICPAY_BRIDGE_NETWORK": "<AGENTICPAY_BRIDGE_NETWORK>",
"AGENTICPAY_BRIDGE_RPC": "<AGENTICPAY_BRIDGE_RPC>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"agenticpay": {
"command": "npx",
"args": [
"-y",
"@agenticpay/[email protected]"
],
"env": {
"AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
"AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>",
"AGENTICPAY_BRIDGE_NETWORK": "<AGENTICPAY_BRIDGE_NETWORK>",
"AGENTICPAY_BRIDGE_RPC": "<AGENTICPAY_BRIDGE_RPC>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
AGENTICPAY_BRIDGE_KEYPAIR | Yes | Solana keypair as 64-byte JSON array (the format `solana-keygen new` writes). The bridge signs each x402 payment with this keypair. |
AGENTICPAY_BRIDGE_TOOLS | Yes | JSON array of paid tool definitions. Each entry: { name, description, url, inputSchema, headers? } |
AGENTICPAY_BRIDGE_NETWORK | No | CAIP-2 network identifier. Devnet: solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 |
AGENTICPAY_BRIDGE_RPC | No | Solana JSON-RPC URL |