decode_invoice
Decode a Lightning invoice
Generate a Bitcoin key pair, check an address, decode a raw transaction or a Lightning invoice — and pay that invoice from an LNBits wallet.
LABSCO SUMMARY
Reading a raw transaction or a BOLT11 invoice in plain terms — what it pays, to whom, under what expiry — is the kind of question that otherwise means finding a decoder website, and here it happens where the conversation already is, with no credentials involved. Treat the payment tool separately: it moves real funds from the LNBits wallet whose admin key you supplied, so decode_invoice first and keep the admin key out of any configuration you would not trust with the balance.
A small Bitcoin and Lightning toolkit. Key generation, address validation and transaction decoding happen locally; block and transaction lookups query the chain; Lightning payment goes through an LNBits wallet you configure.
Nothing for the Bitcoin side — key generation, validation, decoding and chain lookups need no account. It runs as npx -y bitcoin-mcp@latest. Lightning is the part that takes credentials: an LNBits account and wallet, configured with lnbitsUrl plus lnbitsAdminKey for making payments and lnbitsReadKey for wallet information, both found under API info in LNBits. Without them the Lightning payment tool has nothing to pay from.
One command plus a key — npx -y bitcoin-mcp@latest, then supply credentials
USE CASES
Decode the BOLT11 string into amount, destination and expiry before deciding anything.
Decode the hex into inputs, outputs and structure rather than pasting it into a website.
Validate the address is well formed, and look up the transaction history you were told about.
Fetch the latest block with its height, timestamp and transaction count.
Decode it first to confirm the terms, then pay it from the configured LNBits wallet.
Generate the address, public key and WIF private key locally, without touching a wallet application.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
decode_invoiceDecode a Lightning invoice
decode_txDecode a Bitcoin transaction
generate_keyGenerate a new Bitcoin key pair and address
get_latest_blockGet the latest block
get_transactionGet transaction details
pay_invoicePay a Lightning invoice
validate_addressValidate a Bitcoin address
BEFORE YOU INSTALL
7 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 7 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y bitcoin-mcp@latest{
"mcpServers": {
"bitcoin-mcp": {
"command": "npx",
"args": [
"-y",
"bitcoin-mcp@latest"
]
}
}
}SSE mode is started from a build of the repository:
git clone https://github.com/AbdelStark/bitcoin-mcp
cd bitcoin-mcp
npm install
npm run build
SERVER_MODE=sse npm startRun goose configure (or open Settings > Extensions in Goose Desktop), choose Add Extension, then Remote Extension, name it bitcoin and enter this URL:
http://localhost:3000The server listens on port 3000 unless PORT is set.