2026-11-26 15:49 UTC

NostrPulse publishes MCP server for agent payments

state: seedheat: lowuncertainty: mediumrelevance: mediumagent-payments mcp bitcoinhacphongNostrPulse

What is this?

NostrPulse is an MIT-licensed project by GitHub user hacphong, presented in a Show HN post on November 20, 2026. Its repository describes an MCP server and SDK that let compatible AI clients make payments using Bitcoin Lightning and Cashu, including handling HTTP 402 payment-required responses, with configurable transaction and daily spending limits and counterparty trust checks. The project links a published npm package and provides setup instructions and test scripts. These are project-reported capabilities; the supplied evidence does not establish independent verification, production use, or adoption. The repository is broad in scope, and its roadmap lists a later standalone SDK phase, so not every described component’s release status is clear.

Why it matters

If it works as described, NostrPulse gives MCP-connected agents a way to pay for metered APIs or services without routing every purchase through a conventional account or human-operated checkout. Spending caps and trust checks address real risks of autonomous transactions, but do not establish that the safeguards are robust or that the system is being used in practice. It is a small project in an emerging agent-payments space, rather than evidence of a market shift.

Current assessment

New: NostrPulse’s maintainer announced the project on Show HN on November 20, 2026; the linked GitHub repository describes an open-source MCP server/SDK with Lightning NWC, Cashu payments, and an HTTP 402 payment flow. It documents defaults of 50 sats per transaction and 500 sats per rolling 24 hours, plus trust-score checks, and gives installation instructions using `npx -y nostrpulse-mcp`. The repository also describes agent identity, telemetry, mint routing, and decentralized task features; these should be treated as project claims, not independently validated capabilities. The linked project page and a second GitHub summary are the primary evidence, with no independent benchmark, user adoption, or real-world transaction evidence supplied. The search results show other MCP/HTTP-402 payment approaches, but do not independently verify NostrPulse or establish comparative performance. Significance is conditional: reliable agent payments could enable autonomous access to metered services and lower-friction machine-to-machine commerce; non-custodial payment rails and spending controls may broaden the options for developers outside conventional account-based payments. Security, wallet and mint risks, actual compatibility, and safe handling of agent credentials remain important uncertainties.

Measured heat

now 0 pts/hpeak 6 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 149h
points/hour across evidence Β· reading as of 2026-11-27 02:23:58.509736+11:00 Β· deterministic, not a model opinion

How the heat travelled

11-20 10:21 (minted)⭐ origin echo-reconstructedThe project presents an MCP server and SDK for agent payments using Lightning, Cashu, and HTTP 402 payment flows, with spending limits and t
hacphong on github (echo) Β· attributed from hn.story.50572502 Β· published time unknown
β€”
11-20 10:01first on hacker news Β· published Β· lag ?Show HN: NostrPulse – Bitcoin HTTP 402 (L402 and Cashu) MCP Server for AI Agents
hacphong
β€”
11-20 10:01amplified on hacker news πŸ‘‘hn.story.50572502
hacphong
peak 3 Β· 0 comments Β· 98% of case engagement
11-20 10:20our radar first saw it Β· lag ?discovery anchor: hn.story.50572502β€”
pace: p31 vs 2105 stories at the 96h mark (now 149h old) β€” ahead of a100-inference-hillclimb (2.0x), behind abmaze-protein-fitness-agent-benchmark (0.7x)

Evidence (2) β€” ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: NostrPulse – Bitcoin HTTP 402 (L402 and Cashu) MCP Server for AI Agents
Retrieved article excerpt

Open article Β· Retrieved 2026-11-20T10:21:33.403226+00:00

# ⚑ NostrPulse (`nostrpulse-mcp`)

### Autonomous Micropayments (Cashu eCash & NIP-61) and Guardrails for AI Agents

**The Decentralized Stripe & Radar for Autonomous AI Agents via Nostr, Cashu eCash (NIP-61), and Model Context Protocol (MCP).**

[npm version](https://www.npmjs.com/package/nostrpulse-mcp)
[Release: v1.4.0](https://github.com/PHONGUIT22/nostrpulse-full/releases)
[MCP Registry](https://registry.modelcontextprotocol.io/?q=nostrpulse)
[MCP Stdio](https://modelcontextprotocol.io)
[Listed on awesome-remote-mcp-servers](https://github.com/Appnova-EU-OU/awesome-remote-mcp-servers)
[FreeMCP Registry](https://freemcp.space/np79857/nostrpulse-full)
[License: MIT](https://opensource.org/licenses/MIT)
[Track](https://bitshala.org)
[Nostr Protocol](https://github.com/nostr-protocol/nips/blob/master/47.md)
[Cashu Protocol](https://cashu.space)
[Next.js 16](https://nextjs.org/)

[NostrPulse Autonomous Agent Mesh Showcase](https://github.com/PHONGUIT22/nostrpulse-full/blob/main/assets/Demo.gif)

  

**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**](https://nostrpulse.vercel.app/compare)

---

## πŸ€– MCP Server for AI Agents (Stripe for AI)

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.

### 1. Zero-Code Quickstart (Cursor & Claude Desktop)

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*.

### ⚑ 3-Line SDK Quickstart (Unified Agent Wallet)

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:

```
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");
```

### 2. Interactive Testing via MCP Inspector

Verify tools, examine schemas, and test prompts in the browser via the official Model Context Protocol Inspector:

```
npx @modelcontextprotocol/inspector npx -y nostrpulse-mcp
```

### 3. Core MCP Tools Lookup Table

| 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. |

### 4. Profiles for Small Language Models (SLMs: 500M – 1.5B)

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) |



---

### 5. Autonomous Agent-to-Agent (A2A) Collaborative Mesh

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.

---

## 🌐 The Problem & The Freedom Solution

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.

### Paradigm Shift

| 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`)** |



---

## πŸ›οΈ Multi-Tier System Pipeline

|  |  |  |  |
| --- | --- | --- | --- |
| **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 |



---

## πŸš€ Key Innovations & Engineering Highlights

### 1. πŸ›‘οΈ 5-Pillar Cryptographic Trust Score & Anti-Sybil Visualizer

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 Rich
hacphong30
🟧 echo.github ⭐The project presents an MCP server and SDK for agent payments using Lightning, Cashu, and HTTP 402 payment flows, with spending limits and thacphongβ€”β€”

Interpretation history

Decision trace