# Gate DEX MCP MCP server

Gate DEX MCP for wallet auth, transfers, swaps, token info, market data, and RPC access.

## Links
- Registry page: https://www.getdrio.com/mcp/io-github-gateio-dev-gate-dex
- Repository: https://github.com/gate/gate-mcp

## Install
- Endpoint: https://api.gatemcp.ai/mcp/dex
- Auth: Not captured

## Setup notes
- Remote endpoint: https://api.gatemcp.ai/mcp/dex

## Tools
- dex_agentic_report - Register agentic wallet addresses with the wallet service. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_auth_gate_login_start - Start Gate device OAuth; returns verification_url. Pass link_mcp_token on a Google session to bind Gate UID without replacing mcp_token. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_auth_google_login_poll - Poll Google OAuth flow; returns pending/ok/error. [write] On ok: immediately replace stored mcp_token with login_result.mcp_token — new token is tied to a different account. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_auth_google_login_start - Returns browser verification URL for Google device OAuth. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_auth_logout - Revoke the MCP session identified by mcp_token. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_chain_config - Returns chain config (networkKey, accountKey, chainID). Use the returned chain value in all subsequent transfer/sign/broadcast tools. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_market_get_kline - OHLCV candles by period and window. Volume aggregates→get_tx_stats. Pool events→get_pair_liquidity. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_market_get_pair_liquidity - AMM pool deposit and withdrawal events. Candlesticks→get_kline. Volume stats→get_tx_stats. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_market_get_tx_stats - Per-interval buy/sell volume and tx counts (5m–24h). Candlesticks→get_kline. Pool events→get_pair_liquidity. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_rpc_call - Proxy a JSON-RPC call to a blockchain node. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_token_get_coin_info - Price, market snapshot, metadata, optional top holders. Security audit→get_risk_info. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_token_get_coins_range_by_created_at - Tokens launched within a given time window; chain optional for all networks. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_token_get_risk_info - Contract security audit (honeypot, tax, ownership flags). Price and market stats→get_coin_info. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_token_list_cross_chain_bridge_tokens - Receivable assets on target chain for a source token. Same-chain trading→list_swap_tokens. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_token_list_swap_tokens - Tradable assets on a chain; tag selects favorites or recommendations. Bridge targets→list_cross_chain_bridge_tokens. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_token_ranking - Top movers by 24h price change; direction selects gainers vs losers. Single token→get_coin_info. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_tx_approve_preview - Build ERC20/SPL approve or revoke tx (does not broadcast). Sign with dex_wallet_sign_transaction after user confirmation. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_tx_detail - Fetch transaction detail by on-chain hash. → swap_detail for swap order detail by order ID. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_tx_gas - Estimate on-chain gas price and gas limit for a given tx. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_tx_get_sol_unsigned - Solana only: build fresh native SOL unsigned tx with latest blockhash; avoids Blockhash not found. Sign immediately. → transfer_preview for full summary first. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_tx_list - List wallet transaction history (transfers). → swap_history_list for swap/bridge orders. → tx_detail for single tx by hash. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_tx_swap_detail - Fetch swap order detail by order ID from swap_submit. → tx_detail for detail by on-chain hash. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_tx_swap_history_list - List swap/bridge order history with pagination; includes single-chain and cross-chain. → tx_list for transfer history. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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). Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_tx_swap_sign_approve - [write] Sign the ERC20 approve tx for a staged EVM swap. Requires need_approved=true in prepare result. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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). Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_tx_transfer_preview - Build unsigned transfer tx; displays summary (sender, recipient, amount, gas). Returns unsigned_tx_hex and txBundle for check-in. Does not broadcast. Wait for user confirmation before signing. → swap_quote/swap_prepare for token exchange. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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_checkin with returned tx_checkin fields 3) dex_tx_x402_fetch with same url/body/headers, checkin_token, and the same x402_payment_required_b64. If x402_payment_required_b64 is omitted, performs one HTTP call and requires HTTP 402. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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-SIGNATURE. REQUIRED: Gate Verify tx_checkin before signing; pass checkin_token. For EVM EIP-3009, use dex_tx_x402_checkin_preview first so the agent does not build digest manually; then pass checkin_token and the same x402_payment_required_b64 from preview. CoinGecko Pro x402: do not send x-cg-pro-api-key; default network Base unless x402_preferred_network=solana. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_wallet_get_addresses - Returns address map by chain type (EVM, SOL, etc.). Call before transfer/swap tools to get the sender address. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_wallet_get_bindings - Returns current Gate UID binding for the session wallet. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_wallet_get_token_list - Token balances and prices with pagination; filter by network_keys. → get_total_asset for portfolio summary only. Endpoint: https://api.gatemcp.ai/mcp/dex
- dex_wallet_get_total_asset - Total portfolio value and 24h change. → get_token_list for per-token balance detail. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex
- 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. Endpoint: https://api.gatemcp.ai/mcp/dex

