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.

NWC MCP 服务器

使用 Nostr Wallet Connect( NWCNIP-47 )将比特币闪电钱包连接到您的 LLM。

此 MCP 服务器使用官方 MCP TypeScript SDK

快速入门

添加到 Claude 桌面

将其添加到您的 claude_desktop_config.json 中:

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

添加到鹅

  1. 类型goose configure
  2. 添加扩展 -> 命令行扩展
  3. 称之为nwc
  4. 应该运行什么命令: npx -y @getalby/nwc-mcp-server
  5. 超时:30
  6. 描述:无
  7. 环境变量:是
  8. 环境变量名称: NWC_CONNECTION_STRING
  9. 环境变量值: nostr+walletconnect://... (此处为你的 NWC 连接密钥)

添加到克莱恩

复制以下内容并将其粘贴到命令行提示符中。它会提示您更新连接字符串。

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": [] }

添加到 N8N(社区节点)

目前,此 MCP 服务器仅通过命令行(STDIO)工作。

您可以安装n8n-nodes-mcp社区节点并启用工具运行 n8n,例如

N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true npx n8n

创建一个空白工作流并添加一个 AI 代理节点。配置你的 LLM 模型并添加一个新工具“MCP 客户端”(旁边会有一个立方体,显示它是一个社区节点)。

通过添加选择命令行(STDIO)的凭证来配置 MCP 客户端。

命令: npx参数: -y @getalby/nwc-mcp-server环境NWC_CONNECTION_STRING=nostr+walletconnect://your_key_here (在文本编辑器中创建整行并粘贴,因为密码字段无法切换为纯文本)

请参阅N8N 付费聊天工作流程以获取完整示例

来自源

先决条件

  • Node.js 20+
  • 支持 NWC 的闪电钱包的连接字符串

安装

yarn install

建筑

yarn build

添加您的 NWC 连接

.env.example复制到.env并更新连接字符串

检查工具(无需 LLM 即可使用/测试)

yarn inspect

支持的工具

查看工具目录

You must be authenticated.

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

使用 Nostr Wallet Connect 将比特币闪电钱包连接到您的 LLM,从而实现 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