Bitcoin MCP Server logo

Bitcoin MCP Server

by moncho

Bitcoin MCP Server is a Go-based service providing a unified interface to interact with a Bitcoin node through various RPC commands using the Model Context Protocol (MCP). It organizes Bitcoin RPC functionality into logical categories and provides a clean, well-documented API.

View on GitHub

Last updated: N/A

What is Bitcoin MCP Server?

Bitcoin MCP Server is a Go-based service that acts as a unified interface for interacting with a Bitcoin node. It uses the Model Context Protocol (MCP) to organize Bitcoin RPC functionality into logical categories, providing a clean and well-documented API for accessing blockchain data and operations.

How to use Bitcoin MCP Server?

To use the server, you need a Bitcoin Core node with RPC enabled, Go 1.24 or later, and a basic understanding of Bitcoin RPC commands. After cloning the repository, install dependencies, build the server, configure the config.json file with your Bitcoin node's RPC credentials and server settings, and then run the server. The server exposes a RESTful API that can be accessed using tools like curl to retrieve blockchain information, block data, mempool information, and more.

Key features of Bitcoin MCP Server

  • Comprehensive Bitcoin RPC interface using Model Context Protocol

  • Organized by functional categories (Blockchain, Mempool, UTXO, Management)

  • Secure authentication

  • Comprehensive error handling

  • Clean and documented API

Use cases of Bitcoin MCP Server

  • Building blockchain explorers

  • Developing Bitcoin wallets

  • Automating Bitcoin node management

  • Integrating Bitcoin data into other applications

FAQ from Bitcoin MCP Server

What is Model Context Protocol (MCP)?

MCP is a protocol used to organize and structure the interaction with the Bitcoin node's RPC interface, making it easier to access and manage blockchain data.

What are the prerequisites for running the server?

You need Go 1.24 or later, a Bitcoin Core node with RPC enabled, and a basic understanding of Bitcoin RPC commands.

How do I configure the server?

Create a config.json file with your Bitcoin node's RPC URL, username, password, and server settings (port, host).

How do I access the API?

The server provides a RESTful API. You can use tools like curl to send HTTP requests to the server's endpoints.

Where can I find the API documentation?

Detailed API documentation and specifications are available in the API Specification and GoDoc Documentation.