MCP server
402 MCP
AI agents discover, pay for, and consume any Lightning-gated API autonomously
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 3.15.2
- Listing updated
- 5 days ago
About 402 MCP
402 MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add 402-mcp --env NWC_URI='<NWC_URI>' -- npx -y 402-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"402-mcp": {
"command": "npx",
"args": [
"-y",
"402-mcp"
],
"env": {
"NWC_URI": "<NWC_URI>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"402-mcp": {
"command": "npx",
"args": [
"-y",
"402-mcp"
],
"env": {
"NWC_URI": "<NWC_URI>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"402-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"402-mcp"
],
"env": {
"NWC_URI": "<NWC_URI>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"402-mcp": {
"command": "npx",
"args": [
"-y",
"402-mcp"
],
"env": {
"NWC_URI": "<NWC_URI>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"402-mcp": {
"command": "npx",
"args": [
"-y",
"402-mcp"
],
"env": {
"NWC_URI": "<NWC_URI>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
NWC_URINostr Wallet Connect URI for autonomous Lightning paymentsMAX_AUTO_PAY_SATSMaximum sats to auto-pay per request
Pricing
Open source
402 MCP FAQ
Is 402 MCP free?
Yes. 402 MCP is open source, so you can use and self-host it for free.
How do I add 402 MCP to Claude Code?
Run this command in your terminal: claude mcp add 402-mcp --env NWC_URI='<NWC_URI>' -- npx -y 402-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.