Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Bewertungen und Benutzerkonten folgen in einem späteren Schritt.
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

402 MCP

von forgeswornVersion 3.15.2i★ –iLäuft auf deinem Computer
Name in der Registrydev.forgesworn/402-mcp

Installieren

Überblick

Beschreibung vom Entwickler (englisches Original)

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

Die drei Säulen von PopNx MCP

Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.

Was du damit machen kannst

Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.

  • Verbindung: Läuft auf deinem Computer
  • Transport: stdio
  • Kategorie: Sonstiges
  • Das musst du eintragen: NWC_URI

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

Bevor du installierst

  • Basischecks: 1 von 1 bestanden
  • Läuft auf deinem Computer mit den Rechten deines Benutzerkontos (Dateien, Netzwerk, Apps).
  • Das trägst du selbst ein: NWC_URI, MAX_AUTO_PAY_SATS

Als geheim markierte Werte sind Schlüssel zu deinem Konto. Gib sie nie weiter und füge sie nie in einen Chat ein.

Du brauchst

  • npmNode.js installiert (für den Befehl npx)

Welche App nutzt du?

Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.

Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein

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

Führe das in deinem Terminal aus

claude mcp add 402 --env NWC_URI=your-value --env MAX_AUTO_PAY_SATS=your-value -- npx -y 402-mcp

Trag die leeren Werte ein, bevor du ihn startest.

In Cursor öffnen

Oder kopier die Einstellungen selbst

In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen

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

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

In VS Code öffnen

Oder kopier die Einstellungen selbst

In .vscode/mcp.json in deinem Projekt einfügen

