Bitcoin
Bitcoin & Lightning Network MCP Server.
What is Bitcoin?
Bitcoin is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to bitcoin & lightning network mcp server.
Bitcoin & Lightning Network MCP Server.
This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- generate_key
- validate_address
- decode_tx
- get_latest_block
- get_transaction
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx bitcoinConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Bitcoin
The Bitcoin MCP Server connects AI assistants to the Bitcoin blockchain and Lightning Network, enabling real-time queries of blockchain data and Lightning invoice operations without any API keys for read-only functions. It exposes tools for generating Bitcoin key pairs, validating addresses, decoding raw transactions, fetching the latest block, and looking up transactions by ID. For Lightning Network functionality, it integrates with LNBits wallets to decode and pay BOLT11 invoices, making it useful for developers building Bitcoin-aware AI workflows.
Prerequisites
- Node.js 18+ installed (for npx execution)
- An MCP-compatible client such as Claude Desktop or Goose
- LNBits instance and API keys (only required for Lightning Network payment features)
- No Bitcoin node required — blockchain data is fetched from public APIs
Install the Bitcoin MCP server
The server is available as an npm package and can be run directly with npx. No global installation is required for basic use.
npx -y bitcoin-mcp@latestAdd to Claude Desktop configuration
Edit your Claude Desktop config file to register the bitcoin-mcp server. On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows: %APPDATA%\Claude\claude_desktop_config.json.
{
"mcpServers": {
"bitcoin-mcp": {
"command": "npx",
"args": ["-y", "bitcoin-mcp@latest"]
}
}
}Configure Lightning Network (optional)
To enable Lightning Network features such as paying invoices, provide your LNBits credentials. Obtain the admin and read keys from your LNBits wallet's API info page.
{
"mcpServers": {
"bitcoin-mcp": {
"command": "npx",
"args": ["-y", "bitcoin-mcp@latest"],
"env": {
"LNBITS_URL": "https://demo.lnbits.com",
"LNBITS_ADMIN_KEY": "your_admin_key",
"LNBITS_READ_KEY": "your_read_key"
}
}
}
}Restart Claude Desktop
Fully quit and relaunch Claude Desktop so the new MCP server configuration is loaded. Look for the hammer icon in the input bar to confirm tools are available.
Verify with a blockchain query
Ask Claude to fetch the latest Bitcoin block. The server will call the blockchain API and return current block height, hash, and timestamp.
Bitcoin Examples
Client configuration
Minimal configuration for Claude Desktop without Lightning Network features.
{
"mcpServers": {
"bitcoin-mcp": {
"command": "npx",
"args": ["-y", "bitcoin-mcp@latest"]
}
}
}Prompts to try
Try these queries once the server is connected to Claude Desktop.
- "What is the latest Bitcoin block number and when was it mined?"
- "Generate a new Bitcoin key pair with address for me"
- "Validate this Bitcoin address: bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"
- "Decode this raw Bitcoin transaction and explain what it does"
- "Decode this Lightning invoice and show the amount and description"Troubleshooting Bitcoin
npx bitcoin-mcp fails with 'command not found' or package not found
Use the correct package name: 'npx -y bitcoin-mcp@latest' (not 'npx bitcoin'). Ensure Node.js 18+ is installed by running 'node --version'.
Lightning Network tools return authentication errors
Verify your LNBits URL is reachable and that LNBITS_ADMIN_KEY and LNBITS_READ_KEY are set correctly in the env block of your MCP config. Obtain keys from your LNBits wallet at Settings → API Info.
Blockchain queries return stale or no data
The server fetches from public blockchain APIs. Transient network failures or rate limiting may cause empty responses. Retry after a moment, or check your internet connection.
Frequently Asked Questions about Bitcoin
What is Bitcoin?
Bitcoin is a Model Context Protocol (MCP) server that bitcoin & lightning network mcp server. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Bitcoin?
Follow the installation instructions on the Bitcoin GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Bitcoin?
Bitcoin works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Bitcoin free to use?
Yes, Bitcoin is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Bitcoin Alternatives — Similar Finance & Fintech Servers
Looking for alternatives to Bitcoin? Here are other popular finance & fintech servers you can use with Claude, Cursor, and VS Code.
ValueCell
★ 10.7kValueCell is a community-driven, multi-agent platform for financial applications.
Vibe Trading
★ 8.1k'Vibe-Trading: Your Personal Trading Agent'
Quantdinger
★ 6.2kAI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading
TradingView
★ 2.8kReal-time crypto & stock screening, advanced technical indicators, Bollinger Bands intelligence, candlestick patterns + native Claude Desktop integration. Multi-exchange (Binance, KuCoin, Bybit+). Open-source AI trading infrastructure.
Financial Datasets
★ 2.1kProvides access to comprehensive financial data including income statements, balance sheets, cash flow statements, stock prices, company news, SEC filings, and cryptocurrency information with built-in financial ratio analysis.
Stripe
★ 1.6kThe Stripe Model Context Protocol server allows you to integrate with Stripe APIs through function calling. This protocol supports various tools to interact with different Stripe services.
Browse More Finance & Fintech MCP Servers
Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Bitcoin in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Bitcoin?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.