41 releases

Uses new Rust 2024

0.1.0-alpha.3 Jan 14, 2026
0.1.0-alpha.2 Jan 4, 2026
0.1.0-alpha.1 Dec 21, 2025
0.0.111 Oct 3, 2025
0.0.71 Jun 25, 2025

#24 in #brk

MIT license

13KB
115 lines

brk_mcp

Model Context Protocol (MCP) server for Bitcoin on-chain data.

What It Enables

Expose BRK's REST API to AI assistants via MCP. The LLM reads the OpenAPI spec and calls any endpoint through a generic fetch tool.

Available Tools

Tool Description
get_openapi Get the OpenAPI specification for all REST endpoints
fetch Call any REST API endpoint by path and query

Workflow

  1. LLM calls get_openapi to discover available endpoints
  2. LLM calls fetch with the desired path and query parameters

Usage

let mcp = MCP::new("http://127.0.0.1:3110", openapi_json);

Integration

The MCP server is integrated into brk_server and exposed at /mcp endpoint.

Built On

  • brk_rmcp for MCP protocol implementation
  • minreq for HTTP requests

Dependencies

~12–17MB
~218K SLoC