MCP Server Studio

Agent402.Tools: payments and trust for AI agents MCP server

Payment and trust layer for agentic commerce (Agentic Finance): pay and verify over x402 and MPP

Registry name: tools.agent402/agent402

Publisher
agent402.tools
Runs
Local or hosted
Package
npm
Version
0.18.0
Category
AI & agents
Updated
2026-11-30

Source code on GitHub

Set up Agent402.Tools: payments and trust for AI agents (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "agent402": {
      "command": "npx",
      "args": [
        "-y",
        "agent402-mcp@0.18.0"
      ],
      "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>"
      }
    }
  }
}

Claude Code

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 agent402-mcp@0.18.0

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "agent402": {
      "command": "npx",
      "args": [
        "-y",
        "agent402-mcp@0.18.0"
      ],
      "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>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "agent402": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "agent402-mcp@0.18.0"
      ],
      "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>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "agent402": {
      "command": "npx",
      "args": [
        "-y",
        "agent402-mcp@0.18.0"
      ],
      "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>"
      }
    }
  }
}

Set up Agent402.Tools: payments and trust for AI agents (hosted url)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "agent402": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://agent402.tools/mcp"
      ]
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add --transport http agent402 https://agent402.tools/mcp

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "agent402": {
      "url": "https://agent402.tools/mcp"
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "agent402": {
      "type": "http",
      "url": "https://agent402.tools/mcp"
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "agent402": {
      "serverUrl": "https://agent402.tools/mcp"
    }
  }
}

Settings

NameRequiredWhat it is
AGENT_KEYNoHex 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_BUDGETNoOptional 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_CALLNoMax 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_KEYNoPrepaid 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_KEYNoOptional base58 (or JSON byte-array) secret key of a Solana wallet funded with USDC on Solana.
AGENT402_NETWORKSNoOptional: restrict and order the chains to pay on (e.g. "base,solana" or a CAIP-2 like eip155:4663).

More ai & agents MCP servers