Nwc MCP Server

MCP server for controlling a Lightning wallet using Nostr Wallet Connect

Remote serverstreamable-httpTypeScript

What is the Nwc MCP server?

If you already use Nwc, the nwc mcp server is the piece that lets your assistant work with it directly. MCP server for controlling a Lightning wallet using Nostr Wallet Connect.

What the server does

This repository has been deprecated in favor of Alby MCP, which includes all the NWC tools along with additional Lightning tools.

Installation

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • STDIO — The STDIO tool exposed by this server
  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — The Installation tool exposed by this server
  • Building — The Building tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: NWC_CONNECTION_STRING. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Node.js 20+ - Yarn - A connection string from a lightning wallet that supports NWC

Worth knowing first

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Nwc's toolset — STDIO, Prerequisites, Installation and 1 more — is a fair guide to whether it matches your workflow. It is maintained by getAlby; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
STDIOThe STDIO tool exposed by this server.
PrerequisitesThe Prerequisites tool exposed by this server.
InstallationThe Installation tool exposed by this server.
BuildingThe Building tool exposed by this server.

How to install the Nwc MCP server

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

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 20+ - Yarn - A connection string from a lightning wallet that supports NWC
VariableDescriptionRequired
NWC_CONNECTION_STRINGConfiguration value read at startup.Optional

Example prompts to try

  • Use Nwc to STDIO.
  • Use Nwc to Prerequisites.
  • Use Nwc to Installation.

Frequently asked questions

It connects Nwc to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (STDIO, Prerequisites, Installation, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Nwc directly.