Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Beschreibung vom Entwickler (englisches Original)
AI agents discover, pay for, and consume any Lightning-gated API autonomously
Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.
Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.
Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.
NWC_URI, MAX_AUTO_PAY_SATSAls geheim markierte Werte sind Schlüssel zu deinem Konto. Gib sie nie weiter und füge sie nie in einen Chat ein.
Du brauchst
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-mcpTrag die leeren Werte ein, bevor du ihn startest.
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 .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.
MAX_AUTO_PAY_SATS envDiese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.
Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.
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
Der Registry-Name wurde über die Domain forgesworn.dev bestätigt (die Registry prüft, wem die Domain gehört)
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet
Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen
Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen
Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.
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.
Das musst du eintragen: NWC_URI
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).
Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (3.15.2) kam vor 7 Monaten in die Registry.
Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.
In derselben Kategorie: Spec Driven Development, Remote Desktop Commander, FactLot
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
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Cited CRE facts and deterministic calculators for agents: rent, CAM, debt sizing, IRR, parcel IDs.
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.
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.
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
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.
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
Example session:
Agent: "I need routing data from routing.example.com"
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.
| Variable | Default | Description |
|---|---|---|
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_SATS | 1000 | Most 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_SATS | 10000 | Automatic 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_SATS | 5000 | Automatic 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.json | Persistent macaroon/credential storage. Must be within your home directory |
TRANSPORT | stdio | Transport mode: stdio or http |
PORT | 3402 | HTTP server port (when TRANSPORT=http) |
BIND_ADDRESS | 127.0.0.1 | HTTP 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_ORIGIN | disabled | CORS origin for the HTTP transport (* or one origin). * logs a warning: any website could then call the server |
TRANSPORT_PREFERENCE | onion,hns,https,http | Preferred 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_URL | https://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_S | 600 | How long the human payer polls the server for settlement, in seconds, when there is no payment page to poll |
HUMAN_PAY_POLL_S | 3 | First polling interval for the human payer, in seconds. It backs off to 30 |
FETCH_TIMEOUT_MS | 30000 | Timeout for each outbound HTTP request |
FETCH_MAX_RETRIES | 2 | Retries for non-mutating requests. Money-mutating POSTs are never retried |
FETCH_MAX_RESPONSE_BYTES | 10485760 | Largest response body accepted (10 MiB) |
SSRF_ALLOW_PRIVATE | false | Allow requests to private and loopback addresses. Local development only |
ALLOW_INSECURE_TLS | false | Acknowledge 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.
When a kind 31402 event advertises multiple URLs (one per transport), 402-mcp selects the best one based on your configuration:
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..onion URLs are skipped unless TOR_PROXY or SOCKS_PROXY is set, so without a proxy the default order starts at HNS and clearnet.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.
.onion requests through the proxy. Everything else connects directly.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.
| Tool | Description |
|---|---|
l402-config | Introspect payment capabilities (wallets, limits, credential count) |
l402-discover | Probe 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