AgentBTC MCP Server
Enables non-custodial Bitcoin and Lightning Network transactions, allowing AI agents to manage wallets, create and pay invoices, and monitor node and channel status.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AgentBTC MCP Server pay 500 sats to satoshi@getalby.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AgentBTC MCP Server
BYON (Bring Your Own Node) Bitcoin payments for AI agents via Model Context Protocol
The world's first Bitcoin/Lightning MCP server. Your Lightning node credentials never leave your machine. Works with Claude Desktop, OpenClaw, and any MCP-compatible AI tool.
๐ Features
๐ True BYON: Your Lightning credentials never leave your machine โ zero-trust architecture
โก Lightning Network: Fast, cheap Bitcoin micropayments (~200ms per payment)
๐ค 13 MCP Tools: Complete wallet management, payments, invoices, channels, and L402
๐ L402 Protocol: HTTP 402 "Payment Required" for API monetization
๐ก๏ธ Non-Custodial: Zero counterparty risk โ you control your Bitcoin
๐ท๏ธ Lightning Addresses: Send to
bot@yourname.agentbtc.io๐ณ Spending Policies: Per-transaction, daily, and monthly limits for agent wallets
Related MCP server: Alby Bitcoin Payments MCP Server
๐ Quick Start
Option 1: npx (no install)
npx agentbtc-mcp startOption 2: Global install
npm install -g agentbtc-mcp
agentbtc-mcp startClaude Desktop Config
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"agentbtc": {
"command": "npx",
"args": ["-y", "agentbtc-mcp", "start"],
"env": {
"AGENTBTC_LND_HOST": "your-node:8080",
"AGENTBTC_LND_MACAROON": "/path/to/readonly.macaroon",
"AGENTBTC_API_URL": "https://agentbtc.io",
"AGENTBTC_API_KEY": "your-api-key"
}
}
}
}๐ง Available Tools (13)
Tool | Description |
| List all agent wallets |
| Check wallet balance |
| Create a new agent wallet |
| Remove an agent wallet |
| Lightning node status |
| Generate payment requests |
| Send Lightning payments |
| Pay Lightning addresses |
| Decode BOLT11 invoices |
| Channel liquidity info |
| List Lightning channels |
| Payment history |
| Access L402-protected APIs |
โ๏ธ Configuration
Environment Variables
Variable | Required | Description |
| Yes | LND REST API endpoint (e.g., |
| Yes | Path to LND macaroon file |
| No | AgentBTC server URL (default: |
| No | Your owner API key for wallet management |
CLI Commands
agentbtc-mcp start # Start MCP server
agentbtc-mcp setup # Interactive Claude Desktop setup
agentbtc-mcp test # Test Lightning node connection
agentbtc-mcp config # Show current configuration
agentbtc-mcp version # Show version๐ Requirements
Node.js 18+
Lightning Node โ LND with REST API enabled
MCP Client โ Claude Desktop, OpenClaw, or compatible
๐ Security Model
AgentBTC uses a BYON (Bring Your Own Node) architecture:
Your Lightning node credentials stay on your machine
The MCP server runs locally, connecting directly to your node
No credentials are ever transmitted to AgentBTC servers
Agent wallets have configurable spending limits
All payments are logged with full audit trail
๐งช Testing
# Test with testnet
export AGENTBTC_LND_HOST=your-testnet-node:8080
export AGENTBTC_LND_MACAROON=/path/to/testnet/readonly.macaroon
agentbtc-mcp test๐ Troubleshooting
"Connection refused"
Verify your Lightning node is running
Check
AGENTBTC_LND_HOSTโ usuallylocalhost:8080for LND RESTFor Voltage nodes: use
your-node.t.voltageapp.io:8080
"Permission denied"
Check macaroon file exists and is readable
Use
readonly.macaroonfor safety
"Invalid macaroon"
Ensure you're using the correct network (mainnet vs testnet)
Try copying the macaroon to a new path
๐ Links
Website: agentbtc.io
GitHub: github.com/bkblock/agentbtc-mcp
๐ License
MIT โ see LICENSE.
Built by BK Block Solutions โก
Available Tools
13 toolsaccess_l402_apiC
Access an L402-protected API endpoint with automatic Lightning payment
Inputs: endpoint (required), symbol.
check_channel_balanceB
Check available Lightning channel balance (outbound and inbound liquidity)
Inputs: no named parameters.
create_agent_walletA
Create a new Bitcoin wallet for an AI agent (owner access required)
Inputs: agent_name (required).
create_lightning_invoiceC
Create a Lightning Network invoice to receive Bitcoin payments
Inputs: amount_sats (required), description, agent.
decode_invoiceA
Decode a Lightning invoice to inspect amount, expiry, destination before paying
Inputs: invoice (required).
delete_agent_walletB
Delete an agent wallet by name or ID (owner access required)
Inputs: agent (required).
get_agent_balanceC
Get Bitcoin balance for an agent wallet
Inputs: agent_id (required).
get_node_infoB
Get Lightning node connection status and info
Inputs: no named parameters.
get_transaction_historyC
Get recent Lightning payment history
Inputs: max_payments.
list_agent_walletsB
List all agent wallets with their balances and status (agent key: own wallet only)
Inputs: no named parameters.
list_channelsA
List all Lightning channels with capacity, balance, and peer info
Inputs: no named parameters.
pay_lightning_invoiceB
Pay a Lightning Network invoice using agent wallet funds
Inputs: invoice (required), agent, fee_limit_sats.
send_to_lightning_addressB
Send sats to a Lightning address (user@domain.com) using LNURL-pay protocol
Inputs: address (required), amount_sats (required), agent, comment.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 13 tools
Each tool has a clearly distinct purpose with no overlap. For example, create_lightning_invoice is for receiving payments, pay_lightning_invoice is for sending payments, and decode_invoice is for inspection, making misselection unlikely. The separation between wallet management (create_agent_wallet, delete_agent_wallet), balance/status queries (get_agent_balance, check_channel_balance), and payment operations is well-defined.
The naming follows a consistent verb_noun pattern with snake_case throughout, such as create_lightning_invoice and get_agent_balance. There is one minor deviation: access_l402_api uses an acronym (L402) instead of a full noun, but this is understandable given the technical context and does not break the overall pattern.
With 13 tools, the count is well-scoped for a Bitcoin/Lightning server, covering key areas like wallet management, payments, and network status. Each tool earns its place by addressing specific needs in the domain, such as creating invoices, checking balances, and managing channels, without being excessive or sparse.
The tool set provides complete coverage for Bitcoin and Lightning Network operations, including CRUD for wallets (create, list, get balance, delete), payment lifecycle (create invoice, decode, pay, send via address), and network monitoring (node info, channel list, transaction history). No obvious gaps exist for core workflows in this domain.
Maintenance
Related MCP Connectors
Give AI agents a Bitcoin wallet with Lightning Network payments and L402 support.
Keyless non-custodial crypto payments for AI agents: payment links and tip jars, no API key.
Crypto payments for AI agents: self-serve account, invoices, receiving, payouts, exchange.
Non-custodial crypto payments for AI assistants: balances, payments, and create payment links.
Related MCP Servers
- AlicenseBqualityFmaintenanceEnables interaction with lightning addresses and common lightning tools via your LLM, providing Lightning Network functionality through natural language.37 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables Bitcoin Lightning wallet integration with LLMs through Nostr Wallet Connect (NWC). Supports lightning payments, LNURL operations, and L402 authentication for AI-powered bitcoin transactions.50 npmApache 2.0
- AlicenseAqualityDmaintenanceProvides tools for AI agents to access Bitcoin, Lightning Network, and Nostr knowledge, including real-time network statistics and Web of Trust reputation data. It features an integrated Lightning Network payment system for micro-transactions and query-based interactions.126 npm2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage Bitcoin micropayments, service offers, and escrow contracts through MCP tools, without requiring a Lightning node.7 npmMIT