Generate a new Bitcoin key pair including address, public key, and private key (WIF)
Validate the correctness of a Bitcoin address
Parse a raw Bitcoin transaction and display its details in a human-readable format
Retrieve details about the most recent Bitcoin block (hash, height, timestamp, transaction count, etc.)
Fetch detailed information about a transaction using its TXID
Parse a BOLT11 Lightning invoice and display human-readable information
Pay a Lightning invoice directly from your LNBits wallet
A comprehensive toolkit that enables AI models to interact with Bitcoin and Lightning Network infrastructure. This MCP server provides capabilities for key generation, address validation, transaction decoding, blockchain querying, and Lightning Network operations, allowing AI assistants to perform cryptocurrency operations directly.
This MCP server enables AI models to interact with Bitcoin and Lightning Network infrastructure, allowing them to perform various cryptocurrency operations directly.
You can install the Bitcoin & Lightning Network MCP in several ways depending on your preferred AI assistant platform.
Download and install Claude Desktop from the official Anthropic website.
Configure Claude Desktop to use the Bitcoin MCP Server by editing the configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the following entry to the mcpServers
section:
{
"mcpServers": {
"bitcoin-mcp": {
"command": "npx",
"args": ["-y", "bitcoin-mcp@latest"]
}
}
}
npm install -g bitcoin-mcp
goose extension add bitcoin-mcp
npx bitcoin-mcp@latest
goose extension add http://localhost:3000/sse
If you want to run the server from source:
git clone https://github.com/AbdelStark/bitcoin-mcp.git
cd bitcoin-mcp
npm install
.env
file based on the example:cp .env.example .env
npm start
To enable Lightning Network functionality:
.env
file:LNBITS_ADMIN_KEY=your_admin_key
LNBITS_ENDPOINT=https://legend.lnbits.com
You can also run the MCP server using Docker:
docker build -t bitcoin-mcp .
docker run -p 3000:3000 bitcoin-mcp
Once installed, you can ask your AI assistant to perform various Bitcoin and Lightning Network operations:
The AI will use the appropriate tools from the MCP server to fulfill these requests.