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

Installation

No manual installation needed. uvx fetches and runs the package from PyPI automatically on first use.

If you prefer pip:

pip install braiins-hashpower-mcp

Connecting to Claude Code (VS Code)

Add to your .mcp.json (using uvx):

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

Or if using pip, replace "command": "uvx" and "args": ["braiins-hashpower-mcp"] with "command": "braiins-hashpower-mcp" and "args": [].

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-1.0.5.tar.gz (7.3 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-1.0.5-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: braiins_hashpower_mcp-1.0.5.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for braiins_hashpower_mcp-1.0.5.tar.gz
Algorithm Hash digest
SHA256 4c37e322f9165efd0d6b447c2bd95468c050ece57d6144f0bf77b8540a5594f6
MD5 eb9ca85226359a4e6b8fd05b9219aec9
BLAKE2b-256 a2168514b12b4b844031a9755ea74f5d8d6ade99d72009adb1b326523b333565

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for braiins_hashpower_mcp-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a420cd9bb3e8d820ecd1ca6722f0cd4b00c6e009d5beaa7de85aef3e1727e729
MD5 e6cdf9b1bc7af7572b591f671b8e2238
BLAKE2b-256 d3edbf5177a9245a809424afd43d913d4fa2b1912ba3115398174fbf404fb531

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