A Model Context Protocol (MCP) server for interacting with Bitcoin via the Maestro API platform. This package provides a set of tools for exploring blocks, transactions, addresses, and other aspects of the Bitcoin blockchain.
- Python >=3.10
- Python MCP SDK >= 1.2.0
uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create a virtual environment
uv venv
# Activate virtual environment
# Linux/MacOS
source .venv/bin/activate
# Windows
# .venv\Scripts\activate
# Install dependencies
uv pip install .
Download Claude Desktop here.
-
Open Claude Desktop settings
-
Select
Edit Config
-
Open the Claude App configuration file located at:
~/Library/Application Support/Claude/claude_desktop_config.json
and copy the below contents into this file
You will need 3 things:
- Absolute path to
uv
; ie,which uv
- Absolute path to
mcp-maestro
repo - Maestro API key
{
"mcpServers": {
"maestro-mcp": {
"command": "/ABSOLUTE/PATH/TO/uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/maestro-mcp",
"run",
"maestro.py"
],
"env": {
"MAESTRO_BASE_URL": "https://xbt-mainnet.gomaestro-api.org/v0",
"MAESTRO_API_KEY": "<MAESTRO_API_KEY>"
}
}
}
}
- Restart Claude after any change to either the
claude_desktop_config.json
or the source code.
NOTE: You will need to approve the request within Claude.
tail -n 20 -f ~/Library/Logs/Claude/mcp-server-maestro-mcp.log
- /mempool/addresses/:id/utxos
- /transactions/:id
- /rpc/general/info
- /rpc/block/latest
- /rpc/transaction/:id
- /rpc/transaction/submit
- /assets/runes
- /assets/runes/:id
- /addresses/:id/runes
- /addresses/:id/utxos
- /addresses/:id/txs
All Maestro API specifications can be found in our Postman workspace.
Contributions and feature requests are welcome! Please document clearly as needed. Feel free to submit a pull request or open an issue.
If you are experiencing any trouble with the above, open an issue or reach out on Discord.