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

Uploaded Python 3

File details

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

File metadata

  • Download URL: braiins_hashpower_mcp-1.0.4.tar.gz
  • Upload date:
  • Size: 7.4 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.4.tar.gz
Algorithm Hash digest
SHA256 b22e864f5f3e2a06bc87e767deddd241271009f85ffd8f7d58000c66b84f1243
MD5 1657c201df6e5058928647fbcb6b4b8c
BLAKE2b-256 f25320b8c510ce022fbe962b78c00e48ae4e5a3c6e9356a437a13dc62c16c898

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for braiins_hashpower_mcp-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3b514fdb17d9772fc152a2dfb37c741f8ac19214025df0a22b5efea52d93cd0a
MD5 eb3ee7fc5326270245ce7e965a3a3427
BLAKE2b-256 cbc70c3ca2f4b6f8680c380be92c4775024e0827e1fb6119b04a080369640bae

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