Back to MCP directory
publicPublicdnsLocal runtime

lightning-tools-mcp-server

一个基于MCP协议的闪电网络工具服务器,提供闪电地址交互和常用工具功能,可与NWC服务器配合使用

article

README

🚀 闪电工具 MCP 服务器

闪电工具 MCP 服务器可实现与闪电地址的交互,还能将其他常见闪电工具与您的大语言模型(LLM)结合使用。若与 NWC MCP Server 配合使用,效果会更佳。该 MCP 服务器采用了官方的 MCP TypeScript SDK

🚀 快速开始

添加到 Claude Desktop

您需要将以下内容添加到 claude_desktop_config.json 文件中:

{
  "mcpServers": {
    "lightning-tools": {
      "command": "npx",
      "args": ["-y", "@getalby/lightning-tools-mcp-server"],
      "env": {}
    }
  }
}

添加到 Cline

请将以下内容复制并粘贴到一个 cline 提示中:

将以下内容添加到我的 MCP 服务器列表中:

"lightning-tools": {
  "command": "npx",
  "args": ["-y", "@getalby/lightning-tools-mcp-server"],
  "env": {
  },
  "disabled": false,
  "autoApprove": []
}

📦 安装指南

先决条件

  • Node.js 需 20+ 版本
  • 需安装 Yarn 包管理器

安装

yarn install

构建

yarn build

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

yarn inspect

支持的工具

您可以查看 tools 目录 中的内容。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client