MCP Server Studio
Payment and trust layer for agentic commerce (Agentic Finance): pay and verify over x402 and MPP
Registry name: tools.agent402/agent402
Add to claude_desktop_config.json:
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"AGENT_KEY": "<AGENT_KEY>",
"AGENT402_BUDGET": "<AGENT402_BUDGET>",
"AGENT402_MAX_PER_CALL": "<AGENT402_MAX_PER_CALL>",
"AGENT402_CREDITS_KEY": "<AGENT402_CREDITS_KEY>",
"SOLANA_AGENT_KEY": "<SOLANA_AGENT_KEY>",
"AGENT402_NETWORKS": "<AGENT402_NETWORKS>"
}
}
}
}Run in your terminal:
claude mcp add agent402 -e AGENT_KEY='<AGENT_KEY>' -e AGENT402_BUDGET='<AGENT402_BUDGET>' -e AGENT402_MAX_PER_CALL='<AGENT402_MAX_PER_CALL>' -e AGENT402_CREDITS_KEY='<AGENT402_CREDITS_KEY>' -e SOLANA_AGENT_KEY='<SOLANA_AGENT_KEY>' -e AGENT402_NETWORKS='<AGENT402_NETWORKS>' -- npx -y [email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"AGENT_KEY": "<AGENT_KEY>",
"AGENT402_BUDGET": "<AGENT402_BUDGET>",
"AGENT402_MAX_PER_CALL": "<AGENT402_MAX_PER_CALL>",
"AGENT402_CREDITS_KEY": "<AGENT402_CREDITS_KEY>",
"SOLANA_AGENT_KEY": "<SOLANA_AGENT_KEY>",
"AGENT402_NETWORKS": "<AGENT402_NETWORKS>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"agent402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"AGENT_KEY": "<AGENT_KEY>",
"AGENT402_BUDGET": "<AGENT402_BUDGET>",
"AGENT402_MAX_PER_CALL": "<AGENT402_MAX_PER_CALL>",
"AGENT402_CREDITS_KEY": "<AGENT402_CREDITS_KEY>",
"SOLANA_AGENT_KEY": "<SOLANA_AGENT_KEY>",
"AGENT402_NETWORKS": "<AGENT402_NETWORKS>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"AGENT_KEY": "<AGENT_KEY>",
"AGENT402_BUDGET": "<AGENT402_BUDGET>",
"AGENT402_MAX_PER_CALL": "<AGENT402_MAX_PER_CALL>",
"AGENT402_CREDITS_KEY": "<AGENT402_CREDITS_KEY>",
"SOLANA_AGENT_KEY": "<SOLANA_AGENT_KEY>",
"AGENT402_NETWORKS": "<AGENT402_NETWORKS>"
}
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"agent402": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://agent402.tools/mcp"
]
}
}
}Run in your terminal:
claude mcp add --transport http agent402 https://agent402.tools/mcpAdd to .cursor/mcp.json:
{
"mcpServers": {
"agent402": {
"url": "https://agent402.tools/mcp"
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"agent402": {
"type": "http",
"url": "https://agent402.tools/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"agent402": {
"serverUrl": "https://agent402.tools/mcp"
}
}
}| Name | Required | What it is |
|---|---|---|
AGENT_KEY | No | Hex private key of an EVM wallet funded with USDC on any EVM rail the server offers (Base, Polygon, Arbitrum One, Monad, Celo, Avalanche C-Chain, Sei, OP Mainnet, Arc, Ink) or USDG on Robinhood… |
AGENT402_BUDGET | No | Optional hard cap on total USD spent per session (e.g. 1.00; unset or off = no session cap). Enforced on the payment that is signed. |
AGENT402_MAX_PER_CALL | No | Max USD price for any single call (default 5; e.g. 0.05; 0 or off = no per-call cap). Enforced on the payment that is signed. |
AGENT402_CREDITS_KEY | No | Prepaid credits key (a402_...) for Agent402's own services. With it set and no wallet key, every tool except the wallet-scoped ones (memory, usage) and the outside-seller routes (router.execute… |
SOLANA_AGENT_KEY | No | Optional base58 (or JSON byte-array) secret key of a Solana wallet funded with USDC on Solana. |
AGENT402_NETWORKS | No | Optional: restrict and order the chains to pay on (e.g. "base,solana" or a CAIP-2 like eip155:4663). |