Breez Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Breez Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A unified MCP server that exposes Lightning functionality through the Breez SDK (Spark implementation) using FastMCP. Supports both stdio and HTTP transport modes.
uvx)cp .env.example .envEdit .env with your secrets. Required variables:
| Variable | Required | Default | Purpose |
|---|---|---|---|
BREEZ_API_KEY | ✅ | – | Breez Spark API key |
BREEZ_MNEMONIC | ✅ | – | 12-word mnemonic controlling the wallet |
BREEZ_NETWORK | ❌ | mainnet | Set to testnet for sandbox usage |
BREEZ_DATA_DIR | ❌ | ./data | Wallet storage directory |
BREEZ_TRANSPORT_MODE | ❌ | stdio | Transport mode: stdio, http, or asgi |
BREEZ_HTTP_HOST | ❌ | 0.0.0.0 | HTTP server host (HTTP mode only) |
BREEZ_HTTP_PORT | ❌ | 8000 | HTTP server port (HTTP mode only) |
BREEZ_HTTP_PATH | ❌ | /mcp | HTTP endpoint path (HTTP mode only) |
Choose the runtime that transport mode that fits your workflow.
For use with Claude Desktop and other MCP clients:
# Local virtualenv
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python -m src.main
# Or with uvx (no persistent venv)
uvx --from . breez-mcpFor accessing the MCP server via HTTP API:
# Set environment variable
export BREEZ_TRANSPORT_MODE=http
# Or add to .env file
echo "BREEZ_TRANSPORT_MODE=http" >> .env
# Run the server
python -m src.mainThe server will be available at http://localhost:8000/mcp
For deployment with external ASGI servers like Gunicorn:
# Set environment variable
export BREEZ_TRANSPORT_MODE=asgi
# Run with uvicorn
uvicorn src.main:app --host 0.0.0.0 --port 8000
# Or with Gunicorn (production)
gunicorn src.main:app -w 4 -k uvicorn.workers.UvicornWorkerRun both modes simultaneously:
# STDIO mode
docker compose --profile stdio up -d
docker compose logs -f breez-mcp-stdio
# HTTP mode
docker compose --profile http up -d
docker compose logs -f breez-mcp-http
# Stop
docker compose --profile http down
docker compose --profile stdio down# Build image
docker build -t breez-mcp .
# STDIO mode (default)
docker run --rm \
-e BREEZ_API_KEY="$BREEZ_API_KEY" \
-e BREEZ_MNEMONIC="$BREEZ_MNEMONIC" \
-v $(pwd)/data:/app/data \
breez-mcp
# HTTP mode
docker run --rm -p 8000:8000 \
-e BREEZ_TRANSPORT_MODE=http \
-e BREEZ_API_KEY="$BREEZ_API_KEY" \
-e BREEZ_MNEMONIC="$BREEZ_MNEMONIC" \
-v $(pwd)/data:/app/data \
breez-mcpTo keep STDIN/STDOUT attached for Claude Desktop, add -i to the docker run command.
mcp install src.main --name "breez-mcp"Use -f .env or -v KEY=value to supply credentials during installation if desired.
Ensure the image exists (docker build -t breez-mcp .), then configure:
{
"mcpServers": {
"breez": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "BREEZ_API_KEY",
"-e", "BREEZ_MNEMONIC",
"-e", "BREEZ_TRANSPORT_MODE=stdio",
"-v", "/absolute/path/to/breez-mcp/data:/app/data",
"breez-mcp"
],
"cwd": "/absolute/path/to/breez-mcp",
"env": {
"BREEZ_API_KEY": "${env:BREEZ_API_KEY}",
"BREEZ_MNEMONIC": "${env:BREEZ_MNEMONIC}",
"BREEZ_NETWORK": "mainnet"
}
}
}
}Docker's -e VAR syntax reads the value of VAR from the environment supplied via the env block.
{
"mcpServers": {
"breez": {
"command": "uvx",
"args": ["--from", ".", "breez-mcp"],
"cwd": "/absolute/path/to/breez-mcp",
"env": {
"BREEZ_API_KEY": "${env:BREEZ_API_KEY}",
"BREEZ_MNEMONIC": "${env:BREEZ_MNEMONIC}",
}
}
}
}mcp list to ensure the server registered.get_balance — comprehensive wallet balance with limits and formatted amountsget_node_info — detailed node information including capabilities and sync statussend_payment — send a Lightning payment with complete transaction detailscreate_invoice — generate a BOLT11 invoice with all invoice datalist_payments — comprehensive payment history with full detailsWhen running in HTTP mode, you can interact with the MCP server via HTTP requests:
curl http://localhost:8000/healthcurl http://localhost:8000/mcp/tools/listThe HTTP mode follows the MCP protocol over HTTP. You'll need to send properly formatted MCP JSON-RPC requests to http://localhost:8000/mcp.
Example using MCP Inspector or other MCP clients:
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_balance",
"arguments": {}
},
"id": 1
}Send to:
curl -X POST http://localhost:8000/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"get_balance","arguments":{}},"id":1}'.env; keep secrets in your shell or a secrets manager.mainnet. For experimentation, explicitly set BREEZ_NETWORK=testnet../data to preserve state between runs and prevent secret leakage in container layers..env exists or export the required variables before starting.python list_payments_cli.py --limit 1 --verbose to confirm SDK connectivity, and check http://localhost:8000/health in HTTP mode.cwd and restart the application after configuration changes.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.