This MCP server enables AI models to interact with Bitcoin and Lightning Network, providing capabilities for key generation, address validation, transaction decoding, blockchain queries, and Lightning Network operations. Here's how to get started with installing and using it.
Install Claude Desktop from the official download page
Configure Claude Desktop to use the Bitcoin MCP server by editing the configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add this entry in the mcpServers
section:
{
"mcpServers": {
"bitcoin-mcp": {
"command": "npx",
"args": ["-y", "bitcoin-mcp@latest"]
}
}
}
Restart Claude Desktop for the changes to take effect
Open Goose's configuration interface by running goose configure
or in the Goose Desktop app via Settings > Extensions
Choose Add Extension and select Command-Line Extension
Enter the extension details:
npx -y bitcoin-mcp@latest
Ensure the extension is enabled
Start a Goose session that includes the extension:
goose session --with-extension "bitcoin"
Start the Bitcoin MCP server separately as a standalone service that listens on a specific port
In Goose, add a new Remote Extension
Enter a name for the extension and provide the server's URL (e.g., http://localhost:9000
)
Enable the extension in Goose's settings
To use Lightning Network features, you need to configure LNBits connection details:
{
"lnbitsUrl": "https://demo.lnbits.com",
"lnbitsAdminKey": "your_admin_key",
"lnbitsReadKey": "your_read_key"
}
To obtain these values:
Once installed, you can interact with the Bitcoin MCP server through Claude or Goose by asking questions related to Bitcoin operations. Here are some examples:
Ask: "Generate a new Bitcoin key pair for me"
Ask: "Is this Bitcoin address valid: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa?"
Ask: "Decode this Bitcoin transaction: [raw transaction hex]"
Ask: "What's the latest block on the Bitcoin network?"
Ask: "Give me information about the transaction with TXID abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"
Ask: "Decode this Lightning invoice: [BOLT11 invoice]"
Ask: "Pay this Lightning invoice: [BOLT11 invoice]" (requires proper LNBits configuration)
If you encounter issues with the MCP server connection:
Check Claude's logs (if using Claude Desktop):
~/Library/Logs/Claude/
%APPDATA%\Claude\logs\
Look for mcp.log
and mcp-server-bitcoin-mcp.log
files
Make sure the server is running correctly (if using as a remote extension)
Verify your configuration and ensure all paths and commands are correct
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "bitcoin-mcp" '{"command":"npx","args":["-y","bitcoin-mcp@latest"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"bitcoin-mcp": {
"command": "npx",
"args": [
"-y",
"bitcoin-mcp@latest"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"bitcoin-mcp": {
"command": "npx",
"args": [
"-y",
"bitcoin-mcp@latest"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect