mcp-server

v1.1.26
@0xmonaco/mcp-server Checked 1 day ago Published 1 day ago

MCP server for the Monaco SDK

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_docs

Search the Monaco documentation for information about the protocol, SDK, trading, and development guides.

ParameterTypeDescription
query *stringThe search query

get_trading_pairs

Get a paginated list of trading pairs available on Monaco. Returns pair IDs, symbols, base/quote tokens, and status.

ParameterTypeDescription
baseTokenstringFilter by base token
categorystringFilter by category (e.g. crypto, equities, commodities)
isActivebooleanFilter by active status
marketTypestringFilter by market type
pagenumberPage number (starts from 1)
pageSizenumberNumber of items per page (max 100)
quoteTokenstringFilter by quote token

get_trading_pair_by_symbol

Look up a specific trading pair by its symbol (e.g. 'BTC/USDC'). Returns the pair's full details including its UUID.

ParameterTypeDescription
symbol *stringTrading pair symbol (e.g. 'BTC/USDC')

get_candlesticks

Get OHLCV candlestick data for a trading pair. Useful for charting and price analysis.

ParameterTypeDescription
interval *stringCandlestick interval
tradingPairId *stringTrading pair UUID
endTimenumberEnd time as Unix timestamp (seconds)
limitnumberMax number of candlesticks to return
startTimenumberStart time as Unix timestamp (seconds)

get_market_metadata

Get metadata for a specific trading pair including tick size, min order size, and trading rules.

ParameterTypeDescription
tradingPairId *stringTrading pair UUID

get_screener

Screen trading pairs with market stats (price, volume, change), filtered by market type, category, and active status.

ParameterTypeDescription
categorystringFilter by category (e.g. crypto, equities, commodities)
isActivebooleanFilter by active status
marketTypestringFilter by market type
pagenumberPage number (1-based)
pageSizenumberItems per page

get_market_stats

Get exchange-wide life-to-date cumulative volume and trade count across all markets.

get_trader_metrics

Get public current long/short account counts, account shares and ratio, plus active-trader counts for a margin pair. Accounts are classified by net position across open risk buckets. No account IDs are returned; position splits are suppressed when either side has fewer than five accounts, and all three counts in an activity window are null if any cohort is below five users. Activity counts include system user IDs on liquidation and ADL fills. The response may be reused for up to 30 seconds per pair; ratios and shares are rounded to six decimal places.

ParameterTypeDescription
tradingPairId *stringMargin trading pair UUID

get_trade_flow

Get UTC-aligned taker buy/sell quote-notional buckets and cumulative volume delta for a margin pair, including liquidation and ADL fills. The range is [startTime, endTime), is limited to 90 days and 2,048 buckets, and empty buckets are omitted. Times are Unix milliseconds; notional stays in the pair's quote asset and ratios are rounded to six decimal places.

ParameterTypeDescription
endTime *integerExclusive end time as Unix milliseconds
interval *stringUTC-aligned bucket interval; use 4h or 1d for ranges longer than about 85 days
startTime *integerInclusive start time as Unix milliseconds
tradingPairId *stringMargin trading pair UUID

list_liquidation_events

List public per-fill liquidation rows for one pair. Each row includes the public wallet and markNotional computed from that row's event-time mark in the pair's quote asset. startTime is inclusive, endTime exclusive; eventCount on the separate metrics tool counts stored rows.

ParameterTypeDescription
tradingPairId *stringTrading pair UUID
endTimeintegerExclusive upper bound as Unix milliseconds
pageSizeintegerPage size from 1 through 1000; defaults to 50
pageTokenstringOpaque cursor returned by the previous page
startTimeintegerInclusive lower bound as Unix milliseconds

get_liquidation_metrics

Get UTC-aligned long and short liquidation totals for a pair. eventCount counts persisted event rows; markNotional sums each row's position size times its captured event-time mark in the quote asset. The half-open range is limited to 90 days and 2,048 buckets; empty buckets are omitted.

ParameterTypeDescription
endTime *integerExclusive range end as Unix milliseconds
interval *stringUTC-aligned bucket interval; use 4h or 1d for ranges longer than about 85 days
startTime *integerInclusive range start as Unix milliseconds
tradingPairId *stringTrading pair UUID

get_perp_market_config

Get a perpetual market's configuration (leverage limits, margin requirements, funding parameters).

ParameterTypeDescription
tradingPairId *stringTrading pair UUID

get_perp_market_summary

Get a perpetual market's live summary (mark/index price, funding rate, open interest, 24h stats).

ParameterTypeDescription
tradingPairId *stringTrading pair UUID

get_mark_price

Get the current mark price for a perpetual market.

ParameterTypeDescription
tradingPairId *stringTrading pair UUID

get_index_price

Get the current index (oracle) price for a perpetual market.

ParameterTypeDescription
tradingPairId *stringTrading pair UUID

get_funding_state

Get the current funding rate and next funding time for a perpetual market.

ParameterTypeDescription
tradingPairId *stringTrading pair UUID

get_open_interest

