npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agentbtc-mcp

v1.0.0

Published

BYON Bitcoin payments for AI agents via Model Context Protocol. The world's first Lightning MCP server for Claude Desktop.

Readme

AgentBTC MCP Server

npm version License: MIT

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 [email protected]
  • 💳 Spending Policies: Per-transaction, daily, and monthly limits for agent wallets

🚀 Quick Start

Option 1: npx (no install)

npx agentbtc-mcp start

Option 2: Global install

npm install -g agentbtc-mcp
agentbtc-mcp start

Claude 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_agent_wallets | List all agent wallets | | get_agent_balance | Check wallet balance | | create_agent_wallet | Create a new agent wallet | | delete_agent_wallet | Remove an agent wallet | | get_node_info | Lightning node status | | create_lightning_invoice | Generate payment requests | | pay_lightning_invoice | Send Lightning payments | | send_to_lightning_address | Pay Lightning addresses | | decode_invoice | Decode BOLT11 invoices | | check_channel_balance | Channel liquidity info | | list_channels | List Lightning channels | | get_transaction_history | Payment history | | access_l402_api | Access L402-protected APIs |

⚙️ Configuration

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | AGENTBTC_LND_HOST | Yes | LND REST API endpoint (e.g., localhost:8080) | | AGENTBTC_LND_MACAROON | Yes | Path to LND macaroon file | | AGENTBTC_API_URL | No | AgentBTC server URL (default: http://localhost:8000) | | AGENTBTC_API_KEY | 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:

  1. Your Lightning node credentials stay on your machine
  2. The MCP server runs locally, connecting directly to your node
  3. No credentials are ever transmitted to AgentBTC servers
  4. Agent wallets have configurable spending limits
  5. 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 — usually localhost:8080 for LND REST
  • For Voltage nodes: use your-node.t.voltageapp.io:8080

"Permission denied"

  • Check macaroon file exists and is readable
  • Use readonly.macaroon for safety

"Invalid macaroon"

  • Ensure you're using the correct network (mainnet vs testnet)
  • Try copying the macaroon to a new path

🌐 Links

📜 License

MIT — see LICENSE.

Built by BK Block Solutions