NWC MCP Server

Official

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Connects with Alby's Lightning wallet infrastructure through the NWC protocol, as evidenced by the package name (@getalby/nwc-mcp-server) and focus on Lightning Network integration.

  • Enables interaction with the Bitcoin Lightning Network for payment processing, allowing AI agents to initiate transactions and manage lightning wallet operations via Nostr Wallet Connect (NWC).

  • Provides tools for Bitcoin Lightning Network operations, enabling payment processing and wallet management through the Nostr Wallet Connect protocol.

Servidor MCP de NWC

Conecte una billetera Lightning de Bitcoin a su LLM usando Nostr Wallet Connect ( NWC o NIP-47 ).

Este servidor MCP utiliza el SDK oficial de TypeScript de MCP

Inicio rápido

Añadir a Claude Desktop

Agregue esto a su claude_desktop_config.json:

{ "mcpServers": { "nwc": { "command": "npx", "args": ["-y", "@getalby/nwc-mcp-server"], "env": { "NWC_CONNECTION_STRING": "YOUR NWC CONNECTION STRING HERE" } } } }

Añadir a Goose

  1. Tipo goose configure
  2. Agregar extensión -> Extensión de línea de comandos
  3. Llámalo nwc
  4. ¿Qué comando se debe ejecutar?: npx -y @getalby/nwc-mcp-server
  5. Tiempo de espera: 30
  6. Descripción: no
  7. variables de entorno: sí
  8. nombre de la variable de entorno: NWC_CONNECTION_STRING
  9. Valor de la variable de entorno: nostr+walletconnect://... (su secreto de conexión NWC aquí)

Añadir a Cline

Copia lo siguiente y pégalo en el indicador de Cline. Debería pedirte que actualices la cadena de conexión.

Add the following to my MCP servers list: "nwc": { "command": "npx", "args": ["-y", "@getalby/nwc-mcp-server"], "env": { "NWC_CONNECTION_STRING": "nostr+walletconnect://..." }, "disabled": false, "autoApprove": [] }

Añadir a N8N (Nodo comunitario)

Actualmente este servidor MCP solo funciona mediante línea de comando (STDIO).

Puede instalar el nodo comunitario n8n-nodes-mcp y ejecutar n8n con herramientas habilitadas, por ejemplo

N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true npx n8n

Cree un flujo de trabajo en blanco y añada un nodo de agente de IA. Configure su modelo LLM y añada la nueva herramienta "Cliente MCP" (que tendrá un cubo junto a ella indicando que es un nodo de la comunidad).

Configure el cliente MCP agregando una credencial con la línea de comando (STDIO) seleccionada.

comando: npx argumentos: -y @getalby/nwc-mcp-server entornos NWC_CONNECTION_STRING=nostr+walletconnect://your_key_here (crea la línea completa en un editor de texto y pégala, ya que el campo de contraseña no se puede cambiar a texto sin formato)

Consulte el flujo de trabajo del chat pago de N8N para ver un ejemplo completo

De la fuente

Prerrequisitos

  • Node.js 20+
  • Hilo
  • Una cadena de conexión de una billetera Lightning que admite NWC

Instalación

yarn install

Edificio

yarn build

Añade tu conexión NWC

Copie .env.example a .env y actualice su cadena de conexión

Inspeccionar las herramientas (utilizarlas/probarlas sin un LLM)

yarn inspect

Herramientas compatibles

Ver el directorio de herramientas

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Conecta una billetera Bitcoin Lightning a tu LLM usando Nostr Wallet Connect, lo que habilita funcionalidades de pago dentro de modelos de lenguaje como Claude.

  1. Quick Start
    1. Add to Claude Desktop
    2. Add to Goose
    3. Add to Cline
    4. Add to N8N (Community Node)
  2. From Source
    1. Prerequisites
    2. Installation
    3. Building
    4. Add your NWC connection
    5. Inspect the tools (use/test without an LLM)
    6. Supported Tools
ID: 0xq1g0rw52