Get the current one-sided LONG open interest (each contract counted once) for a perpetual market.

ParameterTypeDescription
tradingPairId *stringTrading pair UUID

get_funding_history

List historical funding-rate records for a perpetual market. Cursor paged; an empty nextPageToken means the end.

ParameterTypeDescription
tradingPairId *stringTrading pair UUID
endTimestringEnd time as a Unix millisecond-epoch timestamp string (e.g. "1717200000000"); ISO 8601 is rejected by the API
orderBystringSort order by time
pageSizeintegerItems per page (default 50, max 1000)
pageTokenstringCursor from a previous response's nextPageToken; omit for the first page
startTimestringStart time as a Unix millisecond-epoch timestamp string (e.g. "1717200000000"); ISO 8601 is rejected by the API

get_all_funding_history

List historical funding-rate records across all perpetual markets. Cursor paged; an empty nextPageToken means the end.

ParameterTypeDescription
endTimestringEnd time as a Unix millisecond-epoch timestamp string (e.g. "1717200000000"); ISO 8601 is rejected by the API
orderBystringSort order by time
pageSizeintegerItems per page (default 50, max 1000)
pageTokenstringCursor from a previous response's nextPageToken; omit for the first page
startTimestringStart time as a Unix millisecond-epoch timestamp string (e.g. "1717200000000"); ISO 8601 is rejected by the API

get_orderbook

Get the current orderbook snapshot for a trading pair. Shows bids, asks, best bid/ask, and volumes.

ParameterTypeDescription
tradingPairId *stringTrading pair UUID
denominationstringQuantity denomination: BASE or QUOTE
depthnumberNumber of price levels per side (max 1000, default 10). Every snapshot carries bookSeq
magnitudenumberPrice grouping magnitude (e.g. 0.01, 0.1, 1, 10, 100)
tradingModestringTrading mode (default: SPOT)

get_trades

Get one page of historical trades for a trading pair, sorted by execution time (newest first). Cursor paged: omit pageToken to start, then pass the previous response's nextPageToken until it comes back empty.

ParameterTypeDescription
tradingPairId *stringTrading pair UUID
pageSizenumberMax number of records to return (default: 25, max: 1000)
pageTokenstringCursor from a previous response's nextPageToken; omit to start at the most recent trade

get_trader_code_info

Public lookup of a TraderCode (wallet address or 'Monaco - <address>' form). Returns the resolved normalized code when it belongs to a known wallet, or a 404 error if not found. Use this to validate a referral code before sign-up.

ParameterTypeDescription
code *stringThe TraderCode to look up — a wallet address (0x-prefixed) or the 'Monaco - <address>' display form.

check_trader_code_availability

Public advisory check of whether a custom TraderCode handle is available. Returns `available` and, when unavailable, a `reason` (one of taken, too_short, too_long, reserved, invalid_char, looks_like_address). Advisory only — the authoritative gate is the atomic claim in set_trader_code, so a positive result is not a reservation.

ParameterTypeDescription
code *stringThe custom handle to check for availability.

list_lead_traders

Public copy trading leaderboard (no credentials required): lead traders ranked highest first by a metric over a stats window, each with profile, follow summary (follower count, allocated AUM and marked AUM equity) and stats (PnL, ROI %, max drawdown %, win rate %, closed trades). Leaders are identified by wallet and custom TraderCode handle; use the handle with the other copy trading tools. Cursor paged: pass the previous response's nextPageToken with the SAME sort and window; an empty nextPageToken means the end.

ParameterTypeDescription
pageSizeintegerLeaders per page (default 20, max 100)
pageTokenstringCursor from a previous response's nextPageToken; omit for the first page
sortstringMetric to rank by, highest first (default roi); aum ranks by the marked equity of live follows' copy accounts
windowstringStats window (default 30d)

get_lead_trader

Public lookup of one copy trading lead trader by custom TraderCode handle (no credentials required): profile (status, profit share in bps, bio, minimum allocation), follow summary, and stats for the 7d, 30d, 90d and all windows. 404 for an unknown or suspended leader.

ParameterTypeDescription
handle *stringThe leader's custom TraderCode handle

list_lead_trader_closed_trades

Public list of a copy trading lead trader's closed trades (no credentials required): the leader's reducing executions (partial and full closes, liquidations, auto-deleveraging), newest first, with size, entry and exit price, gross and net realized PnL, and realized ROE. Cursor paged; an empty nextPageToken means the end.

ParameterTypeDescription
handle *stringThe leader's custom TraderCode handle
pageSizeintegerTrades per page (default 20, max 100)
pageTokenstringCursor from a previous response's nextPageToken; omit for the first page

get_fee_schedule

Get a trading pair's Monaco fee tier schedule (no credentials required): each tier's weighted 14-day volume threshold and maker/taker fee in basis points, ordered by tier level. A negative maker fee is a rebate.

ParameterTypeDescription
tradingPairId *stringTrading pair UUID whose fee schedule to return

get_pulse

Get the latest market-pulse news feed: AI-synthesized, per-asset headlines with sentiment tags.