NWC MCP Server logo

NWC MCP Server

by getalby

Connect your Bitcoin Lightning wallet to Large Language Models (LLMs) using Nostr Wallet Connect (NWC). This server utilizes the official MCP TypeScript SDK to facilitate the connection.

View on GitHub

Last updated: N/A

What is NWC MCP Server?

The NWC MCP Server is a tool that bridges the gap between Bitcoin Lightning wallets and Large Language Models (LLMs) using the Nostr Wallet Connect protocol. It allows LLMs to interact with Lightning wallets, enabling functionalities like payments and other wallet-related operations within LLM-powered applications.

How to use NWC MCP Server?

The server can be integrated into various platforms like Claude Desktop, Goose, Cline, and N8N. The README provides specific configuration instructions for each platform, involving setting up command-line extensions or community nodes with the correct environment variables, particularly the NWC connection string.

Key features of NWC MCP Server

  • Connects Lightning wallets to LLMs

  • Uses Nostr Wallet Connect (NWC) protocol

  • Integrates with various platforms (Claude, Goose, Cline, N8N)

  • Supports command-line interface

  • Uses the official MCP TypeScript SDK

Use cases of NWC MCP Server

  • Enabling LLMs to make Lightning payments

  • Integrating Lightning wallet functionality into AI assistants

  • Automating Bitcoin transactions through LLM commands

  • Creating AI-powered applications that utilize Bitcoin

  • Paid chat workflows

FAQ from NWC MCP Server

What is Nostr Wallet Connect (NWC)?

NWC is a protocol that allows applications to interact with Lightning wallets without needing direct access to the wallet's private keys.

What is an MCP server?

An MCP (Model Context Protocol) server facilitates communication and interaction between different models and systems, in this case, LLMs and Lightning wallets.

What is the NWC connection string?

The NWC connection string is a unique identifier that allows the MCP server to connect to your Lightning wallet. It should be kept secret.

What are the prerequisites for running the server from source?

You need Node.js 20+, Yarn, and a connection string from a Lightning wallet that supports NWC.

How do I find my NWC connection string?

The NWC connection string is provided by your Lightning wallet. Consult your wallet's documentation for instructions on how to obtain it.