
用于Lightning Network支付的AI代理工具包(技能+MCP服务器)。运行节点,支付API(L402),托管付费终端,管理凭证。
概览
AI代理可以阅读文档、编写代码并协调复杂工作流程,但他们无法轻松支付费用。传统的支付轨道需要政府身份证、银行账户和手动注册,这些都不适用于自主软件。Lightning Agent Tools通过为代理提供对Lightning Network的原生访问权限,弥合了这一差距,Lightning Network是一种去中心化支付协议,能够实现即时、大量交易且无需身份要求。 该工具包包含七项可组合技能和一个MCP服务器。它们共同允许代理运行Lightning节点,使用L402协议支付网络资源费用,托管自己的付费API端点,管理作用域凭证,并通过模型上下文协议查询节点状态。这些技能适用于任何能够执行shell命令的代理框架:Claude代码、Codex或你自己的工具。MCP服务器遵循模型上下文协议标准,并支持任何兼容客户端。
概述(AI 翻译)
AI代理可以阅读文档、编写代码,并协调复杂的工作流程, 但他们无法轻易支付各种费用。传统的支付轨道要求 政府身份证、银行账户和手动注册,这些都不适用 自主软件。闪电代理工具通过提供代理来弥合这一空白 原生接入闪电网络,一个 去中心化支付协议能够即时、高流量交易,且 无需身份要求。
该工具包包含七个可组合技能和一个MCP服务器。它们合在一起 让代理运行闪电节点,利用 L402协议, 托管自己的付费API端点,管理作用域凭证,并查询节点状态 通过模型上下文协议。这些技能适用于任何代理框架 能够执行 shell 命令的 Claude Code, Codex,或者你自己的工具。MCP服务器 遵循模型上下文协议(Model Context Protocol)标准 并且可以与任何兼容的客户端兼容。安全模型默认为远程 签名者架构将私钥保存在另一台机器上,远离 代理的运行环境。
安装
MCP 服务器(零安装,任意 MCP 客户端):
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Lightning Agent Tools
AI agents can read documentation, write code, and orchestrate complex workflows, but they can’t easily pay for things. Traditional payment rails require government IDs, bank accounts, and manual enrollment, none of which work for autonomous software. Lightning Agent Tools bridges this gap by giving agents native access to the Lightning Network, a decentralized payment protocol capable of instant, high-volume transactions with no identity requirements.
The toolkit consists of seven composable skills and an MCP server. Together they let an agent run a Lightning node, pay for resources on the web using the L402 protocol, host its own paid API endpoints, manage scoped credentials, and query node state through the Model Context Protocol. The skills work with any agent framework that can execute shell commands: Claude Code, Codex, or your own tooling. The MCP server follows the Model Context Protocol standard and works with any compatible client. The security model defaults to a remote signer architecture that keeps private keys on a separate machine, away from the agent’s runtime environment.
Install
MCP server (zero-install, any MCP client):
claude mcp add --transport stdio lnc -- npx -y @lightninglabs/lightning-mcp-server
Full plugin (all 7 skills via Claude Code):
claude plugin marketplace add lightninglabs/lightning-agent-tools
claude plugin install lightning-agent-tools@lightninglabs
From source (requires Go 1.24+):
git clone https://github.com/lightninglabs/lightning-agent-tools.git
cd lightning-agent-tools
skills/lightning-mcp-server/scripts/install.sh
skills/lightning-mcp-server/scripts/configure.sh --production
skills/lightning-mcp-server/scripts/setup-claude-config.sh --scope project
See Quick Start below for detailed setup options including environment variables, regtest mode, and the full commerce stack.
How It Works
graph TD
CC["Your Agent"] --> Skills
subgraph Skills["Skills"]
lnd["lndrun a Lightning node"]
lsm["lightning-security-moduleremote signer"]
mb["macaroon-bakeryscoped credentials"]
lg["lngetL402 HTTP client"]
ap["apertureL402 reverse proxy"]
mcp["lightning-mcp-serverMCP server"]
com["commercebuyer/seller workflows"]
end
subgraph Runtime["Daemons & Tools"]
lnd_d["lnd daemon"]
signer_d["lnd signer"]
aperture_d["aperture proxy"]
lnget_d["lnget CLI"]
mcp_d["lightning-mcp-server"]
end
lnd --> lnd_d
lsm --> signer_d
lg --> lnget_d
ap --> aperture_d
mcp --> mcp_d
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →