Model Context Protocol (MCP)
The Maestro MCP Server is a Model Context Protocol implementation that enables AI agents and LLMs to interact with Bitcoin blockchain data through the Maestro API. It acts as a bridge, translating natural language queries into blockchain API calls via a standardized streamable HTTP protocol.Available Services
The MCP server exposes five Maestro API service categories:| Service | Description |
|---|---|
| Blockchain Indexer | Query blocks, transactions, and historical chain data |
| Mempool Monitoring | Track pending and unconfirmed transactions |
| Market Price | Access real-time Bitcoin pricing information |
| Wallet | Address lookups, balance queries, and UTXO management |
| Node RPC | Direct Bitcoin node interaction capabilities |
Setup
Prerequisites
- Bun v1.0 or higher
- A Maestro API key
Installation
Configuration
.env to add your Maestro API key and select a network:
| Network | Base URL |
|---|---|
| Mainnet | https://xbt-mainnet.gomaestro-api.org/v0 |
| Testnet4 | https://xbt-testnet.gomaestro-api.org/v0 |
Launch
http://localhost:3000/mcp.
Client Examples
The maestro-mcp-client-examples repository provides working integration examples:| Example | Description |
|---|---|
| basic-streamablehttp-client | Raw streamable HTTP transport connection to the MCP server |
| Claude | Integration with Claude AI for natural language blockchain queries |
| Cursor | Configuration for using Maestro MCP in the Cursor editor |

