Skip to main content

MCP server exposing your self-hosted, non-custodial Conduit Lightning instance to any MCP-compatible AI agent

Project description

conduit-btc-mcp

Model Context Protocol server that exposes Conduit Lightning payments as tools to any MCP-compatible AI agent (Claude Desktop, Cursor, custom agents).

Installs as the PyPI package conduit-btc-mcp; the console command it provides is conduit-mcp (that's what you put in claude_desktop_config.json).

Conduit is self-hosted and non-custodial. This MCP server connects to your own Conduit instance — the one you run against your own LND node, with your own keys. It is not a hosted Conduit service and never touches your funds. You point it at your deployment with two environment variables:

  • CONDUIT_API_KEY — an API key you minted on your Conduit instance.
  • CONDUIT_API_URL — the base URL of your instance (e.g. https://conduit.your-domain.com). Optional; if unset it defaults to the hosted demo at https://api.conduit.energy. Set it to your own URL in production.

Your node, your keys, your rules.

Install

pip install conduit-btc-mcp

Configure (Claude Desktop)

Add to claude_desktop_config.json, pointing CONDUIT_API_URL at your self-hosted Conduit instance:

{
  "mcpServers": {
    "conduit": {
      "command": "conduit-mcp",
      "env": {
        "CONDUIT_API_KEY": "ck_live_xxxxxxxxxxxx",
        "CONDUIT_API_URL": "https://conduit.your-domain.com"
      }
    }
  }
}

Tools exposed

Each tool requires a particular API-key scope. Conduit enforces these scopes server-side: a key with an insufficient scope is rejected. Mint a key with the right scope on your instance (read < write < admin; higher scopes include lower ones).

Tool Purpose Required scope
conduit_create_wallet Create an agent wallet with a daily limit (sats) admin
conduit_credit Fund an agent wallet from operator node liquidity (sats) admin
conduit_attach_policy Set spending controls: per-tx, hourly, daily, allow/blocklist admin
conduit_balance Read current balance read
conduit_pay Send to a Lightning address (name@host), BOLT11 invoice, or raw node pubkey (keysend) write
conduit_receive Generate an invoice for inbound payment write
conduit_transactions List recent transactions read
conduit_fees Report this operator's platform-fee revenue (sats) admin

Scopes, accurately. Creating agents (conduit_create_wallet) and setting policies (conduit_attach_policy) are admin operations — an admin-scope key is required, not merely write. Sending payments and generating invoices require write. Reading balances and transactions require read. The platform-fee report (conduit_fees) requires admin. If you want an agent to spend but never reconfigure itself, give it a write key — it can pay and receive, but not create wallets, change policies, or read fee revenue.

conduit_fees

Calls GET /v1/fees on your instance (admin scope) and returns the operator's accumulated platform-fee revenue — the small per-payment fee (in sats) Conduit charges on top of each payment and keeps on settle (refunded in full on failure). The fee is configured by you, the operator, via PLATFORM_FEE_PERCENT / PLATFORM_FEE_MIN_SATS / PLATFORM_FEE_MAX_SATS on your deployment. Returns:

{
  "total_collected_sats": 12345,
  "total_collected_btc": 0.00012345,
  "today_sats": 678,
  "fees_by_day": [
    { "date": "2026-06-06", "sats": 678, "tx_count": 9 }
  ]
}

fees_by_day is ordered most-recent-first.

Policy enforcement

The Conduit policy engine enforces every payment before it reaches the Lightning Network. An AI cannot exceed the limits attached to its wallet.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

conduit_btc_mcp-0.8.6.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conduit_btc_mcp-0.8.6-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file conduit_btc_mcp-0.8.6.tar.gz.

File metadata

  • Download URL: conduit_btc_mcp-0.8.6.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for conduit_btc_mcp-0.8.6.tar.gz
Algorithm Hash digest
SHA256 8f768731242ff6f0f4c57b262526f40b8e406f66675e9d15a905608cafc15222
MD5 9fb6c9bf2470cc5277bc991716d58001
BLAKE2b-256 5d715315555aadf353cb2fb25184f8fa7301cb412a59bb539373962b9bd5a6af

See more details on using hashes here.

File details

Details for the file conduit_btc_mcp-0.8.6-py3-none-any.whl.

File metadata

File hashes

Hashes for conduit_btc_mcp-0.8.6-py3-none-any.whl
Algorithm Hash digest
SHA256 25bed7677445c84a9f73e8b1868c7be0c6c3528cea0425e054b88784c44a0186
MD5 accaa315136a6d75d3122aacf1951574
BLAKE2b-256 8cedc3d789fd40dfd5a14aa899130d82f0cf360cc90106c1a9832551500a982b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page