@ryno-crypto/braiins-insights-mcp-server
v0.4.0
Published
Model Context Protocol server for Braiins Insights Dashboard API
Maintainers
Readme
Braiins Insights MCP Server
Connect your AI coding assistant (Claude Desktop, Cursor, GitHub Copilot) to real-time Bitcoin network analytics through the Braiins Insights Dashboard API. Access hashrate statistics, mining profitability calculations, network difficulty trends, and 14 additional data sources via standardized Model Context Protocol (MCP) tools.
🚀 Features
Core Capabilities
- 19 MCP Tools: Hashrate stats, difficulty metrics, block data, profitability calculators, and more
- Composite Analytics: Multi-endpoint tools for mining overviews and profitability deep dives
- Intelligent Caching: Variable TTLs (30s-24h) based on data update frequency
- Public API: No authentication required for most endpoints
- Multi-Platform: Claude Desktop, Cursor IDE, VS Code with Copilot support
Data Sources (v1.0 & v2.0 APIs)
| Category | Tools | Update Frequency | |----------|-------|------------------| | Network Stats | Hashrate, Difficulty, Blocks | 30s - 5min | | Market Data | Price stats, Transaction fees | 5min | | Mining Economics | Profitability calculator, Cost-to-mine | Real-time | | Historical Data | Hashrate history, Revenue trends | 10min - 1h | | Static Reference | Halvings, Hardware specs | 24h |
📋 Prerequisites
- Node.js 18+ with npm/yarn
- TypeScript 5.0+
- MCP-compatible client:
- Claude Desktop 0.7.0+
- Cursor IDE with MCP extension
- VS Code with GitHub Copilot Chat
🛠️ Installation
Option 1: NPM Package (Recommended)
npm install -g @ryno-crypto/braiins-insights-mcp-serverOption 2: From Source
git clone https://github.com/Ryno-Crypto-Mining-Services/braiins-insights-mcp-server.git
cd braiins-insights-mcp-server
npm install
npm run buildOption 3: Docker (GitHub Container Registry)
Pull the latest release from GitHub Container Registry:
docker pull ghcr.io/ryno-crypto-mining-services/braiins-insights-mcp-server:latestRun interactively (for testing):
docker run -it --rm ghcr.io/ryno-crypto-mining-services/braiins-insights-mcp-server:latestOption 4: Build Docker Locally
Clone and build the Docker image from source:
git clone https://github.com/Ryno-Crypto-Mining-Services/braiins-insights-mcp-server.git
cd braiins-insights-mcp-server
# Build the image
docker build -t braiins-insights-mcp-server:local .
# Run interactively (for testing)
docker run -it --rm braiins-insights-mcp-server:local⚙️ Configuration
Claude Desktop Setup
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Option A: NPM Package (Recommended)
{
"mcpServers": {
"braiins-insights": {
"command": "npx",
"args": ["-y", "@ryno-crypto/braiins-insights-mcp-server"]
}
}
}Option B: Docker (GitHub Container Registry)
{
"mcpServers": {
"braiins-insights": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"ghcr.io/ryno-crypto-mining-services/braiins-insights-mcp-server:latest"
]
}
}
}Option C: Local Docker Build
{
"mcpServers": {
"braiins-insights": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"braiins-insights-mcp-server:local"
]
}
}
}Cursor IDE Setup
Add to .cursor/mcp.json in your project root or ~/.cursor/mcp.json for global configuration:
Option A: NPM Package (Recommended)
{
"mcpServers": {
"braiins-insights": {
"command": "npx",
"args": ["-y", "@ryno-crypto/braiins-insights-mcp-server"]
}
}
}Option B: Docker (GitHub Container Registry)
{
"mcpServers": {
"braiins-insights": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"ghcr.io/ryno-crypto-mining-services/braiins-insights-mcp-server:latest"
]
}
}
}Option C: Local Docker Build
{
"mcpServers": {
"braiins-insights": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"braiins-insights-mcp-server:local"
]
}
}
}See CLAUDE.md, COPILOT.md for detailed platform-specific instructions.
🎯 Usage Examples
Basic Queries (Claude Desktop)
Q: "What's the current Bitcoin network hashrate?"
Tool: braiins_hashrate_stats
Response:
# 📊 Bitcoin Network Hashrate Statistics
- Hashrate: 756.42 EH/s
- Estimated Hashrate: 751.18 EH/s
- 30-Day Average: 748.91 EH/sQ: "Show me the last 10 blocks"
Tool: braiins_blocks (limit: 10)
Response:
| Height | Pool | Timestamp | Block Value (BTC) | Block Value (USD) |
|---------|-------------|-----------|-------------------|-------------------|
| 872,450 | Braiins | 2m ago | 3.12500000 BTC | $300,750.00 |
| 872,449 | Foundry USA | 12m ago | 3.15230000 BTC | $303,384.75 |
...Advanced Queries (Composite Tools)
Q: "Give me a comprehensive mining overview"
Tool: braiins_mining_overview
Fetches: Hashrate + Difficulty + Price + Recent Blocks
Response: Unified markdown report with all dataQ: "Is mining profitable at $0.08/kWh with 25 J/TH hardware?"
Tool: braiins_profitability_calculator
Args: { electricity_cost_kwh: 0.08, hardware_efficiency_jth: 25 }
Response:
# ⚡ Mining Profitability Analysis
- Daily Revenue: $3.42/TH
- Electricity Cost: $1.92/TH
- Net Profit: $1.50/TH per day
- ROI Period: 487 days (at $5,000 hardware cost)🧰 Available MCP Tools
19 tools implemented across 4 categories. See TOOL_CATALOG.md for complete reference.
Simple Stats Tools (7 tools - No Parameters Required)
| Tool | Description |
|------|-------------|
| braiins_hashrate_stats | Network hashrate, 30-day average, hash price, transaction fees, YoY trends |
| braiins_difficulty_stats | Current difficulty, next adjustment prediction, epoch timing |
| braiins_price_stats | Current BTC price with 24h change percentage |
| braiins_pool_stats | Mining pool distribution by hashrate with decentralization metrics |
| braiins_transaction_stats | Mempool size, average fees, confirmation times, 24h volume |
| braiins_rss_feed_data | Latest Braiins blog posts and announcements |
| braiins_halvings | Halving countdown, block rewards, historical events |
Parameterized Tools (5 tools - With Input Parameters)
| Tool | Parameters | Description |
|------|------------|-------------|
| braiins_blocks | limit (1-100) | Recent blocks with pool, timestamp, value |
| braiins_blocks_by_country | limit (1-50) | Bitcoin blocks mined by country with geographic distribution |
| braiins_profitability_calculator | electricity_cost_kwh, hardware_efficiency_jth, hardware_cost_usd? | Mining profitability with ROI analysis |
| braiins_cost_to_mine | hashrate_ths, consumption_watts, electricity_price_per_kwh | Cost to mine 1 BTC with break-even analysis |
| braiins_hardware_stats | models? (string array) | Hardware specs and efficiency data |
Historical Data Tools (4 tools - Time-Series Data)
| Tool | Parameters | Description |
|------|------------|-------------|
| braiins_daily_revenue_history | limit? (1-365) | Daily mining revenue trend |
| braiins_hashrate_and_difficulty_history | limit? (1-1000) | Historical network hashrate and difficulty |
| braiins_hashrate_value_history | limit? (1-365) | Hash price correlation over time |
| braiins_transaction_fees_history | limit? (1-365) | Fee market evolution |
Composite Tools (3 tools - Multi-Endpoint Aggregators)
| Tool | Parameters | Combines | Description |
|------|------------|----------|-------------|
| braiins_mining_overview | include_recent_blocks?, block_count? | Hashrate + Difficulty + Price + Blocks | 30-second ecosystem snapshot |
| braiins_profitability_deep_dive | electricity_cost_kwh, hardware_efficiency_jth, hashrate_ths?, include_historical? | Calculator + Cost-to-mine + Price + History | Comprehensive profitability analysis |
| braiins_network_health_monitor | include_detailed_history?, history_hours? | Hashrate + Difficulty + Transactions + History | Network health score with anomaly detection |
Detailed Tool Examples
braiins_hashrate_stats
Get current Bitcoin network hashrate statistics.
"What's the current Bitcoin network hashrate?"Returns: Current/estimated hashrate (EH/s), 30-day average, hash price (USD/TH/day), fee metrics, YoY change.
braiins_blocks
Get recent Bitcoin blocks with optional limit.
Parameters:
limit(optional, default: 10, max: 100) - Number of blocks to return
"Show me the last 20 blocks"
→ { limit: 20 }Returns: Blocks table (height, pool, timestamp, transaction count, size, hash).
braiins_cost_to_mine
Calculate the cost to mine one Bitcoin based on hardware specifications.
Parameters:
hashrate_ths(required) - Mining hashrate in TH/sconsumption_watts(required) - Hardware power consumption in wattselectricity_price_per_kwh(required, 0-1) - Electricity cost in USD/kWh
"How much does it cost to mine 1 BTC with my Antminer S19 at $0.08/kWh?"
→ { hashrate_ths: 100, consumption_watts: 3250, electricity_price_per_kwh: 0.08 }Returns: Cost to mine 1 BTC, profit margin, break-even analysis.
braiins_profitability_calculator
Calculate Bitcoin mining profitability.
Parameters:
electricity_cost_kwh(required, 0-1) - Electricity cost in USD/kWhhardware_efficiency_jth(required, 1-200) - Hardware efficiency in J/THhardware_cost_usd(optional) - Hardware cost for ROI calculation
"Is mining profitable at $0.08/kWh with an Antminer S21?"
→ { electricity_cost_kwh: 0.08, hardware_efficiency_jth: 17.5 }Returns: Daily/monthly profit, ROI period, break-even analysis.
braiins_mining_overview
Comprehensive Bitcoin mining ecosystem overview.
Parameters:
include_recent_blocks(optional, default: true) - Include recent blocksblock_count(optional, default: 5, max: 20) - Number of blocks
"Give me a comprehensive mining overview"
→ { include_recent_blocks: true, block_count: 5 }Returns: Unified report with hashrate, difficulty, price, and recent blocks.
🏗️ Architecture
AI Assistant → MCP Protocol (JSON-RPC) → Braiins Insights MCP Server
├─ Tool Registry (19 tools)
├─ Input Validation (Zod)
├─ API Client with Caching
└─ Rate Limiter (30 req/min)
↓
Braiins Insights Dashboard API
(https://insights.braiins.com/api)Key Components:
- MCP Server Core: Tool registration, request routing, stdio transport
- API Client: HTTP communication, caching (variable TTLs), rate limiting
- Tool Layer: Simple stats, parameterized tools, composite tools
- Validation Layer: Zod schemas for type-safe inputs
See ARCHITECTURE.md for detailed technical design.
🧪 Testing
# Run all tests
npm test
# Unit tests only
npm run test:unit
# Integration tests (requires network access)
npm run test:integration
# E2E tests with Claude Desktop
npm run test:e2eTest Coverage:
- Unit tests (70%): Individual tools, cache logic, response formatting
- Integration tests (25%): Real API requests with fixtures
- E2E tests (5%): Full MCP protocol with stdio transport
📚 Documentation
| Document | Description | |----------|-------------| | TOOL_CATALOG.md | Complete MCP tool reference with all parameters and examples | | USAGE_EXAMPLES.md | Practical usage examples and integration patterns | | ARCHITECTURE.md | Technical design, data flow, caching strategy | | API.md | Braiins Insights API endpoint reference | | DEVELOPMENT_PLAN.md | Implementation roadmap, phase breakdown | | AGENTS.md | Multi-agent orchestration guide | | CLAUDE.md | Claude Desktop setup instructions | | COPILOT.md | GitHub Copilot integration guide | | CHANGELOG.md | Version history and release notes |
🤝 Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-tool) - Commit changes with conventional commits (
feat: add mining alerts tool) - Test your changes (
npm test) - Push to branch (
git push origin feature/amazing-tool) - Open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
📜 License
Apache License 2.0 - see LICENSE for details.
🙏 Acknowledgments
- Braiins Team: For the comprehensive Insights Dashboard API
- Anthropic: For the Model Context Protocol specification
- Community Contributors: See CONTRIBUTORS.md
📞 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: [email protected]
Stay Connected
- Website: rynocrypto.com
- Nostr: [email protected]
- BlueSky: RynoMining
- X/Twitter: @RynoMining
- GitHub: Ryno-Crypto-Mining-Services
- LinkedIn: Company Page
- Repository: https://github.com/Ryno-Crypto-Mining-Services/braiins-insights-mcp-server
- Maintained By: Ryno Crypto Mining Services
- Last Updated: February 17, 2026
Made with ⛏️ by miners, for miners
