CLN-MCP
MCP server for Lightning Network
Documentation
Core Lightning MCP Server
A Rust-based gRPC server that provides a standardized interface to Core Lightning nodes. This server implements the MCP (Model Context Protocol) specification to enable control of the Core Lightning node using LLM.

Installation
Option 1: From Release (Recommended)
1. Download the appropriate binary for your platform from the latest release
2. Extract the archive:
# For Linux/macOS
tar -xzf cln-mcp-.tar.gz
# For Windows
# Use your preferred zip extractor3. Make the binary executable (Linux/macOS only):
chmod +x cln-mcpOption 2: From Source
Prerequisites
- Rust 1.80 or higher
- Protocol Buffers Compiler (protoc)
- Core Lightning (with gRPC enabled)
- MCP clients (Claude, Goose, etc.)
Protocol Buffers Compiler (protoc)
Ubuntu/Debian:
sudo apt-get update
sudo apt-get install -y protobuf-compilermacOS:
brew install protobufWindows:
choco install protocVerify installation:
protoc --version # Should show version 3.0.0 or higher1. Clone the repository:
git clone https://github.com/adi2011/cln-mcp.git
cd cln-mcp2. Build the project:
cargo build --releaseConfiguration
The server can be configured using command-line arguments:
cln-mcp [OPTIONS]
Options:
--certs-dir Path to certificates directory
--node-address Node address (default: https://localhost:9736)
--help Shows help messageTLS Certificate Setup
Add the `--grpc-port`(default: 9736) option while running CLN, and it'll automatically generate the appropriate mTLS certificates.
Copy the following PEM files from the Lightning directory to a separate directory:
- `ca.pem`: CA certificate
- `client.pem`: Client certificate
- `client-key.pem`: Client private key
Claude Setup
{
"mcpServers" : {
"cln-mcp" : {
"command": "Path/to/cln-mcp" (ex: "/Users/MyPC/cln-mcp/target/release/cln-mcp" or the executable unzipped from the release),
"args": [
"--certs-dir",
"Path/to/certificates" (ex: "/Users/MyPC/cln-mcp/certs")
]
}
}
}Future Goals
[ ] Enable it to derive parameters for the RPC calls
[ ] Choose the most appropriate and useful RPCs for maximum utility
[ ] Extend support for LND
[ ] Host multiple servers to make it more efficient
This is a work in progress. We welcome code reviews, pull requests, and issues based on your usage.
Frequently asked questions
What is CLN-MCP?
CLN-MCP is MCP server for Lightning Network
How do I install CLN-MCP?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is CLN-MCP open source?
Yes — it is hosted on GitHub at https://github.com/adi2011/cln-mcp and has 2 stars.
Related MCP tools
An open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM for the Model Context Protocol. Enhance AI
The official Rust SDK for the Model Context Protocol Trusted by 2500+ developers. Trusted by 2500+ developers. Trusted by 2500+ developers.
🌍 Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments.
Playwright MCP server TypeScript-based implementation. Trusted by 22000+ developers. Trusted by 22000+ developers. Trusted by 22000+ developers.
MCP Server for Ghidra Java-based implementation. Trusted by 6400+ developers. Trusted by 6400+ developers. Trusted by 6400+ developers.
Official Notion MCP Server TypeScript-based implementation. Trusted by 3400+ developers. Trusted by 3400+ developers. Trusted by 3400+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP