Skip to content
Back to search
100
MCP live v1.0.0 MCP 2025-11-25 streamable-http

Gate DEX MCP

io.github.gateio-dev/gate-dex

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

Uptime
100.0%
1 direct probes · 30d
Response
1893ms
last probe
Tools
47
callable
Resources
11
readable
Prompts
20
available

Tools · 47

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 OAuth; returns verification_url. Pass link_mcp_token on a Google session to bind Gate UID without replacing mcp_token.

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.

dex_auth_google_login_start

Returns browser verification URL for Google device OAuth.

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 only: build fresh native SOL unsigned tx with latest blockhash; avoids Blockhash not found. Sign immediately. → transfer_preview for full summary first.

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. account_id/address are auto-filled from the login sessi…

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 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_…

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.

Resources · 11

K-Line 1h — Example Solana meme coin kline://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump?period=1h&limit=100
Latest Solana Tokens discover_tokens://created_at/desc?limit=10&chains=solana
Liquidity Events — Example Solana meme coin liquidity://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump?page_size=10
Security Audit — Example Solana meme coin security://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump?ignore=true
Supported Chains

List of supported blockchain networks and their capabilities

chain://supported
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 suppor…

swap://supported_chains
Token Info — Example Solana meme coin token://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump
Top 10 Gainers (24h) ranking://desc?top_n=10
Top 10 Losers (24h) ranking://asc?top_n=10
Top Tokens by 1h Volume discover_tokens://trend_info.volume_1h/desc?limit=10
Volume Stats — Example Solana meme coin volume://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump

Prompts · 20

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, gatela…

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, …

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, gatela…

dex_token_get_coin_info

Query token contract information including price, market data, metadata, and holder distribution. Supports all chains.

dex_token_get_coins_range_by_created_at

Filter and discover tokens by creation time range. Supports all chains.

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

dex_token_ranking

Query top N tokens by 24-hour price change (gainers or losers), optionally filtered by chain. Supports all chains.

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

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.)

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)

review_swap_quote

Review a swap quote result for price impact, slippage, gas fees, and routing

review_transfer_draft

Convert a transfer draft into a human-readable confirmation message

send_transfer_safely

Pre-send checklist: chain match, address validation, decimals, memo, fee cap

withdraw_to_exchange

End-to-end guide: MCP login, wallet type, Gate UID binding, deposit addresses, preview, confirm, sign and broadcast

How to use

Add to your Claude Desktop / Cursor / Cline MCP config:

{
  "mcpServers": {
    "gate_dex_mcp": {
      "url": "https://api.gatemcp.ai/mcp/dex",
      "transport": "streamable-http"
    }
  }
}