Skip to main content

MCP server for the Braiins Hashpower Spot Market API

Project description

Braiins Hashpower MCP Server

An MCP (Model Context Protocol) server that wraps the Braiins Hashpower Spot Market API, exposing it as tools for Claude and other MCP clients.

Features

  • Query live market data: stats, orderbook, recent trades, OHLCV bars
  • Manage bids: create, update, cancel, and inspect active or historical bids
  • View account balance and transaction history
  • All price values use the API's native unit: sat/EH/day

Prerequisites

Connecting to Claude Code (VS Code)

Add to your .mcp.json:

{
  "mcpServers": {
    "braiins-hashpower": {
      "command": "uvx",
      "args": ["braiins-hashpower-mcp"],
      "env": {
        "BRAIINS_API_KEY": "your_api_key_here"
      }
    }
  }
}

Then reload the VS Code window (Cmd+Shift+PDeveloper: Reload Window).

Connecting to Claude Code (CLI)

claude mcp add braiins-hashpower \
  -e BRAIINS_API_KEY=your_api_key_here \
  -- uvx braiins-hashpower-mcp

To remove it later:

claude mcp remove braiins-hashpower

Available Tools

Public (no API key required)

Tool Description
get_market_stats Best bid/ask prices, 24h volume, matched/available hashrate
get_orderbook Current order book snapshot (bids and asks)
get_recent_trades Most recently executed trades
get_market_bars OHLCV candlestick bars (specify period and optional limit)

Authenticated (require API key)

Tool Description
get_market_settings Trading rules: price/speed limits, tick size, hr_unit
get_fee_structure Spot market fee structure
get_account_balance BTC balances across subaccounts
get_transactions Account transactions (deposits, withdrawals, trades)
get_onchain_transactions On-chain Bitcoin transactions
get_current_bids All currently active bids
get_bids Historical and active bids with optional filters
get_bid_detail Full details for a specific bid
get_bid_speed_history Hashrate time series for a bid
get_bid_delivery_history Share delivery history for a bid
create_bid Place a new bid
update_bid Modify price, amount, or speed of an active bid
cancel_bid Cancel an active bid

Units

Field Unit
Price (price_sat) sat/EH/day
Speed (speed_limit_ph) PH/s
Amount (amount_sat) satoshis

Note: The Braiins web UI displays prices in sat/PH/day. To convert: multiply UI price × 1,000 to get the API value (e.g. 48,000 sat/PH/day → 48,000,000 sat/EH/day).

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

braiins_hashpower_mcp-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

braiins_hashpower_mcp-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file braiins_hashpower_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: braiins_hashpower_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for braiins_hashpower_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef46d598bfdc2c9025ac53783f0b9c0c4c2f24b2d93597838b69baa78e2bf840
MD5 da9350c053967167694f6d38a94983f6
BLAKE2b-256 af3a7a706c8a5201c6bb9f3a5661f9c76896d9c7335fb95f030648fe73e1f2b8

See more details on using hashes here.

File details

Details for the file braiins_hashpower_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for braiins_hashpower_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6b2cd1a7e9593afd684ab499653dc656129ea91f7afa75a5361af167b7eecdc
MD5 50873a1c33f69fc14d6e992e74018fb0
BLAKE2b-256 ff34fe66a1821a00d7776aff029504163e7375f8f7449c5a3f4d88abe079e9e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page