Skip to content
Gemini CLI

402 mcp for Gemini CLI

dev.forgesworn/402-mcp

AI agents discover, pay for, and consume any Lightning-gated API autonomously

client:Gemini CLI transport:stdio runtime:npm

Install 402 mcp in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "402-mcp"
      ],
      "env": {
        "NWC_URI": "<NWC_URI>",
        "MAX_AUTO_PAY_SATS": "<MAX_AUTO_PAY_SATS>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

402 mcp in other clients