402-mcp
v3.15.2AI agents discover, pay for, and consume any Lightning-gated API autonomously
Values you need
| Variable | What it is | |
|---|---|---|
NWC_URI | optional secret | Nostr Wallet Connect URI for autonomous Lightning payments |
MAX_AUTO_PAY_SATS | optional | Maximum sats to auto-pay per request |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add 402-mcp -- npx -y 402-mcp@3.15.2Add to
claude_desktop_config.json{
"mcpServers": {
"402-mcp": {
"args": [
"-y",
"402-mcp@3.15.2"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"402-mcp": {
"args": [
"-y",
"402-mcp@3.15.2"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"402-mcp": {
"args": [
"-y",
"402-mcp@3.15.2"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.402-mcp]
command = "npx"
args = ["-y", "402-mcp@3.15.2"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: l402-config, l402-discover, l402-fetch, l402-pay, l402-credentials, l402-balance, l402-store-token, l402-buy-credits, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json