mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 14:49:58 -07:00
836 B
836 B
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
- LLM calls
get_openapito discover available endpoints - LLM calls
fetchwith 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_rmcpfor MCP protocol implementationminreqfor HTTP requests