{
  "servers": {
    "402": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "402-mcp"
      ],
      "env": {
        "NWC_URI": "your-value",
        "MAX_AUTO_PAY_SATS": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.

Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.

Werte, die du selbst einträgst

  • NWC_URI geheim env
    Nostr Wallet Connect URI for autonomous Lightning payments
  • MAX_AUTO_PAY_SATS env
    Maximum sats to auto-pay per request

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 7. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde über die Domain forgesworn.dev bestätigt (die Registry prüft, wem die Domain gehört)

  • … Noch nicht geprüft

    Wird noch gepflegt

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • … Noch nicht geprüft

    Hat eine Lizenz

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Im Vergleich mit anderen in Sonstigesi

  • Mehr Sterne als 0 % der anderen 32558 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 6 % der anderen 32558 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 100 % der anderen 32558 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist 402 MCP sicher?

Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Das musst du eintragen: NWC_URI

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (3.15.2) kam vor 7 Monaten in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: Spec Driven Development, Remote Desktop Commander, FactLot

Alternativen

Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.

So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

Spec Driven Development

von formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

Läuft auf deinem Computer★ 440MITAktualisiert vor 14 Monaten
Installieren

Remote Desktop Commander

von desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

Läuft in der Cloud★ 211Aktualisiert gestern
Installieren

FactLot

von 9mp96ygnbk-alt

Cited CRE facts and deterministic calculators for agents: rent, CAM, debt sizing, IRR, parcel IDs.

Computer oder CloudAktualisiert heute
Installieren

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

402-mcp

Nostr: npub1mgvlrnf5hm9yf0n5mf9nqmvarhvxkc6remu5ec3vf8r0txqkuk7su0e7q2

L402 client MCP that gives AI agents economic agency. Discover, pay for, and consume Lightning and ecash payment-gated APIs within limits you set: no human registration, no API keys, no middlemen.

  • Discover paid APIs on Nostr, no URLs needed upfront
  • Auto-pay with Lightning (NWC), Cashu ecash, LNURLcash bearer notes, or human QR fallback
  • Credentials cached and encrypted at rest (AES-256-GCM)
  • Works with any L402 server: toll-booth, Aperture, or any future implementation

Quick start

There is no install step: npx fetches 402-mcp when your MCP client first starts it. Running npx 402-mcp by hand only starts a stdio server that waits for a client on standard input (stop it with Ctrl+C), so do that to check it launches, not to use it.

1. Connect it to your MCP client

Claude Code:

claude mcp add 402-mcp -- npx 402-mcp

Claude Desktop or Cursor, in the MCP configuration file:

{

"mcpServers": { "402-mcp": { "command": "npx", "args": ["402-mcp"] } } }

2. Try it

Ask Claude: *"Search for paid joke APIs using l402-search"*, no wallet needed, just discovery.

3. Pay for calls (optional): connect an NWC wallet

402-mcp reads the Nostr Wallet Connect URI from a private file, never from an environment variable or a command line. Create the file with owner-only permissions first, then paste the URI into it with an editor so it stays out of your shell history:

mkdir -p ~/.402-mcp

touch ~/.402-mcp/wallet.nwc chmod 600 ~/.402-mcp/wallet.nwc

open ~/.402-mcp/wallet.nwc in an editor, paste the URI on one line, save

The URI comes from your wallet service and looks like this, with your own values in place of the placeholders:

nostr+walletconnect://<wallet-pubkey-hex>?relay=<wss-relay-url>&secret=<secret-hex>

It needs a 64-character hex wallet pubkey, one to eight relay values, one 64-character hex secret, and may carry lud16; any other parameter is rejected. The file must be a regular, non-empty file under 8 KiB, and on macOS and Linux it is refused unless group and other have no permissions (chmod 600). Create the connection with pay_invoice permission and a spending budget (lookup_invoice as well lets l402-reconcile ask the wallet about unknown outcomes). The wallet must support NIP-44 v2 encryption.

Then register 402-mcp with the absolute path ($HOME expands in your shell when you run the command):

claude mcp remove 402-mcp

claude mcp add 402-mcp -e NWC_URI_FILE="$HOME/.402-mcp/wallet.nwc" -e MAX_AUTO_PAY_SATS=1000 -- npx 402-mcp

For Claude Desktop or Cursor, add an env block to the same server entry. JSON does not expand ~ or $HOME, so write out the absolute path of the file you created:

{

"mcpServers": { "402-mcp": { "command": "npx", "args": ["402-mcp"], "env": { "NWC_URI_FILE": "/absolute/path/to/.402-mcp/wallet.nwc", "MAX_AUTO_PAY_SATS": "1000" } } } }

A raw NWC_URI variable is refused at startup. For Cashu, LNURLcash or no wallet at all, and a first paid call, see the full quickstart guide.

Requires Node.js 22.4 or newer.

How it works

graph LR

A["1. l402-config()"] --> B["2. l402-discover(url)"] B --> C["3. Agent reasons about pricing"] C --> D["4. l402-buy-credits() or l402-fetch(autoPay)"] E["5. l402-fetch(url) with stored credential"] D --> E E --> F["6. Data returned

  • balance cached"]

Example session:

Agent: "I need routing data from routing.example.com"
  1. l402-config() -> nwcConfigured: true, maxAutoPaySats: 1000
  1. l402-discover("https://routing.example.com/api/route") -> 10 sats/request, toll-booth detected, tiers available
  1. Agent reasons: "I need ~20 requests. The 500-sat tier gives 555 credits. Better value."
  1. l402-buy-credits(url, amountSats=500) -> Paid 500 sats, received 555 credits
  1. l402-fetch("https://routing.example.com/api/route?from=...&to=...") -> 200 OK, route data, 545 credits remaining

Step 5 needs no autoPay: step 4 stored a credential for that server and l402-fetch sends it. Without a stored credential, l402-fetch pays nothing unless autoPay: true is set; it returns the price and a paymentHash instead (see Spending limits).

For detailed architecture and payment flow diagrams, see docs/architecture.md.

Configuration

VariableDefaultDescription
NWC_URI_FILE-Path to a private 0600 file containing the NWC bearer URI
CASHU_TOKENS-Path to Cashu token store file. Must be within your home directory
LNURLCASH_NOTES-Path to LNURLcash bearer note store file (LUD-25). Must be within your home directory
MAX_AUTO_PAY_SATS1000Most a single automatic payment may cost. Anything dearer is not paid; the challenge goes back to the agent. 0 disables auto-pay
MAX_SPEND_PER_MINUTE_SATS10000Automatic spend allowed in any rolling 60 seconds. 0 blocks all auto-pay. At the defaults the daily cap below binds first (see Spending limits)
MAX_SPEND_PER_DAY_SATS5000Automatic spend allowed in any rolling 24 hours, kept in ~/.402-mcp/spend-ledger.json so a restart does not reset it. 0 blocks all auto-pay
CREDENTIAL_STORE~/.402-mcp/credentials.jsonPersistent macaroon/credential storage. Must be within your home directory
TRANSPORTstdioTransport mode: stdio or http
PORT3402HTTP server port (when TRANSPORT=http)
BIND_ADDRESS127.0.0.1HTTP bind address
HTTP_AUTH_TOKEN_FILE-Private 0600 file holding the bearer token HTTP clients must send. Required when TRANSPORT=http
HTTP_ALLOWED_HOSTS-Extra Host header values the HTTP transport accepts (comma-separated), such as a reverse proxy's name
CORS_ORIGINdisabledCORS origin for the HTTP transport (* or one origin). * logs a warning: any website could then call the server
TRANSPORT_PREFERENCEonion,hns,https,httpPreferred transport order for multi-URL services (comma-separated)
TOR_PROXY-SOCKS5 proxy for .onion addresses only (e.g. socks5h://127.0.0.1:9050)
SOCKS_PROXY-SOCKS5 proxy for every paid-API request (e.g. Tor at socks5h://127.0.0.1:9050). Set this or TOR_PROXY, not both
HNS_GATEWAY_URLhttps://query.hdns.io/DNS-over-HTTPS resolver used for Handshake names. Any host name that ordinary DNS cannot find is looked up here
HUMAN_PAY_TIMEOUT_S600How long the human payer polls the server for settlement, in seconds, when there is no payment page to poll
HUMAN_PAY_POLL_S3First polling interval for the human payer, in seconds. It backs off to 30
FETCH_TIMEOUT_MS30000Timeout for each outbound HTTP request
FETCH_MAX_RETRIES2Retries for non-mutating requests. Money-mutating POSTs are never retried
FETCH_MAX_RESPONSE_BYTES10485760Largest response body accepted (10 MiB)
SSRF_ALLOW_PRIVATEfalseAllow requests to private and loopback addresses. Local development only
ALLOW_INSECURE_TLSfalseAcknowledge the risk when NODE_TLS_REJECT_UNAUTHORIZED=0 is set. Without it (or SSRF_ALLOW_PRIVATE=true), 402-mcp refuses to start in that case

NWC_URI and HTTP_AUTH_TOKEN are refused at startup: both secrets are read only from their *_FILE variables. The spend caps, MAX_AUTO_PAY_SATS and FETCH_MAX_RETRIES must be non-negative whole numbers; the timeouts, the size limit and the poll interval at least 1; PORT 1 to 65535.

Transport selection and fallback

When a kind 31402 event advertises multiple URLs (one per transport), 402-mcp selects the best one based on your configuration:

  1. Preference first: URLs are tried in TRANSPORT_PREFERENCE order, onion,hns,https,http by default. Use onion, hns, https and http as the values; there is no value for anything else. A URL counts as hns when its TLD is .hns. One whose TLD is merely unfamiliar (.pub, .fyi) is more likely an ICANN name, so it has no value of its own: it counts as a guessed hns name and is tried just after whichever of hns and https comes later in your order, which is just after https by default. If you leave hns out of TRANSPORT_PREFERENCE, such URLs go last.
  2. Capability filter: .onion URLs are skipped unless TOR_PROXY or SOCKS_PROXY is set, so without a proxy the default order starts at HNS and clearnet.
  3. Availability fallback: if a transport is unreachable (connection refused, timeout), the next URL is tried.

Services can announce multiple endpoints for the same service (same pricing, same macaroon key) on different transports. This is purely for censorship resistance; you do not need to re-authenticate when switching transports. .onion endpoints need TOR_PROXY or SOCKS_PROXY. Handshake endpoints need no configuration, because HNS_GATEWAY_URL has a default, except under SOCKS_PROXY, which switches Handshake lookups off (see Tor and SOCKS5).

Credentials across transports. When l402-fetch is given a service's pubkey (from l402-search), it stores and looks up the credential under that pubkey, so one purchase serves every transport URL passed in urls. Without a pubkey the credential is keyed by the request's origin. Either way the credential records the origins it was bought through and is sent only to those, whatever pubkey a later request names. A macaroon bought through a Tor hidden service therefore works on the clearnet URL when both were in urls at purchase, and is never sent to any other host.

Tor and SOCKS5
  • `TOR_PROXY` sends .onion requests through the proxy. Everything else connects directly.
  • `SOCKS_PROXY` sends every request to a paid API through the proxy, including redirects. Host names are resolved by the proxy, never by this machine, so a Tor proxy hides both your IP and the names you look up. The SSRF guard still refuses private IP literals and local names such as localhost; it cannot see what a name resolves to on the far side, which Tor exits refuse for private ranges anyway.

Neither setting covers wallet or discovery traffic: NWC relays, Cashu and LNURLcash mints, and the Nostr relays l402-search queries still connect directly. Handshake lookups are switched off under SOCKS_PROXY, because the DNS-over-HTTPS query would go around the proxy.

SOCKS5 support comes from undici's Socks5ProxyAgent, which Node marks experimental; expect one ExperimentalWarning on stderr when a proxy is configured.

Tools

Core L402 (any server)
ToolDescription
l402-configIntrospect payment capabilities (wallets, limits, credential count)
l402-discoverProbe an endpoint to discover pricing without paying

| l402-fetch-preview | Show what an endpoint costs withou

Nur der Anfang wird gezeigt; den Rest findest du im Repo

PopNx fragen