Provides tools for retrieving Bitcoin UTXO details and block statistics, enabling analysis of on-chain data including unspent transaction outputs, transaction counts, and block information.
Integrates with Blockchain.com API to fetch Bitcoin network data, providing access to UTXO information and block statistics for Bitcoin addresses and blocks.
Bitcoin UTXO MCP
An MCP server that tracks Bitcoin's Unspent Transaction Outputs (UTXO) and block statistics, giving AI agents direct access to essential on-chain data.
Features
- Tools:
get_utxo
: Retrieves UTXO details for a given Bitcoin address, including the number of UTXOs, total value in BTC, and transaction details.get_block_stats
: Fetches transaction statistics for a specific Bitcoin block, including block hash, transaction count, total value, and block time.
- Prompt:
analyze_bitcoin_flow
: A reusable prompt template for LLMs to analyze Bitcoin funds flow, network health, and potential market impacts based on UTXO and block data.
Installation
Prerequisites
- Python: Version 3.10 or higher
- uv: A fast and modern Python package manager (installation instructions)
Setup
- Clone the Repository:
- Install dependencies:
- Install to Claude Desktop: Install the server as a Claude Desktop application:Configuration file as a reference:Replace
/path/to/bitcoin-utxo-mcp
with your actual installation path.
Usage
Available Tools and Prompts
- Tools:
get_utxo(address: str)
: Returns UTXO details for a Bitcoin address, e.g., "Address 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa: 50 UTXOs, Total Value: 50.00000000 BTC, UTXO Details: ...".get_block_stats(block_height: int)
: Returns block statistics, e.g., "Block Height: 0, Block Hash: 000000000019d668..., Transactions: 1, Total Value: 50.00000000 BTC, Block Time: 1231006505".
- Prompt:
analyze_bitcoin_flow()
: Generates a prompt for LLMs to analyze UTXO and block data, e.g., "Analyze the provided Bitcoin UTXO and block data: What do the UTXO distributions indicate about funds flow? ...".
Example Interaction
Below are examples of natural language prompts you might use in an MCP-compatible client (e.g., Claude Desktop) and the corresponding outputs from the server, based on hypothetical Blockchain.com API responses.
- Get UTXO for a Bitcoin Address:
- Prompt: "Show me the UTXO details for the Bitcoin genesis address."
- Command:
get_utxo("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa")
- Output:
- Get Block Statistics:
- Prompt: "What's the transaction data for the Bitcoin genesis block?"
- Command:
get_block_stats(0)
- Output:
- Analyze Bitcoin Flow:
- Prompt: "Analyze Bitcoin funds flow and network health."
- Command:
analyze_bitcoin_flow()
- Output (prompt sent to LLM for analysis):
- LLM Response (example, depends on the LLM):
- LLM Response (example, depends on the LLM):
License
This project is licensed under the MIT License. See the LICENSE file for details.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server that tracks Bitcoin's Unspent Transaction Outputs (UTXO) and block statistics, giving AI agents direct access to essential on-chain data.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server providing unified access to blockchain operations, bridging, swapping, and crypto trading strategies for AI agents.Last updated -37190GPL 3.0
- AsecurityAlicenseAqualityProvides an MCP server that allows large language models to access real-time and historical Bitcoin market data from Binance, including current prices, order book data, recent trades, and price history through a standardized interface.Last updated -192MIT License
CoinStats MCP Serverofficial
AsecurityAlicenseAqualityMCP Server for the CoinStats API. Provides access to cryptocurrency market data, portfolio tracking, and news.Last updated -30287MIT License- -securityFlicense-qualityAn MCP server that provides access to cryptocurrency market data from the Nobitex API, enabling users to fetch specific cryptocurrency pair statistics and global market data.Last updated -23