402 MCP Server
by forgesworndev.forgesworn/402-mcpv3.15.2
AI agents discover, pay for, and consume any Lightning-gated API autonomously
context tax
queued
security
queued
cold start
queued
freshness
Active5d ago
Install 402 MCP server
Install in Claude Code
claude mcp add 402 -e NWC_URI='<nwc-uri>' -- npx -y 402-mcpInstall in Cursor
{
"mcpServers": {
"402": {
"command": "npx",
"args": [
"-y",
"402-mcp"
],
"env": {
"NWC_URI": "<nwc-uri>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"402": {
"command": "npx",
"args": [
"-y",
"402-mcp"
],
"env": {
"NWC_URI": "<nwc-uri>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"402-mcp"
],
"env": {
"NWC_URI": "<nwc-uri>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"402": {
"command": "npx",
"args": [
"-y",
"402-mcp"
],
"env": {
"NWC_URI": "<nwc-uri>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| NWC_URI | — | yes | Nostr Wallet Connect URI for autonomous Lightning payments |
| MAX_AUTO_PAY_SATS | — | — | Maximum sats to auto-pay per request |
Freshness
Active — last maintenance signal 5d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-05 · 5d ago · GitHub
Latest release
2026-09-24 · 16d ago · GitHub · v4.3.1
Package published
no data · npm/PyPI
Registry entry updated
2026-04-07 · 6mo ago · official registry · v3.15.2
FAQ
›How do I install the 402 MCP server in Claude Code?
Run: claude mcp add 402 -e NWC_URI='<nwc-uri>' -- npx -y 402-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does 402 require an API key?
Yes. It expects NWC_URI, of which 1 is a secret.
›Can I use 402 as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is 402 in the official MCP registry?
Yes, as dev.forgesworn/402-mcp.