Show HN: NostrPulse – Bitcoin HTTP 402 (L402 and Cashu) MCP Server for AI Agents NostrPulse released an open-source Model Context Protocol (MCP) server, distributed as the npm package nostrpulse-mcp, that gives AI agents Bitcoin payment rails and anti-Sybil trust scoring over Nostr, Cashu eCash (NIP-61 NutZaps) and Lightning. The server exposes tools including check_trust_score, pay_cashu_nutzap, request_nip90_job, pay_lightning_nwc and audit_cashu_mint, and its TypeScript SDK lets developers set spending caps such as maxDailySats: 5000 and minTrustScore: 65 and call a Bitcoin-native HTTP 402 paywall engine via fetch402. The project targets clients including Claude Desktop, Cursor, Windsurf, LangChain and the Vercel AI SDK, and is pitched as a decentralized alternative to Stripe settlement and Stripe Radar fraud protection for machine-to-machine payments. The Decentralized Stripe & Radar for Autonomous AI Agents via Nostr, Cashu eCash NIP-61 , and Model Context Protocol MCP . NostrPulse is an open-source payment and sovereign trust layer for autonomous AI agents, built on top of the Freedom Tech Stack Nostr + Bitcoin Lightning + Cashu Chaumian eCash + Model Context Protocol . It provides Stripe-like settlement M2M micro-payments via NIP-61 NutZaps and Stripe Radar-grade anti-Sybil protection Web-of-Trust graph distance + verifiable Economic Stake for Cursor, Claude Desktop, and autonomous LLMs. Explore Live Explorer » https://nostrpulse.vercel.app/ • AI Agent Interface https://nostrpulse.vercel.app/agent • HRF Grant Roadmap & Verification https://github.com/PHONGUIT22/nostrpulse-full/blob/main/docs/HRF GRANT ROADMAP.md • Bounty Board https://nostrpulse.vercel.app/bounties • Methodology https://nostrpulse.vercel.app/about • Relay Telemetry https://nostrpulse.vercel.app/relays • Versus Engine NostrPulse natively exports an industry-standard Model Context Protocol MCP server over Stdio JSON-RPC. Any AI client Claude Desktop, Cursor, Windsurf, LangChain, Vercel AI SDK can instantly tap into decentralized reputation, machine-to-machine micropayments, and distributed compute without API keys or custodial accounts. Paste this configuration directly into your claude desktop config.json or .cursor/mcp.json : { "mcpServers": { "nostrpulse": { "command": "npx", "args": "-y", "nostrpulse-mcp" } } } - Claude Desktop Config File Locations: - macOS: ~/Library/Application Support/Claude/claude desktop config.json - Windows: %APPDATA%\Claude\claude desktop config.json - Cursor IDE: Save to .cursor/mcp.json in your project root, or add under Cursor Settings Features MCP . For TypeScript/Node.js AI developers who want autonomous eCash/Lightning rails with built-in anti-Sybil radar and spending limits without managing Nostr NIPs or Cashu NUTs directly: js import { NostrPulseAgent } from "nostrpulse-mcp/sdk"; const wallet = new NostrPulseAgent { maxDailySats: 5000, minTrustScore: 65 } ; await wallet.deposit "cashuAeyJ0b2tlbiI6..." ; const receipt = await wallet.pay { to: "npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6", amountSats: 21, memo: "AI task settlement" } ; // Bitcoin-native HTTP 402 Paywall Engine L402 Lightning + Cashu NUT-24 X-Cashu const paidApi = await wallet.fetch402 "https://api.example.com/paid-endpoint" ; Verify tools, examine schemas, and test prompts in the browser via the official Model Context Protocol Inspector: npx @modelcontextprotocol/inspector npx -y nostrpulse-mcp | Tool Name | Type | Description | |---|---|---| | check trust score | Radar / Anti-Sybil | Anti-fraud radar for AI agents. Evaluates Web-of-Trust Ring-1 22 Root Anchors , transitive hops, and Sybil-filtered Economic Stake sats before interacting or paying. | | pay cashu nutzap | Payment Rails eCash | Instant machine-to-machine M2M settlement with Chaumian eCash NIP-61 NutZap wrapped in metadata-private NIP-59 Gift Wrap and NIP-44 encryption. Wrapped with pre-flight spending guardrails. | | request nip90 job | Decentralized Compute | Dispatches compute and data-processing tasks to decentralized NIP-90 Data Vending Machines DVMs across Nostr relays with local SQLite cache fallback. | | pay lightning nwc | Payment Rails Lightning | Settle BOLT-11 Lightning invoices directly through an autonomous node via NIP-47 Nostr Wallet Connect Alby Hub, Phoenixd, Umbrel with spending guardrails. | | pay with nwc | Payment Rails Alias | Direct NWC payment executor alias for pay lightning nwc . | | audit cashu mint | Mint Radar | Audit and evaluate counterparty risk of a Cashu eCash Mint using Web-of-Trust graph distance, NIP-05 sovereign domain validation, and admin reputation. | | route cashu mint | Mint Mesh | Dynamically discover and route to the highest-trust, lowest-latency Cashu Mint from the WoT-Gated Dynamic Mint Mesh. | | get agent identity | Zero-Config Identity | Retrieve active autonomous AI agent cryptographic public identity pubkey , npub , keystore source, ephemeral status . Automatically bootstraps local keys. | | get spending guardrails | Budget Gatekeeper | Query current AI agent spending guardrails, daily budget 500 sats rolling , 24h satoshis spent, remaining allowance, and per-tx limits 50 sats . | | get agent telemetry | Telemetry & Audit | Inspect autonomous agent spending metrics, rolling 24h budget allowance, blocked Sybil threats, and Stripe Radar-grade recent telemetry events. | | fetch with 402 payment | HTTP 402 Paywall | Fetch external REST APIs and transparently settle HTTP 402 Payment Required paywalls via Cashu NUT-24 X-Cashu or Lightning L402 with SSRF and budget guardrails. | For edge devices, local SLMs e.g., Qwen 2.5 0.5B/1.5B via Ollama , or cost-sensitive agent loops, NostrPulse supports context-optimized profiles that reduce prompt overhead from ~2,200 tokens down to ~380 tokens : Launch with minimal profile 3 core tools: check trust score, pay cashu nutzap, get spending guardrails npx -y nostrpulse-mcp --profile=minimal Or via environment variable NOSTRPULSE PROFILE=minimal npx -y nostrpulse-mcp | Profile | Active Tools | Token Footprint | Recommended Use Case | |---|---|---|---| | minimal | check trust score , pay cashu nutzap , get spending guardrails | ~380 tokens | Local SLMs 0.5B – 1.5B , edge devices, low-cost loops | | radar | check trust score , audit cashu mint | ~240 tokens | Read-only anti-Sybil screening & Mint risk verification | | payment | pay cashu nutzap , pay lightning nwc , get spending guardrails | ~420 tokens | Payment-only execution daemons & bots | | full | All 10 NostrPulse MCP tools | ~2,200 tokens | Flagship LLMs Claude 3.7/Opus, GPT-4o, Gemini 2.5 | NostrPulse includes a reference implementation for autonomous agent-to-agent decentralized negotiation and micro-commerce scripts/test-mesh-agent.ts : Agent A: Requester / Buyer Agent B: Worker / Seller │ │ ├──► 1. Dispatch NIP-90 Job 'zap-analytics' ──►│ │ │ │ 2. Audit Requester WoT Anti-Sybil Score ◄───┤ Requires Trust Score 40 │ check trust score │ │ │ │◄── 3. Acknowledge & Deliver Computation ───────┤ │ │ ├──► 4. Inspect Budget Guardrails assert 24h │ │ │ ├──► 5. Settle Cashu NutZap Adaptive Fallback ─►│ - Zero-Cloud Local Inference: Run the showcase locally using Ollama qwen2.5-coder:1.5b without cloud API keys: npm exec tsx scripts/test-mesh-agent.ts --ollama - Adaptive Spending Fallback: If a requested micro-payment exceeds the rolling 24-hour spending limit, the agent automatically adapts down to the remaining safe allowance to settle minimum fees without crashing or overspending. Open agentic systems and decentralized protocols eliminate platform lock-in, but introduce two critical vulnerabilities: 1. Agent Impersonation & Sybil Floods: Cryptographic keypairs npub cost $0 to generate, making spam bots, clone accounts, and wash-trading rampant. 2. Payment Fragility & KYC Lockouts: Legacy banking rails Stripe/PayPal freeze autonomous agents. Synchronous Lightning Zaps NIP-57 fail when receiver nodes are offline or lack inbound liquidity channels. | Vector | Legacy Web2 / Stripe | NostrPulse Freedom Tech Stack | |---|---|---| | Agent Identity | API keys, credit cards, KYC bans | Cryptographic Sovereign Keypairs NIP-01 / NIP-19 | | Anti-Fraud Radar | Centralized black-box heuristic rules | Web-of-Trust Ring-1 22 Anchors + Anti-Sybil Sats Stake | | M2M Settlement | 30% platform cuts, merchant holds | Chaumian eCash NIP-61 NutZaps : Zero-fee, instant, private | | Offline Delivery | Synchronous connection required | Asynchronous NutZaps via NIP-59 Gift Wrap & Relays | | Compute Delegation | Proprietary cloud APIs | NIP-90 Data Vending Machines Open Compute Marketplace | | AI Protocol | Custom vendor REST wrappers | Stdio JSON-RPC via Model Context Protocol nostrpulse-mcp | | 1. Identity & Discovery | 2. Reputation & Anti-Sybil | 3. Multi-Rail Value Rails | 4. AI MCP & NIP-90 DVM | | • NIP-01: P2P WebSocket relays• NIP-05: Cryptographic DNS• NIP-07: Signer Alby, nos2x • NIP-65: Relay gossip mesh | • 5-Pillar Score 0–100 pts • 22 Root Anchors WoT graph• Anti-Sybil Damping Guard • Mint Reputation Radar • Dual-bar Economic Stake | • NIP-47: NWC Lightning Rail• NIP-61: Cashu NutZaps• NIP-57: Lightning Zaps• NIP-59: Gift Wrap Privacy• NUT-06: Dynamic Mint Mesh | • MCP Stdio: JSON-RPC server• npm: nostrpulse-mcp • NIP-90: DVM Worker Daemon• Bounties: WoT-gated tasks | NostrPulse calculates an objective 0–100 point reputation index directly from open relay data and root anchor graph topology: | Pillar | Verification Signal | Max Points | |---|---|---| | Pillar 1 | NIP-05 Cryptographic DNS Binding: Validates .well-known/nostr.json against the public key Bonus for sovereign domains . | 25 pts | | Pillar 2 | Web-of-Trust WoT Ring-1 Proximity: Evaluates graph distance to 22 verified protocol seed keys jack , fiatjaf , jb55 , calle , odell , etc. with local SQLite fallback. | 25 pts | | Pillar 3 | Sats-Weighted In-Degree Economic Stake : Analyzes verified Zap receipts and filters out self-zaps and bot clones. Visualized with a dual progress bar. | 20 pts | | Pillar 4 | Keypair Longevity & Multi-Relay Depth: Assesses keypair maturity and replication count across global relays. | 15 pts | | Pillar 5 | Metadata Richness & Authenticity: Verifies avatar, bio, and external identity endpoints. | 15 pts | Important Anti-Sybil Damping Guard: Accounts lacking verified NIP-05 DNS signatures AND isolated from the Web-of-Trust graph are strictly capped at 44 points Unverified / Potential Bot . This permanently neutralizes automated bot swarms. A unified micro-transaction interface switching effortlessly between real-time Lightning and offline Chaumian eCash: 1-Click In-App Minting & NutZap Pipeline User/Agent selects Sats ──► Request NUT-04 Quote ──► Settle via WebLN/QR ──► Poll Mint & Claim Proofs ──► Encrypt NIP-59/44 ──► Broadcast Kind 9321 - 100% Asynchronous NutZaps NIP-61 : Senders deliver bearer eCash tokens to creators even when the recipient's Lightning node is offline. - NIP-59 Gift Wrap Envelope Privacy: Wraps NutZaps with random ephemeral keypairs to conceal sender, recipient, and payload metadata from public relay scrapers. - Front-Running Defense NIP-44 v2 Encryption : Bearer tokens inside Kind 9321 events are encrypted with the recipient's public key. - Native NUT-00 V4 CBOR Decoding: Zero-dependency binary parser compliant with RFC 8949, reading both legacy cashuA JSON Base64 and next-gen cashuB CBOR tokens. - Dynamic Mint Router: Switch between Minibits , Macadamia , Cashu Testnut , or private self-hosted Mint endpoints. NostrPulse integrates a high-performance, zero-memory-leak client for NIP-47 Nostr Wallet Connect , allowing AI agents to pay BOLT-11 Lightning invoices directly through self-hosted autonomous nodes Alby Hub, Phoenixd, Umbrel, LNBits : NIP-47 Direct Lightning Settlement Pipeline Agent receives Invoice ──► Parse NWC URI ──► Encrypt Payload NIP-04/44 ──► Publish Kind 23194 ──► Listen Kind 23195 Tagged by e ──► Extract Preimage & Fees ──► Destroy Pool & Subscriptions - Standardized Connection URIs: Seamless parsing and generation of nostr+walletconnect://