## Resources
- K-Line 1h — Example Solana meme coin - MIME type: application/json
- Latest Solana Tokens - MIME type: application/json
- Liquidity Events — Example Solana meme coin - MIME type: application/json
- Security Audit — Example Solana meme coin - MIME type: application/json
- chain://supported - List of supported blockchain networks and their capabilities MIME type: application/json
- swap://supported_chains - Chains supported by dex_tx_swap_quote / dex_tx_swap_prepare, grouped by address type (evm vs solana). Read this BEFORE calling dex_tx_swap_quote or dex_tx_swap_prepare to verify the chain_id is supported. Also use the grouping to determine the correct user_wallet type: evm chains require an EVM address (addresses["EVM"]), solana requires a SOL address (addresses["SOL"]). MIME type: application/json
- token://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump - MIME type: application/json
- Top 10 Gainers (24h) - MIME type: application/json
- Top 10 Losers (24h) - MIME type: application/json
- Top Tokens by 1h Volume - MIME type: application/json
- volume://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump - MIME type: application/json

## Prompts
- deposit_exchange_interaction_examples - Deposit/top-up UX: formatted tables, address banner, Gate-bound vs OAuth paths, confirm/cancel before actions
- dex_market_get_kline - Query K-line (candlestick) data for a token. Supported chains: bsc, base, eth, solana, arbitrum, polygon, avalanche, fantom, zksync, linea, optimism, sui, blast, tron, merlin, world, eni, bera, gatelayer, ton Arguments: chain, token_address, period
- dex_market_get_pair_liquidity - Query liquidity pool information for a token pair. Supported chains: bsc, base, eth, solana, arbitrum, polygon, avalanche, fantom, zksync, linea, optimism, sui, blast, tron, merlin, world, eni, bera, gatelayer, ton Arguments: chain, token_address
- dex_market_get_tx_stats - Query trading volume statistics for a token. Supported chains: bsc, base, eth, solana, arbitrum, polygon, avalanche, fantom, zksync, linea, optimism, sui, blast, tron, merlin, world, eni, bera, gatelayer, ton Arguments: chain, token_address
- dex_token_get_coin_info - Query token contract information including price, market data, metadata, and holder distribution. Supports all chains. Arguments: chain, address
- dex_token_get_coins_range_by_created_at - Filter and discover tokens by creation time range. Supports all chains. Arguments: start, end, chain
- dex_token_get_risk_info - Query token security audit information. Supported chains: bsc, polygon, avalanche, arbitrum, optimism, base, fantom, linea, zksync, world, gatelayer, merlin, blast, eni, bera, solana, ton, sui, tron Arguments: chain, address
- dex_token_ranking - Query top N tokens by 24-hour price change (gainers or losers), optionally filtered by chain. Supports all chains. Arguments: direction, top_n, chain
- execute_authenticated_wallet_action - Universal guide for any protected wallet, signing, transfer, history, or swap action that may require login recovery
- execute_swap_safely - Step-by-step guide for executing a swap/bridge transaction safely via MCP tools Arguments: from_chain, to_chain, from_token, to_token, amount
- google_session_gate_exchange_bind - Google wallet MCP session: bind/update Gate exchange gate_uid via OAuth (mcp_token unchanged); distinct from dex_wallet_replace_binding and standalone Gate-login rebind
- investigate_failed_transfer - Diagnose why a transfer failed (gas, nonce, revert, blockhash, etc.) Arguments: chain, tx_hash, error_message
- poll_swap_status - After dex_tx_swap_submit, poll dex_tx_swap_detail every 5 seconds for up to 1 minute until the transaction is confirmed or failed
- query_transaction_history - Guide for querying transaction history: clarify whether the user wants transfer history or swap history, then use the appropriate tool
- query_wallet_balance - Guide for querying wallet balances with login recovery and capability-based fallback
- reconcile_balance_diff - Explain balance discrepancies (in-flight, frozen, pending, SOL rent) Arguments: account_id, expected_balance, actual_balance
- review_swap_quote - Review a swap quote result for price impact, slippage, gas fees, and routing Arguments: quote_json
- review_transfer_draft - Convert a transfer draft into a human-readable confirmation message Arguments: draft_json
- send_transfer_safely - Pre-send checklist: chain match, address validation, decimals, memo, fee cap Arguments: chain, to_address, amount, token
- withdraw_to_exchange - End-to-end guide: MCP login, wallet type, Gate UID binding, deposit addresses, preview, confirm, sign and broadcast Arguments: chain_name, coin_symbol, amount

## Metadata
- Owner: io.github.gateio-dev
- Version: 1.0.0
- Runtime: Streamable Http
- Transports: HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: Apr 16, 2026
- Source: https://registry.modelcontextprotocol.io
