Tools · Agent-integration primitives

Alby & Nostr Wallet Connect (NWC)

A standard for controlling a Lightning wallet remotely — scoped, budgeted, and revocable — without ever handing over the keys.

software Alby Links verified 2026-06-02

What it is

Nostr Wallet Connect (NWC, NIP-47) is an open protocol that lets an application or agent control a Lightning wallet remotely — create invoices, send payments, check balances — without ever holding the wallet’s private keys. The wallet (which holds the keys and signs) and the app (which signs nothing) talk over Nostr relays. The agent holds a revocable, scoped connection string instead of a key, which drastically shrinks its attack surface.

Alby is the primary builder and promoter of the standard: the Alby browser extension, Alby Hub (a self-custodial node manager), a JavaScript SDK, and — most relevant for agents — the nwc-mcp-server, which exposes NWC payments to Claude, Cursor, or n8n as MCP tools.

When to use it

Quick start

Connect an MCP-capable agent to a wallet with Alby’s nwc-mcp-server: generate an NWC connection string from Alby Hub (or any NWC-compatible wallet) with a spending budget, then point the MCP server at it. The agent gets payment tools; the keys stay in the wallet.

Gotchas