MCP Server Studio

402 MCP MCP server

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

Registry name: dev.forgesworn/402-mcp

Publisher
forgesworn.dev
Runs
Runs locally
Package
npm
Version
3.15.2
Category
AI & agents
Updated
2026-04-07

Source code on GitHub

Set up 402 MCP (run locally)

Claude Desktop

Add to claude_desktop_config.json:

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

Claude Code

Run in your terminal:

claude mcp add 402-mcp -e NWC_URI='<NWC_URI>' -e MAX_AUTO_PAY_SATS='<MAX_AUTO_PAY_SATS>' -- npx -y [email protected]

Cursor

Add to .cursor/mcp.json:

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

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "402-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "NWC_URI": "<NWC_URI>",
        "MAX_AUTO_PAY_SATS": "<MAX_AUTO_PAY_SATS>"
      }
    }
  }
}

Windsurf

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

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

Settings

NameRequiredWhat it is
NWC_URINoNostr Wallet Connect URI for autonomous Lightning payments
MAX_AUTO_PAY_SATSNoMaximum sats to auto-pay per request

More ai & agents MCP servers