Back to MCP Directory
Bitcoin
Model Context Protocol moderate risk

Bitcoin

Bitcoin MCP server enables AI models to interact with Bitcoin and Lightning Network for key management, blockchain queries, and transaction handling.

Connections & Capabilities

Connects To

GitHub

Capabilities

readwrite

Quickstart

Install

npx -y

Config

"mcpServers"

Exposed MCP Tools (7)

moderate
generate_key_pair

Generates a new Bitcoin key pair, including address, public key, and private key.

Private key generation requires secure handling to prevent theft.

safe
validate_address

Validates the correctness of a Bitcoin address.

Read-only operation with no side effects.

safe
decode_transaction

Parses a raw Bitcoin transaction and displays its details in a human-readable format.

Read-only operation; only decodes existing data.

safe
get_latest_block

Retrieves details about the most recent block on the Bitcoin blockchain.

Read-only access to public blockchain data.

safe
get_transaction_details

Fetches detailed information about a transaction using its TXID.

Read-only access to public blockchain data.

safe
decode_invoice

Parses a BOLT11 Lightning invoice and displays human-readable information.

Read-only operation; only decodes existing data.

high
pay_invoice

Pays a Lightning invoice directly from your LNBits wallet.

Allows spending funds, requiring careful authorization and control.

Safety Assessment

This server provides both read and write capabilities related to Bitcoin and Lightning Network. While address validation and transaction decoding are relatively safe, the payment tool and key generation introduce risks if not handled securely. Use with caution, especially when dealing with real funds.

  • Address validation prevents sending funds to invalid addresses.
  • Transaction decoding is read-only, posing minimal risk.
  • Key generation is client-controlled, reducing server-side key exposure.
  • LN invoice decoding is read-only.
  • Payment tool allows spending funds from an LNBits wallet.
  • Improper handling of private keys during key generation could lead to theft.
  • Blockchain queries could expose user's transaction history if not used carefully.
  • Potential for misinterpretation of transaction details leading to incorrect actions.