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

Uploaded Python 3

File details

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

File metadata

  • Download URL: braiins_hashpower_mcp-1.0.6.tar.gz
  • Upload date:
  • Size: 7.8 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.6.tar.gz
Algorithm Hash digest
SHA256 3899bb51e353592fda4930c6ae137895193ab0a6a1648cc5dde249a674e9eaf3
MD5 9e6f62b3a57e1f0a9f29b6b96b7309d2
BLAKE2b-256 8a7308fdf964bef84b4b2b48f8ac2c614978346e0c169aa60c9fcf34641ae82a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for braiins_hashpower_mcp-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5ff3dbbc69b0618bb46af912e4654803a8c3b02f60f9d17fd9332aad13d2fe46
MD5 2819c4d64c37d0de2599db66da56027f
BLAKE2b-256 7a0b31f9b91fecce64b6fef04e0328ac21e20bdd9e6e564e5b963e520c1e49f2

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