Gate DEX MCP
io.github.gateio-dev/gate-dex
Gate DEX MCP for wallet auth, transfers, swaps, token info, market data, and RPC access.
- dex_agentic_report — Register agentic wallet addresses with the wallet service.
- dex_auth_gate_login_poll — Poll Gate OAuth; returns pending/ok/error. [write] On ok: replace mcp_token unless linked_to_google_session is true. Pass auto_replace_binding=true to rebind exchange UID on new Gate session.
- dex_auth_gate_login_start — Start Gate device login. Show verification_uri and user_code to the user. Keep poll_secret for polling and do not show it. Pass link_mcp_token on a Google session to bind Gate UID without replacing mc
- dex_auth_google_login_poll — Poll Google device login; returns pending/ok/error. Requires poll_secret from start. [write] On ok: immediately replace stored mcp_token with login_result.mcp_token — new token is tied to a different
- dex_auth_google_login_start — Starts Google device login. Show verification_uri and user_code to the user. Keep poll_secret for dex_auth_google_login_poll and do not show it to the user.
- dex_auth_login_gate_wallet — Exchange Gate OAuth code for MCP token. [write] On success, immediately replace any stored mcp_token — new token is tied to a different account.
- dex_auth_login_google_wallet — Exchange Google OAuth code for MCP token. [write] On success, immediately replace any stored mcp_token — new token is tied to a different account.
- dex_auth_logout — Revoke the MCP session identified by mcp_token.
- dex_chain_config — Returns chain config (networkKey, accountKey, chainID). Use the returned chain value in all subsequent transfer/sign/broadcast tools.
- dex_market_get_kline — OHLCV candles by period and window. Volume aggregates→get_tx_stats. Pool events→get_pair_liquidity.
- dex_market_get_pair_liquidity — AMM pool deposit and withdrawal events. Candlesticks→get_kline. Volume stats→get_tx_stats.
- dex_market_get_tx_stats — Per-interval buy/sell volume and tx counts (5m–24h). Candlesticks→get_kline. Pool events→get_pair_liquidity.
- dex_rpc_call — Proxy a JSON-RPC call to a blockchain node.
- dex_token_get_coin_info — Price, market snapshot, metadata, optional top holders. Security audit→get_risk_info.
- dex_token_get_coins_range_by_created_at — Tokens launched within a given time window; chain optional for all networks.
- dex_token_get_risk_info — Contract security audit (honeypot, tax, ownership flags). Price and market stats→get_coin_info.
- dex_token_list_cross_chain_bridge_tokens — Receivable assets on target chain for a source token. Same-chain trading→list_swap_tokens.
- dex_token_list_swap_tokens — Tradable assets on a chain; tag selects favorites or recommendations. Bridge targets→list_cross_chain_bridge_tokens.
- dex_token_ranking — Top movers by 24h price change; direction selects gainers vs losers. Single token→get_coin_info.
- dex_tx_approve_preview — Build ERC20/SPL approve or revoke tx (does not broadcast). Sign with dex_wallet_sign_transaction after user confirmation.
- dex_tx_detail — Fetch transaction detail by on-chain hash. → swap_detail for swap order detail by order ID.
- dex_tx_gas — Estimate on-chain gas price and gas limit for a given tx.
- dex_tx_get_sol_unsigned — Solana native only: build a fresh unsigned SOL transfer with a confirmed blockhash. Call only after the user confirms, then dex_wallet_sign_transaction and dex_tx_send_raw_transaction in the same turn
- dex_tx_list — List wallet transaction history (transfers). → swap_history_list for swap/bridge orders. → tx_detail for single tx by hash.
- dex_tx_send_raw_transaction — Broadcast a signed tx to the chain. [write] Requires user confirmation after transfer preview and prior signing via dex_wallet_sign_transaction. Solana: pass last_valid_block_height from dex_tx_get_so
- dex_tx_swap_checkin_preview — Returns check-in fields for a swap stage (approve or swap). Call after prepare and before terminal tx-checkin script.
- dex_tx_swap_detail — Fetch swap order detail by order ID from swap_submit. → tx_detail for detail by on-chain hash.
- dex_tx_swap_history_list — List swap/bridge order history with pagination; includes single-chain and cross-chain. → tx_list for transfer history.
- dex_tx_swap_prepare — Stage a swap session (server-side build only); returns swap_session_id. Does not sign or submit. Call after quote confirmed by user.
- dex_tx_swap_quote — Returns swap route and pricing. Call before swap_prepare; show result to user before proceeding. → transfer_preview for direct token send (not exchange).
- dex_tx_swap_sign_approve — [write] Sign the ERC20 approve tx for a staged EVM swap. Requires need_approved=true in prepare result.
- dex_tx_swap_sign_swap — [write] Sign the main swap tx for a staged session. EVM: call sign_approve first if need_approved=true. Solana: generates a fresh signable payload.
- dex_tx_swap_submit — [write] Broadcast a staged swap to the chain. Does not sign. Requires all signing steps complete (sign_approve if EVM+approval, then sign_swap).
- dex_tx_transfer_preview — Build a transfer summary (sender, recipient, amount, gas). Does not broadcast. Solana native: returns key_info only — after the user confirms, call dex_tx_get_sol_unsigned and sign that result immedia
- dex_tx_x402_checkin_preview — Prepare Gate Verify tx_checkin for x402 (EVM exact / EIP-3009 only): returns tx_checkin.message (64-hex digest) and x402_payment_required_b64 without signing. Flow: 1) this tool 2) Gate Verify tx_chec
- dex_tx_x402_fetch — [write] Send an HTTP request to the given URL. If the server responds with 402 Payment Required, pay via x402 (Coinbase-style: USDC EIP-3009 / Permit2 on EVM, SPL on Solana), retry with PAYMENT-SIGNAT
- dex_wallet_bind_exchange_uid — Bind Gate exchange UID to session. Standalone Gate session only; gateUid must equal login_result.gate_uid from Gate OAuth. → replace_binding to rebind.
- dex_wallet_get_addresses — Returns address map by chain type (EVM, SOL, etc.). Call before transfer/swap tools to get the sender address.
- dex_wallet_get_bindings — Returns current Gate UID binding for the session wallet.
- dex_wallet_get_token_list — Token balances and prices with pagination; filter by network_keys. → get_total_asset for portfolio summary only.
- dex_wallet_get_total_asset — Total portfolio value and 24h change. → get_token_list for per-token balance detail.
- dex_wallet_get_wallet_type — Returns walletAddress, walletType, gateUid. With for_withdraw_to_exchange or for_gate_oauth_bind, also starts Gate OAuth when gateUid is missing.
- dex_wallet_google_gate_bind_start — Google sessions only: starts Gate OAuth to bind Gate exchange UID to this session. mcp_token stays unchanged after poll.
- dex_wallet_replace_binding — Rebind Gate exchange UID. [write] newUid must equal login_result.gate_uid from a fresh Gate OAuth. Blocked for gate_mcp/gate_quick sessions and Google sessions.
- dex_wallet_sign_message — Sign a 32-byte hex message with wallet key. [write] Requires checkin_token from terminal tx-checkin. → sign_transaction for raw tx signing.
- dex_wallet_sign_transaction — Sign a raw unsigned transaction. [write] Requires user confirmation after transfer preview and checkin_token from terminal tx-checkin. → dex_tx_send_raw_transaction to broadcast.
- dex_withdraw_deposit_address — Fetch Gate exchange deposit address for the session-bound Gate UID. [write] amount must be ≥ min_deposit_amount; do not pass uid — it is resolved from the session.