1. Conduid
  2. Finance
  3. Gokub MCP
MCP server · Finance

Gokub MCP

🚀 Model Context Protocol (MCP) server for Bitkub Cryptocurrency Exchange API - Connect Claude Desktop with Bitkub trading platform using Go

58Fair

Scored 23 hours ago · breakdown

About Gokub MCP

Gokub MCP is an MCP server published by dvgamerr-app in the Finance category: 🚀 Model Context Protocol (MCP) server for Bitkub Cryptocurrency Exchange API - Connect Claude Desktop with Bitkub trading platform using Go. Conduid read 42 tools from its source: analyze_chart, analyze_market_trades, backtest_signals, calculate_atr, calculate_capm, calculate_ema and 36 more. No package is published for it, so it installs from a source checkout.

The repository has 4 stars and 2 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v1.2.0 (5 Aug 2026): Changelog New Features 34e0a527e5928c812b9041e6af44d4f6bf6783f9: feat: implement GetFloat64ArrayArg utility function and refactor price argument handling in EMA, RSI, an… It follows v1.1.2 (3 Jul 2026), and the 5 most recent releases go back to v1.0.2 (17 Jun 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include finance, bitkub-api, bitkub, cryptocurrency, go-bitkub and open-source.

Install

From source
git clone https://github.com/dvgamerr-app/gokub-mcp

Tools (42)

analyze_chartRead a completed OHLCV chart with EMA20/50/200, RSI14, ATR14, DMI14/14, MACD12/26/9, Bollinger20/2, Supertrend10/3 and anchored HLC3 VWAP. Descriptive readings, not a probability or trading authorization. No API credentials required.
ParameterTypeDescription
as_of *numberFixed Unix cutoff in seconds; every candle must have closed by this time.
candles *array220-10000 regular-grid completed OHLCV candles with Unix timestamp, open and volume on every row.
resolution *numberCandle timeframe in minutes: 1, 5, 15, 60, 240, 1440.
vwap_anchornumberOptional Unix candle-open timestamp for anchored VWAP. Default latest candle's UTC midnight; not an exchange-specific session. Incomplete coverage returns an unavailable VWAP.
analyze_market_tradesAnalyze ALL liquid exchange-only THB pairs using closed, fresh candles. Runs screening, wallet/fees, relative strength, regime/EMA, daily ATR filter, breakout/pullback, open-order checks, fee-aware sizing, net-profit targets and validation. Read-only: never places orders. Returns every pair and explicit rejection reasons; no candle arrays.
ParameterTypeDescription
entry_resolutionnumberEntry timeframe in minutes (default 15)
risk_percentnumberMaximum loss including both-leg fees and spread as percentage of available THB (0-2, default 2)
target_net_percentnumberNet target on position value after fees and spread allowance (1-2, default 2)
trend_resolutionnumberTrend timeframe in minutes (default 240 = 4H)
backtest_signalsEvaluate fixed entry rules chronologically with expanding history, fees and adverse slippage. Includes sample size, approximate win-rate intervals, net R, equal-notional profit factor and hypothetical full-notional closed-trade return/drawdown. Not a multi-symbol portfolio backtest or a probability forecast. No API credentials required.
ParameterTypeDescription
as_of *numberUnix cutoff in seconds; every supplied candle must be closed by this time.
candles *array221-10000 completed OHLCV candles with increasing regular-grid Unix timestamps; supply open and volume on every row.
fee_percentnumberFee per side in percentage points, default 0.25; applies to both entries and exits.
foldsnumberChronological evaluation blocks after 220 warmup candles, 1-10 (default up to 3, limited by available candles). Fixed parameters; no fitting or optimization.
resolution *numberCandle timeframe in minutes.
reward_risknumberGross target distance divided by stop distance, default 2.
slippage_percentnumberAdverse slippage per side in percentage points, default 0.1; spread is included in this assumption.
strategystringbreakout (default), pullback, macd_cross (12/26/9), supertrend_flip (10/3), bollinger_breakout (20/2), ema_crossover (20/50). New chart rules use 1.5x ATR14 initial stops; no automatic live entries.
calculate_atrCalculate Average True Range (ATR) and ATR% from OHLC data
ParameterTypeDescription
candles *arrayArray of OHLC objects with high, low, close properties
period *numberATR period (default: 14)
calculate_capmCalculate Capital Asset Pricing Model (CAPM) expected return from caller-supplied assumptions. This is not a chart indicator, a fitted forecast, an entry signal or a probability of profit. All return inputs must refer to the same horizon. CAPM Formula: E(Ri) = Rf + β * (E(Rm) - Rf) Where: - E(Ri) = Expected return of the asset - Rf = Risk-free rate - β = Beta (sensitivity to market movements) - E(Rm) = Expected market return - E(Rm) - Rf = Market risk premium
ParameterTypeDescription
beta *numberBeta coefficient (asset's sensitivity to market risk, 1.0 = market average)
market_return *numberExpected market return (as decimal: 0.08 for 8%)
risk_free_rate *numberRisk-free rate of return (e.g., government bond yield, as decimal: 0.02 for 2%)
calculate_emaCalculate Exponential Moving Average (EMA) from price data
ParameterTypeDescription
period *numberEMA period (e.g., 9, 12, 20, 26, 50, 200)
prices *arrayArray of price values (close prices) for EMA calculation
calculate_expectancyCompute trading expectancy from closed journal trades: E = win% * avgWinR - (1-win%) * avgLossR.
calculate_liquidity_depthCalculate total bid/ask liquidity value (THB) within a percentage range from mid price
ParameterTypeDescription
range_percentnumberPercentage range from mid price (default: 1.0 = ±1%)
symbol *stringTrading pair symbol (e.g., btc_thb, eth_thb)
calculate_position_sizeCalculate position size based on risk management. Formula: stop_frac = (entry - stop)/entry, position = risk_thb/stop_frac
ParameterTypeDescription
balance *numberTotal available balance in THB
entry *numberEntry price
maker_feenumberMaker fee percentage (optional, default 0.25%)
risk_percent *numberRisk percentage per trade (e.g. 2 for 2%)
stop *numberStop loss price
taker_feenumberTaker fee percentage (optional, default 0.25%)
calculate_relative_strength_rankCalculate and rank symbols by their Relative Strength (ROC) compared to benchmark
ParameterTypeDescription
benchmarkstringBenchmark symbol for comparison
periodnumberROC period for calculation (default: 14)
symbols *objectObject with symbol names as keys and price arrays as values
calculate_rocCalculate Rate of Change (ROC) percentage from price data
ParameterTypeDescription
period *numberROC period (default: 14 for 14-day rate of change)
prices *arrayArray of price values (close prices) for ROC calculation
calculate_rsiCalculate Relative Strength Index (RSI) from price data
ParameterTypeDescription
period *numberRSI period (default: 14)
prices *arrayArray of price values (close prices) for RSI calculation
calculate_spreadCalculate bid-ask spread percentage and mid price for a symbol
ParameterTypeDescription
symbol *stringTrading pair symbol (e.g., btc_thb, eth_thb)
calculate_trailing_stopCalculate an ATR-based trailing stop for a long position from OHLC candles. trailing_stop = current - atr_multiplier * ATR.
ParameterTypeDescription
atr_multipliernumberATR multiplier for stop distance (default 2)
candles *arrayArray of OHLC objects (high, low, close, optional volume)
current_pricenumberCurrent price; defaults to the last candle close
entrynumberEntry price (optional, for break-even recommendation)
periodnumberATR period (default 14)
cancel_orderCancel an open order on Bitkub.
ParameterTypeDescription
order_id *stringOrder id to cancel
side *stringOrder side: buy or sell
symbol *stringTrading pair symbol (e.g., btc_thb)
check_exit_signalsCheck emergency exit signals from OHLCV candles: STRUCTURE_BREAK (close below recent swing low), VOLUME_DRY (<0.5x avg volume), REJECTION_AT_RESISTANCE (upper-wick rejection near recent high).
ParameterTypeDescription
candles *arrayArray of OHLCV objects (high, low, close, open, volume)
lookbacknumberNumber of prior candles for swing/volume reference (default 20)
check_market_regimeAnalyze market regime from close prices or candles. Returns UPTREND, DOWNTREND, or SIDEWAYS with reasons and score.
ParameterTypeDescription
candlesarrayPreferred: completed OHLCV candles for Wilder ADX. Do not supply both prices and candles.
lookbacknumberLookback period for analysis. Default: 20
pricesarrayArray of close prices for market regime analysis. Close-only fallback; ADX is unavailable without OHLC candles.
check_trade_pnlCheck current PnL of an open long position, net of both-leg fees. Returns pnl_thb, pnl_pct and R-multiple (if stop provided).
ParameterTypeDescription
current_pricenumberCurrent price; fetched from ticker if omitted
entry *numberEntry price
maker_feenumberMaker fee %% (default 0.25)
qty *numberPosition quantity (coins)
stopnumberStop price (for R-multiple; optional)
symbol *stringTrading pair symbol (e.g., btc_thb)
taker_feenumberTaker fee %% (default 0.25)
client_side_stop_workerSingle-shot client-side stop check (Bitkub has no native stop). Checks current price against the trigger; if reached, places the protective limit order. Poll repeatedly (e.g. via a loop) until triggered=true.
ParameterTypeDescription
current_pricenumberOptional current price; fetched from ticker if omitted
limit_price *numberLimit price for the order placed when triggered
qty *numberOrder amount (sell: coin qty; buy: THB to spend)
sidestringOrder side when triggered: sell (protect long, default) or buy (breakout entry)
symbol *stringTrading pair symbol (e.g., btc_thb)
trigger *numberTrigger price. sell fires when price <= trigger; buy fires when price >= trigger
detect_breakout_signalDetect breakout signal when price makes new high with volume confirmation
ParameterTypeDescription
atr_multipliernumberATR multiplier for stop loss (default: 1.5)
candles *arrayArray of OHLCV candles (need at least lookback+1 candles)
lookbacknumberNumber of periods to check for new high (default: 20)
volume_thresholdnumberVolume multiplier threshold (default: 1.5 = 150% of average)
detect_pullback_signalDetect pullback signal when price touches EMA20 with RSI bounce and reversal candle
ParameterTypeDescription
candles *arrayArray of OHLCV candles (need at least 20+ for EMA and RSI calculation)
ema_periodnumberEMA period for pullback detection (default: 20)
rsi_maxnumberMaximum RSI for bounce zone (default: 50)
rsi_minnumberMinimum RSI for bounce zone (default: 40)
rsi_periodnumberRSI period (default: 14)
extract_close_pricesExtract close prices array from candles data (for use with EMA, RSI, ROC tools)
ParameterTypeDescription
candles *arrayArray of OHLCV candle objects
get_fee_scheduleGet trading fee schedule (maker/taker rates) based on user's trading level and credits
get_historical_candlesGet historical candlestick/OHLCV data for symbols with specified timeframe and limit. Supports single or multiple symbols.
ParameterTypeDescription
as_ofnumberOptional Unix timestamp in seconds; fixed cutoff for aligned historical analysis, never in the future.
closed_onlybooleanReturn completed candles on a regular grid, filling no-trade gaps with previous close and zero volume, marked synthetic. Includes source timestamps; unavailable history still errors. Default true. Use false explicitly for forming candles.
formatstringOutput format: 'ohlcv' (default), 'close' (close prices only), 'csv' (CSV format)
limitnumberNumber of candles to retrieve (1-1000). Default: 220. Bumped up to 220 automatically so ATR/RSI/EMA200/breakout/pullback have enough candles.
resolutionnumberTimeframe resolution in minutes (1, 5, 15, 60, 240, 1440). Default: 60
symbols *arrayArray of trading pair symbols (e.g., ['btc_thb', 'eth_thb']) or single symbol ['btc_thb']
get_market_depthGet market depth (order book) showing bids and asks for a symbol
ParameterTypeDescription
limitnumberNumber of orders to return (default: 10, max: 100)
symbol *stringTrading pair symbol (e.g., btc_thb, eth_thb)
get_market_overviewOne-shot market overview: BTC trend, top gainers, top volume pairs, and breadth-based sentiment across the THB board.
ParameterTypeDescription
top_nnumberHow many movers to list per category (default 5)
get_market_screenerScreen and rank trading pairs by volume, spread, and liquidity depth. Returns top pairs suitable for trading
ParameterTypeDescription
exchange_onlybooleanExclude broker coins and frozen/non-THB pairs using exchange metadata (default false)
limitnumberNumber of top results to return (default: 10, max: 20). Use 0 to return ALL passing pairs.
max_spreadnumberMaximum allowed spread percentage (default: 2.0%)
min_depthnumberMinimum liquidity depth in THB within ±1% (default: 50000 THB)
min_volume_24hnumberMinimum 24h volume in THB (default: 1000000 = 1M THB)
get_my_open_ordersGet open orders for one Bitkub Exchange pair. For entry scans, screen with get_market_screener(exchange_only=true) first. Broker pairs (source=broker) are unsupported. If you receive Bitkub error 61, skip the pair and do not retry; its order status is unknown.
ParameterTypeDescription
symbol *stringLowercase Exchange pair in coin_thb format (e.g., btc_thb, eth_thb)
get_order_statusGet the life-cycle status of an order (unfilled | partial_fill | filled | cancelled).
ParameterTypeDescription
order_id *stringOrder id
side *stringOrder side: buy or sell
symbol *stringTrading pair symbol (e.g., btc_thb)
get_symbol_rulesGet exchange trading rules for a symbol (price step/scale, quantity step/scale, min order size in THB). Use before rounding or placing orders.
ParameterTypeDescription
symbol *stringTrading pair symbol (e.g., btc_thb, eth_thb)
get_symbolsGet list of available trading pairs sorted by 24h volume (descending), limited to top N symbols
ParameterTypeDescription
limitnumberMaximum number of top symbols to return (default: 40, sorted by 24h volume)
get_tickerGet current market ticker/price for a cryptocurrency symbol (e.g., btc_thb, eth_thb)
ParameterTypeDescription
symbol *stringTrading pair symbol (e.g., btc_thb, eth_thb, ada_thb). Use lowercase with underscore.
get_trade_historyGet journal trade records, most recent first. Optionally filter by status (open|closed) and limit the count.
ParameterTypeDescription
limitnumberMax records to return (default 50)
status_filterstringFilter by status: open or closed (default all)
get_wallet_balanceGet wallet balance from Bitkub account - returns available and reserved balance for all currencies
log_trade_entryRecord a new trade entry in the journal. Returns the trade_id used later by log_trade_exit.
ParameterTypeDescription
entry_datestringEntry datetime (RFC3339); defaults to now (UTC)
entry_price *numberEntry price
qty *numberPosition quantity (coins)
reasonstringReason for entry
stop *numberStop price. Required — every trade must have a stop (client_side_stop_worker has no resting exchange stop to fall back on), and an unset stop silently folds a 0R trade into calculate_expectancy's averages.
strategystringStrategy used (e.g., breakout, pullback)
symbol *stringTrading pair symbol (e.g., btc_thb)
timeframestringChart timeframe used (e.g., 15m, 1h, 4h, 1d)
tp_2rnumberTake-profit (2R) price
log_trade_exitRecord the exit of a logged trade. Computes net PnL (both-leg fees) and R-multiple from the stored entry, then closes the record.
ParameterTypeDescription
exit_datestringExit datetime (RFC3339); defaults to now (UTC)
exit_price *numberExit price
exit_reasonstringReason for exit (e.g., target, stop, structure_break)
maker_feenumberMaker fee %% (default 0.25)
taker_feenumberTaker fee %% (default 0.25)
trade_id *numbertrade_id returned by log_trade_entry
place_limit_orderPlace a LIVE limit order on Bitkub. For side=buy, amount is THB to spend; for side=sell, amount is the coin quantity. Places a real order — validate the setup first.
ParameterTypeDescription
amount *numberbuy: THB amount to spend; sell: coin quantity to sell
rate *numberLimit price (THB)
side *stringOrder side: buy or sell
symbol *stringTrading pair symbol (e.g., btc_thb, eth_thb)
place_stop_limit_orderPlace a stop-limit order. Bitkub has no native stop, so this runs a client-side check: if the trigger is already reached it places the limit order now, otherwise it reports monitoring (poll again or use client_side_stop_worker).
ParameterTypeDescription
current_pricenumberOptional current price; fetched from ticker if omitted
limit_price *numberLimit price placed when triggered
qty *numberOrder amount (sell: coin qty; buy: THB to spend)
sidestringOrder side: sell (default) or buy
symbol *stringTrading pair symbol (e.g., btc_thb)
trigger *numberStop trigger price. sell fires when price <= trigger; buy fires when price >= trigger
pnl_with_feesCalculate net PnL of a long position including both-leg fees, given explicit entry and exit prices. Pure calculator (no ticker fetch).
ParameterTypeDescription
entry *numberEntry price
exit *numberExit price
maker_feenumberMaker fee %% (default 0.25)
qty *numberPosition quantity (coins)
stopnumberStop price (for R-multiple; optional)
taker_feenumberTaker fee %% (default 0.25)
round_to_exchange_rulesRound a price and quantity to a symbol's tick/step rules before sending an order. Price rounds to nearest tick; qty rounds down to step (never exceeds intended size). Flags if notional is below the exchange minimum.
ParameterTypeDescription
price *numberOrder price to round
qty *numberOrder quantity (in base asset) to round
symbol *stringTrading pair symbol (e.g., btc_thb, eth_thb)
simulate_tradeSimulate a long setup before entering: returns R:R ratio and net win/loss PnL (both-leg fees). Uses a 2R target if none is given.
ParameterTypeDescription
entry *numberEntry price
maker_feenumberMaker fee %% (default 0.25)
qty *numberPosition quantity (coins)
stop *numberStop price (must be below entry)
taker_feenumberTaker fee %% (default 0.25)
targetnumberTarget price (default: 2R)
validate_trade_setupValidate a pre-trade checklist from metrics produced by the other tools. Returns checklist, score, can_trade, and warnings. can_trade is true only when ALL checks pass.
ParameterTypeDescription
atr_maxnumberUpper bound of acceptable daily ATR%% zone (default 6)
atr_minnumberLower bound of acceptable daily ATR%% zone (default 2)
atr_percent *numberATR% from daily (1440-minute) candles; do not mix timeframes
balance *numberAvailable balance in THB
has_signal *booleanDid a breakout/pullback entry signal fire?
position_value_thb *numberposition_value_thb from calculate_position_size
regime *stringMarket regime from check_market_regime (UPTREND|DOWNTREND|SIDEWAYS)
rs_top *booleanIs the symbol in the top relative-strength rank and outperforming the benchmark (or the benchmark itself)?
volume_ok *booleanIs volume confirming the signal (e.g. >=1.5x average)?

Security checks

Static checks derived from the repository a month ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.6K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionScanned 48 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.2.0v1.2.0 · 5 Aug 2026Changelog New Features 34e0a527e5928c812b9041e6af44d4f6bf6783f9: feat: implement GetFloat64ArrayArg utility function and refactor price argument handling in EMA, RSI, and ROC (@dvgamerr) Refactor d57696a5e603a7f713b477cd41d6c8159a0d1e97:…
v1.1.2v1.1.2 · 3 Jul 2026Changelog New Features 0da756b71d2338d3976012fbf73b0a96dd5556a4: feat: enhance pullback signal detection with volume metrics and update fee schedule descriptions (@dvgamerr) Bug Fixes 7edb10df87e087f66ba6b626dc069a7e51c385ef: fix: update…
v1.1.1v1.1.1 · 26 Jun 2026Changelog Bug Fixes 3b26532771e9410b4af3c615d8e829d625f15eab: fix: update SKILL.md to clarify symbol format requirements for tool calls (@dvgamerr) Refactor 72bbb8afebae65ae519d6a6dc7bd551dd5e020d3: refactor: enhance market regime analysis…
v1.1.0v1.1.0 · 18 Jun 2026Changelog Bug Fixes 35a28ed57dff83e816767c44b22cae8d35a966ed: fix(deps): bump actions/checkout from 4 to 6 (#8) (@dependabot[bot]) 05cb6609cfa51bca9d9d13304a2e5ff6988a8e5e: fix(deps): bump actions/setup-go from 5 to 6 (#6)…
v1.0.2v1.0.2 · 17 Jun 2026Changelog New Features 3ad2262234f025116687679050b553bf98cc425d: feat: enhance trading tools with timeframe parameter and update historical candles retrieval (@dvgamerr) Refactor 9a806092126ba26adec4470da3f04d36c064be2c: refactor:…

README

The repository's README runs to about 1.6K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Gokub MCP

How do I install Gokub MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Gokub MCP safe to use with an AI agent?

Its trust score is 58 out of 100 (fair). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Gokub MCP still maintained?

Yes — the latest release is v1.2.0 (5 Aug 2026), and the last commit was 2 days ago. The repository has 4 stars and 2 open issues.

What tools does Gokub MCP provide?

Conduid read 42 tools from the source: analyze_chart, analyze_market_trades, backtest_signals, calculate_atr, calculate_capm, calculate_ema, calculate_expectancy, calculate_liquidity_depth and 34 more. 39 of them publish their parameters, listed under Tools above.

What license is Gokub MCP released under?

The repository declares the MIT license. That applies to the latest release, v1.2.0, as well.