# Gate DEX MCP [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/gate/gate-mcp  
**GitHub Stars:** 44  
**npm Downloads (last month):** 1844472  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gate-dex-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **dex_auth_google_login_start** — Start Google OAuth login flow, returns verification URL
- **dex_auth_google_login_poll** — Poll login status, returns mcp_token on success
- **dex_auth_login_google_wallet** — Login with Google OAuth authorization code
- **dex_auth_gate_login_start** — Start Gate OAuth login flow, returns verification URL
- **dex_auth_gate_login_poll** — Poll Gate OAuth login status, returns mcp_token on success
- **dex_auth_login_gate_wallet** — Login directly with Gate OAuth authorization code
- **dex_auth_logout** — Revoke current session
- **dex_wallet_get_addresses** — Get wallet addresses for each chain (EVM, Solana)
- **dex_wallet_get_token_list** — Token balances with prices and pagination
- **dex_wallet_get_total_asset** — Total portfolio value and 24h change
- **dex_wallet_sign_message** — Sign a message with wallet private key (EVM / Solana)
- **dex_wallet_sign_transaction** — Sign a raw transaction with wallet private key
- **dex_chain_config** — Chain configuration (chain ID, capabilities)
- **dex_tx_gas** — Estimate gas price and gas limit
- **dex_tx_transfer_preview** — Preview transfer details before signing
- **dex_tx_approve_preview** — Token approval preview: build ERC20/SPL approve transaction
- **dex_tx_get_sol_unsigned** — Build unsigned Solana SOL transfer with latest blockhash
- **dex_tx_send_raw_transaction** — Broadcast signed transaction on-chain
- **dex_tx_quote** — Swap quote with route, price impact and gas estimation
- **dex_tx_swap** — One-click swap: quote → build → sign → submit
- **dex_tx_swap_detail** — Query swap order status by order ID
- **dex_tx_list** — Transaction & swap / bridge history
- **dex_market_get_kline** — K-line (candlestick) data: 1m, 5m, 1h, 4h, 1d
- **dex_market_get_tx_stats** — Trading volume and trader statistics (5m / 1h / 4h / 24h)
- **dex_market_get_pair_liquidity** — Liquidity pool add / remove events
- **dex_token_list_swap_tokens** — Available tokens for swap on a given chain
- **dex_token_list_cross_chain_bridge_tokens** — Bridgeable tokens for cross-chain transfers
- **dex_token_get_coin_info** — Token info: price, market cap, supply, holder distribution
- **dex_token_ranking** — 24h top gainers / top losers
- **dex_token_get_coins_range_by_created_at** — Discover new tokens by creation time range
- **dex_token_get_risk_info** — Security audit: honeypot, buy/sell tax, blacklist, permissions
- **dex_agentic_report** — Report agentic wallet addresses to wallet service
- **dex_rpc_call** — Execute JSON-RPC call to blockchain node

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "gate-dex-mcp": {
    "command": "npx",
    "args": ["-y","mcporter"]
  }
}
```

## Documentation

## What Gate DEX MCP MCP server does

Gate DEX MCP MCP server exposes Gate’s decentralized exchange functions through the Model Context Protocol. It connects an MCP client to the remote `https://api.gatemcp.ai/mcp/dex` endpoint and provides authenticated wallet operations, transaction preparation, swap execution, token discovery, and DEX market data.

The service supports wallet addresses and balances for EVM and Solana chains. Agents can retrieve portfolio value, sign messages or raw transactions, estimate gas, preview transfers and token approvals, broadcast signed transactions, and review transaction or swap history.

## How it works

The DEX endpoint uses Streamable HTTP, with SSE available as a fallback. Authentication is handled through either Google OAuth or Gate OAuth. The login tools can start an OAuth flow, poll for completion, exchange an authorization code for access, and revoke the current session.

Once authenticated, an agent can use the wallet and transaction tools against the connected session. Swap execution can be performed as a combined operation that obtains a quote, builds the transaction, signs it, and submits it. Separate tools expose the quote and swap-order status when an application needs more control over the workflow.

## Setup and configuration

Configure an MCP client with the DEX URL:

```json
{
  "mcpServers": {
    "Gate-Dex": {
      "url": "https://api.gatemcp.ai/mcp/dex",
      "headers": {
        "x-api-key": "MCP_AK_8W2N7Q",
        "Authorization": "Bearer ${GATE_MCP_TOKEN}"
      }
    }
  }
}
```

The repository also shows a mcporter configuration using the same endpoint. OAuth is required for the DEX surface, and the available login tools support Google and Gate authorization. The example configuration uses `GATE_MCP_TOKEN` for the bearer token after authorization. Cursor, Claude CLI, and other MCP-compatible clients can connect through their HTTP MCP configuration; the README specifically documents Cursor and Claude CLI setup.

## Tools and capabilities

Gate DEX MCP MCP server groups its tools into several practical areas:

- **Authentication:** Start and complete Google or Gate OAuth login, then log out and revoke the session.
- **Wallets:** List EVM and Solana addresses, retrieve token balances with prices, calculate total assets and 24-hour change, and sign messages or raw transactions.
- **Chains and transactions:** Inspect chain IDs and capabilities, estimate gas, preview transfers and approvals, create an unsigned Solana SOL transfer, and broadcast signed transactions.
- **Swaps:** Request route and price-impact quotes, execute a one-click swap, and query an existing swap order by ID.
- **History:** Retrieve transaction, swap, and bridge records.
- **Market and token data:** Query candlestick data, trading statistics, liquidity-pool events, swap and bridge token lists, token fundamentals, gainers and losers, and tokens filtered by creation time.

## Limitations and notes

This listing describes the DEX endpoint, not every Gate MCP surface. Gate also documents separate endpoints for public market data, centralized-exchange trading, coin information, news, and research; those functions are outside this DEX listing.

Authenticated wallet and transaction operations require OAuth. Signing and submission tools can act on-chain, so an integrating agent should distinguish read-only queries from operations that authorize or broadcast transactions. The available chain set, token availability, and transaction behavior depend on the supported Gate DEX networks and the selected chain.

_Full upstream README: https://allmcps.com/mcp/gate-dex-mcp/readme_

