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( NWC或NIP-47 )将比特币闪电钱包连接到您的 LLM。
此 MCP 服务器使用官方 MCP TypeScript SDK
快速入门
添加到 Claude 桌面
将其添加到您的 claude_desktop_config.json 中:
添加到鹅
- 类型
goose configure
- 添加扩展 -> 命令行扩展
- 称之为
nwc
- 应该运行什么命令:
npx -y @getalby/nwc-mcp-server
- 超时:30
- 描述:无
- 环境变量:是
- 环境变量名称:
NWC_CONNECTION_STRING
- 环境变量值:
nostr+walletconnect://...
(此处为你的 NWC 连接密钥)
添加到克莱恩
复制以下内容并将其粘贴到命令行提示符中。它会提示您更新连接字符串。
添加到 N8N(社区节点)
目前,此 MCP 服务器仅通过命令行(STDIO)工作。
您可以安装n8n-nodes-mcp社区节点并启用工具运行 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 的闪电钱包的连接字符串
安装
建筑
添加您的 NWC 连接
将.env.example
复制到.env
并更新连接字符串
检查工具(无需 LLM 即可使用/测试)
yarn inspect
支持的工具
查看工具目录
You must be authenticated.
使用 Nostr Wallet Connect 将比特币闪电钱包连接到您的 LLM,从而实现 Claude 等语言模型中的支付功能。