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

phoenixd-mcp-server

v1.2.0

Published

Connect a phoenixd bitcoin lightning wallet to your LLM.

Readme

Phoenixd MCP Server

Connect a phoenixd bitcoin lightning wallet to your LLM.

This MCP server uses MCP TypeScript SDK and Phoenixd API.

Prerequisites

You need a running phoenixd node. Phoenixd generates an HTTP password on first run and writes it to ~/.phoenix/phoenix.conf:

http-password=your_generated_password

Use that value for HTTP_PASSWORD in the configuration below.

Node.js >= 18 is required.

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json file:

{
  "mcpServers": {
    "phoenixd-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "phoenixd-mcp-server"
      ],
      "env": {
        "HTTP_PROTOCOL": "http",
        "HTTP_HOST": "127.0.0.1",
        "HTTP_PORT": "9740",
        "HTTP_PASSWORD": "<your_password_from_phoenix.conf>"
      }
    }
  }
}

Remote node (VPS / HTTPS)

If phoenixd runs on a remote server behind a reverse proxy with TLS:

{
  "mcpServers": {
    "phoenixd-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "phoenixd-mcp-server"
      ],
      "env": {
        "HTTP_PROTOCOL": "https",
        "HTTP_HOST": "your.server.com",
        "HTTP_PORT": "9740",
        "HTTP_PASSWORD": "<your_password_from_phoenix.conf>"
      }
    }
  }
}

Tools

Payments

  • create-invoice

    • Create a bolt11 invoice with a specified amount and description.
    • Inputs:
      • description (string, optional): The description of the invoice (max. 128 characters). Either description or descriptionHash must be provided.
      • descriptionHash (string, optional): SHA256 hash of the description. Use instead of description.
      • amountSat (number, optional): The amount requested by the invoice, in satoshi. If not set, the invoice can be paid by any amount.
      • expirySeconds (number, optional): The invoice expiry in seconds, default 3600 (1 hour).
      • externalId (string, optional): A custom identifier to link the invoice to an external system.
      • webhookUrl (string, optional): A URL that phoenixd will POST to when this invoice is paid. The payload is a JSON object with the payment details as defined in the Phoenixd API docs.
  • create-offer

    • Create a bolt12 offer.
    • Inputs:
      • description (string): The description of the offer.
      • amountSat (number, optional): The amount requested by the offer, in satoshi.
      • expirySeconds (number, optional): The offer expiry in seconds.
  • pay-invoice

    • Pay a bolt11 invoice.
    • Inputs:
      • invoice (string): The bolt11 invoice to pay.
      • amountSat (number, optional): Amount to pay in satoshis (only for zero-amount invoices). Mutually exclusive with sendAll.
      • sendAll (boolean, optional): If true, empties the wallet. Mutually exclusive with amountSat.
      • externalId (string, optional): A custom identifier to link the payment to an external system.
  • pay-offer

    • Pay a bolt12 offer.
    • Inputs:
      • offer (string): The bolt12 offer to pay.
      • amountSat (number, optional): Amount to pay in satoshis. Mutually exclusive with sendAll.
      • sendAll (boolean, optional): If true, empties the wallet. Mutually exclusive with amountSat.
      • message (string, optional): A message for the recipient.
      • externalId (string, optional): A custom identifier to link the payment to an external system.
  • pay-lightning-address

    • Pay a Lightning Address.
    • Inputs:
      • address (string): The Lightning Address to pay (e.g., [email protected]).
      • amountSat (number, optional): Amount to pay in satoshis. Mutually exclusive with sendAll.
      • sendAll (boolean, optional): If true, empties the wallet. Mutually exclusive with amountSat.
      • message (string, optional): Optional message to include with the payment.
  • pay-on-chain

    • Send an on-chain Bitcoin payment.
    • Inputs:
      • address (string): The Bitcoin address to send funds to.
      • amountSat (number): Amount to send in satoshis.
      • feerateSatByte (number, optional): Fee rate in satoshis per byte.
  • bump-fee

    • Bumps the fee rate of all unconfirmed on-chain transactions using CPFP. Returns the ID of the child transaction.
    • Inputs:
      • feerateSatByte (number): New fee rate in satoshis per byte.
  • list-incoming-payments

    • List incoming payments (invoices).
    • Inputs:
      • from (string, optional): Start timestamp in millis from epoch, default 0.
      • to (string, optional): End timestamp in millis from epoch, default now.
      • limit (number, optional): Number of payments per page, default 20.
      • offset (number, optional): Page offset, default 0.
      • all (boolean, optional): Also return unpaid invoices, default false.
      • externalId (string, optional): External id of the bolt11 invoice.
  • get-incoming-payment

    • Get details of a specific incoming payment (invoice).
    • Inputs:
      • paymentHash (string): The payment hash of the invoice.
  • list-outgoing-payments

    • List outgoing payments.
    • Inputs:
      • from (string, optional): Start timestamp in millis from epoch, default 0.
      • to (string, optional): End timestamp in millis from epoch, default now.
      • limit (number, optional): Number of payments per page, default 20.
      • offset (number, optional): Page offset, default 0.
      • externalId (string, optional): External id of the payment.
  • get-outgoing-payment

    • Get details of a specific outgoing payment.
    • Inputs:
      • paymentHash (string): The payment hash of the outgoing payment.

Node management

  • get-node-info

    • Get the node info.
    • Inputs: none
  • get-balance

    • Get the balance of the node.
    • Inputs: none
  • list-channels

    • List the node channels.
    • Inputs: none
  • close-channel

    • Close a channel by ID, sending the funds to a specified address on chain, with a specified fee rate.
    • Inputs:
      • channelId (string): The ID of the channel to close.
      • address (string): The Bitcoin on chain address to send the funds to.
      • feerateSatByte (number): The fee rate in satoshis per byte.
  • decode-invoice

    • Decode a bolt11 invoice, the output amount is in millisatoshis.
    • Inputs:
      • invoice (string): The bolt11 invoice to decode.
  • decode-offer

    • Decode a bolt12 offer, the output amount is in millisatoshis.
    • Inputs:
      • offer (string): The bolt12 offer to decode.

Troubleshooting

Authentication failed / 401 — Check that HTTP_PASSWORD matches the value in ~/.phoenix/phoenix.conf.

Connection refused — Phoenixd is not running or is listening on a different host/port. Verify with curl http://127.0.0.1:9740/getinfo -u :your_password.

Node.js version error — This package requires Node.js >= 18. Run node --version to check.