Gate DEX MCP
io.github.gateio-dev/gate-dexGate DEX MCP for wallet auth, transfers, swaps, token info, market data, and RPC access.
Tools · 47
Register agentic wallet addresses with the wallet service.
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.
Start Gate device OAuth; returns verification_url. Pass link_mcp_token on a Google session to bind Gate UID without replacing mcp_token.
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.
Returns browser verification URL for Google device OAuth.
Exchange Gate OAuth code for MCP token. [write] On success, immediately replace any stored mcp_token — new token is tied to a different account.
Exchange Google OAuth code for MCP token. [write] On success, immediately replace any stored mcp_token — new token is tied to a different account.
Revoke the MCP session identified by mcp_token.
Returns chain config (networkKey, accountKey, chainID). Use the returned chain value in all subsequent transfer/sign/broadcast tools.
OHLCV candles by period and window. Volume aggregates→get_tx_stats. Pool events→get_pair_liquidity.
AMM pool deposit and withdrawal events. Candlesticks→get_kline. Volume stats→get_tx_stats.
Per-interval buy/sell volume and tx counts (5m–24h). Candlesticks→get_kline. Pool events→get_pair_liquidity.
Proxy a JSON-RPC call to a blockchain node.
Price, market snapshot, metadata, optional top holders. Security audit→get_risk_info.
Tokens launched within a given time window; chain optional for all networks.
Contract security audit (honeypot, tax, ownership flags). Price and market stats→get_coin_info.
Receivable assets on target chain for a source token. Same-chain trading→list_swap_tokens.
Tradable assets on a chain; tag selects favorites or recommendations. Bridge targets→list_cross_chain_bridge_tokens.
Top movers by 24h price change; direction selects gainers vs losers. Single token→get_coin_info.
Build ERC20/SPL approve or revoke tx (does not broadcast). Sign with dex_wallet_sign_transaction after user confirmation.
Fetch transaction detail by on-chain hash. → swap_detail for swap order detail by order ID.
Estimate on-chain gas price and gas limit for a given tx.
Solana only: build fresh native SOL unsigned tx with latest blockhash; avoids Blockhash not found. Sign immediately. → transfer_preview for full summary first.
List wallet transaction history (transfers). → swap_history_list for swap/bridge orders. → tx_detail for single tx by hash.
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…
Returns check-in fields for a swap stage (approve or swap). Call after prepare and before terminal tx-checkin script.
Fetch swap order detail by order ID from swap_submit. → tx_detail for detail by on-chain hash.
List swap/bridge order history with pagination; includes single-chain and cross-chain. → tx_list for transfer history.
Stage a swap session (server-side build only); returns swap_session_id. Does not sign or submit. Call after quote confirmed by user.
Returns swap route and pricing. Call before swap_prepare; show result to user before proceeding. → transfer_preview for direct token send (not exchange).
[write] Sign the ERC20 approve tx for a staged EVM swap. Requires need_approved=true in prepare result.
[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.
[write] Broadcast a staged swap to the chain. Does not sign. Requires all signing steps complete (sign_approve if EVM+approval, then sign_swap).
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_…
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…
[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…
Bind Gate exchange UID to session. Standalone Gate session only; gateUid must equal login_result.gate_uid from Gate OAuth. → replace_binding to rebind.
Returns address map by chain type (EVM, SOL, etc.). Call before transfer/swap tools to get the sender address.
Returns current Gate UID binding for the session wallet.
Token balances and prices with pagination; filter by network_keys. → get_total_asset for portfolio summary only.
Total portfolio value and 24h change. → get_token_list for per-token balance detail.
Returns walletAddress, walletType, gateUid. With for_withdraw_to_exchange or for_gate_oauth_bind, also starts Gate OAuth when gateUid is missing.
Google sessions only: starts Gate OAuth to bind Gate exchange UID to this session. mcp_token stays unchanged after poll.
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.
Sign a 32-byte hex message with wallet key. [write] Requires checkin_token from terminal tx-checkin. → sign_transaction for raw tx signing.
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.
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
kline://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump?period=1h&limit=100
discover_tokens://created_at/desc?limit=10&chains=solana
liquidity://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump?page_size=10
security://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump?ignore=true
List of supported blockchain networks and their capabilities
chain://supported
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://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump
ranking://desc?top_n=10
ranking://asc?top_n=10
discover_tokens://trend_info.volume_1h/desc?limit=10
volume://solana/7QYaY7vXTi9PiTjRD23QKqtGhLYkyUmisWE6eh7Tpump
Prompts · 20
Deposit/top-up UX: formatted tables, address banner, Gate-bound vs OAuth paths, confirm/cancel before actions
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…
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, …
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…
Query token contract information including price, market data, metadata, and holder distribution. Supports all chains.
Filter and discover tokens by creation time range. Supports all chains.
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
Query top N tokens by 24-hour price change (gainers or losers), optionally filtered by chain. Supports all chains.
Universal guide for any protected wallet, signing, transfer, history, or swap action that may require login recovery
Step-by-step guide for executing a swap/bridge transaction safely via MCP tools
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
Diagnose why a transfer failed (gas, nonce, revert, blockhash, etc.)
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
Guide for querying transaction history: clarify whether the user wants transfer history or swap history, then use the appropriate tool
Guide for querying wallet balances with login recovery and capability-based fallback
Explain balance discrepancies (in-flight, frozen, pending, SOL rent)
Review a swap quote result for price impact, slippage, gas fees, and routing
Convert a transfer draft into a human-readable confirmation message
Pre-send checklist: chain match, address validation, decimals, memo, fee cap
End-to-end guide: MCP login, wallet type, Gate UID binding, deposit addresses, preview, confirm, sign and broadcast
Similar MCP servers embedding-nearest
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"
}
}
}