Let your AI copilot trade Bitkub — with guardrails.
An MCP server that wires Claude & Codex straight into the Bitkub exchange. 39 tools for market data, indicators, risk sizing, and live orders — driven by a long-only swing-trading playbook that refuses any trade over your risk limit.
The tools are the hands. The playbook is the brain.
Everything an AI agent needs to run a disciplined long-only swing strategy on Bitkub — without ever bypassing your risk controls.
Live market data
Tickers, order-book depth, spread, liquidity, screener, and historical candles — all public endpoints work without API keys.
Real indicators
EMA, RSI, ATR, ROC, CAPM, market-regime and relative-strength checks — computed server-side, not hallucinated.
Risk-first sizing
Position size is derived from your stop and account risk. A validate gate blocks any setup that breaks the rules.
Live order management
Place limit & stop-limit orders, cancel, and poll status. Fee-aware math and exchange-rounding built in.
Client-side stops
Bitkub has no native stop/OCO — so a client-side stop worker watches price and triggers your exit for you.
Trade journal
Every entry and exit is logged to a flat-file journal, with expectancy and performance you can review any time.
One disciplined path from idea to logged trade
The bitkub-trade skill walks the agent through every step — and the validate gate is non-negotiable.
Tools plus a brain that won’t blow up your account
Install the playbook as a plugin in Claude Code or Codex. It turns 39 raw tools into a strategy with hard limits baked in.
The hands — MCP tools
- Market & data — ticker, depth, screener, candles, spread & liquidity.
- Indicators — EMA, RSI, ATR, ROC, CAPM, regime, relative strength.
- Orders & wallet — place, cancel, status, balances, open orders.
- Journal — log entries/exits, expectancy, trade history.
The brain — guardrails
- ≤2% risk per trade — position size capped to your account risk.
- Long-only — no shorting, no leverage, no surprises.
- No entry unless
can_trade=truefrom the validate gate. - Client-side stop · TP ≥ 2R — protected exits and a real reward target.
A complete swing-trading toolkit
From screening the market down to logging your expectancy — every step has a dedicated, tested tool.
Foundation
7get_wallet_balanceget_tickerget_market_depthget_my_open_ordersget_symbolsget_symbol_rulesget_fee_scheduleMarket & Liquidity
5calculate_spreadcalculate_liquidity_depthget_market_screenerget_historical_candlesextract_close_pricesIndicators
6calculate_emacalculate_roccalculate_atrcalculate_rsicheck_market_regimecalculate_capmEntry Signals
3detect_breakout_signaldetect_pullback_signalcalculate_relative_strength_rankPosition & Risk
3calculate_position_sizevalidate_trade_setupround_to_exchange_rulesOrder Management
4place_limit_orderplace_stop_limit_ordercancel_orderget_order_statusTrade Management
4check_trade_pnlcalculate_trailing_stopcheck_exit_signalsclient_side_stop_workerLogging & Performance
4log_trade_entrylog_trade_exitcalculate_expectancyget_trade_historyHelpers
3get_market_overviewsimulate_tradepnl_with_feesConnected in three steps
Public market-data tools work with zero config. Add your Bitkub keys when you need wallet & order tools.
Install the server
A single Go binary — lands in $(go env GOPATH)/bin.
# requires Go 1.25+
go install github.com/dvgamerr-app/gokub-mcp@latestRegister it with your AI client
Runs over stdio — no flags needed. Use claude mcp add or codex mcp add.
claude mcp add bitkub \ -e BTK_APIKEY=your_api_key \ -e BTK_SECRET=your_secret_key \ -- "$(go env GOPATH)/bin/gokub-mcp"
Install the trading playbook
The repo doubles as a plugin marketplace — this adds the strategy & guardrails.
# in Claude Code
/plugin marketplace add dvgamerr-app/gokub-mcp
/plugin install bitkub-trade@gokub-mcpHand the charts to your agent.
Keep the risk rules to yourself.
Star the repo, join the community, and ship your first risk-sized swing trade today.