Gate MCP Server
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gate MCP Serverwhat's the current BTC price and 24h volume on Gate.io?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gate MCP Server
A Gate MCP (Model Context Protocol) server that enables AI agents to interact with the Gate cryptocurrency exchange for market data, trading, and account management.
Features
π Public Market Data - Spot, futures, margin, options, delivery, earn, alpha tickers, order books, K-line, funding rate, liquidation history (no auth required)
πΉ Trading - Create/cancel/amend spot, futures, options, delivery orders; price-triggered orders; trail orders
πΌ Account & Wallet - Balances, transfers, deposits, withdrawals, sub-accounts, unified account
π Margin & Earn - Margin loans, earn products, multi-currency flash swap
π― Activity & Welfare - Activity center, coupons, launch pool, square, welfare
π TradFi, CrossEx, P2P - Traditional finance, cross-exchange, P2P trading
π DEX - On-chain wallet, swap (single-chain & cross-chain), token info, market data across 20+ chains
π° Info - Coin discovery, market snapshots, technical/platform metrics, on-chain and macro data
π’ News - Crypto news, social insights, market events, prediction markets
π Docs - Research reports, papers, and documentation search
π OAuth2 - Secure authorization for trading and private tools
Related MCP server: :GT Protocol MCP Server
MCP Endpoints
The service exposes the following MCP endpoints:
Endpoint | Auth | Tools |
| None | Public market data (58 tools: spot, futures, margin, options, delivery, earn, alpha, activity, launch pool, square, flash swap) |
| OAuth2 | CEX trading & account (400+ tools: spot/futures/options/delivery/margin trading, wallet, unified account, sub-accounts, earn, flash swap, rebate, TradFi, CrossEx, P2P, Alpha, activity center, coupon, launch pool, square, welfare) |
| Google / Gate OAuth | DEX wallet & swap (33 tools: auth, wallet, chain config, transfer, swap, market data, token info, agentic, RPC across 20+ chains) |
| None | Coin info & analysis (32 tools: coins, snapshots, trends, on-chain, platform metrics, macro, market detail) |
| None | News & research (18 tools: news/UGC/X/web, announcements, sentiment, events, prediction markets) |
| None | Docs research (3 tools: research search, coin research, papers) |
Market data only β Use
/mcp(no Gate account needed)CEX trading, balances, transfers β Use
/mcp/exchange(Gate OAuth2 required)DEX wallet, swap, on-chain β Use
/mcp/dex(Google / Gate OAuth required)Coin info, technical analysis β Use
/mcp/info(no auth)News, announcements β Use
/mcp/news(no auth)Research docs & papers β Use
/mcp/docs(no auth)
Transport: Streamable HTTP (with SSE fallback).
Authorization (OAuth2)
/mcp/exchange requires Gate OAuth2; /mcp/dex requires Google or Gate OAuth. The endpoints /mcp, /mcp/info, /mcp/news, and /mcp/docs do not require any authentication.
Using mcporter
Prerequisites: Node.js >= 18, npm. See Quick Start - mcporter for full installation steps.
# Add Private MCP (trading, requires OAuth)
mcporter config add gate-mcp --url https://api.gatemcp.ai/mcp/exchange --auth oauth
# Authorize (opens browser to log in)
mcporter auth gate-mcpScopes (for /mcp/exchange)
Scope | Use |
| Public market data (tickers, order books, K-line, etc.) |
| Account info, orders, positions (read-only) |
| Create/cancel/amend orders |
| Transfers, deposits, withdrawals |
| Unified account, sub-accounts |
Quick Start
Prerequisites
Gate account (required only for
/mcp/exchange)MCP-compatible client (Cursor, Claude CLI, Trae, OpenClaw, etc.)
Node.js >= 18 (for mcporter, Trae, Qoder, and other npm-based clients)
Python >= 3.9 (optional, for Claude Desktop proxy)
Cursor
Method 1: One-click Install (Recommended)
Just paste the following into the Cursor AI chat β the agent will auto-install all Gate MCP servers and Skills:
Help me auto install Gate Skills and MCPs: https://github.com/gate/gate-skills
See gate-skills for details.
Method 2: Manual Configuration
For full trading (OAuth on connect):
Edit ~/.cursor/mcp.json:
{
"mcpServers": {
"Gate": {
"url": "https://api.gatemcp.ai/mcp/exchange",
"transport": "streamable-http",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json, text/event-stream"
}
}
}
}For market data only (no auth):
{
"mcpServers": {
"Gate": {
"url": "https://api.gatemcp.ai/mcp",
"transport": "streamable-http",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json, text/event-stream"
}
}
}
}For DEX (on-chain wallet, swap):
{
"mcpServers": {
"Gate-Dex": {
"url": "https://api.gatemcp.ai/mcp/dex",
"headers": {
"x-api-key": "MCP_AK_8W2N7Q",
"Authorization": "Bearer ${GATE_MCP_TOKEN}"
}
}
}
}For Info & News (no auth):
{
"mcpServers": {
"Gate-Info": {
"url": "https://api.gatemcp.ai/mcp/info"
},
"Gate-News": {
"url": "https://api.gatemcp.ai/mcp/news"
}
}
}See Cursor setup.
mcporter / OpenClaw
Method 1: One-click Install (Recommended)
Just paste the following into the OpenClaw AI chat β the agent will auto-install all Gate MCP servers and Skills:
Help me auto install Gate Skills and MCPs: https://github.com/gate/gate-skills
See gate-skills for details.
Method 2: Manual Configuration
Prerequisites (before installing mcporter)
Node.js >= 18 (mcporter requires npm)
npm (comes with Node.js) β verify with:
node -vandnpm -vGate account (for OAuth login when using
/mcp/exchange)
Install mcporter
# Global install
npm install -g mcporter
# Verify installation
mcporter --versionAlternatively, run without installing: npx mcporter <command> (uses current Node.js/npm).
Add MCP and authorize
# Add Private MCP (trading, OAuth)
mcporter config add gate-mcp --url https://api.gatemcp.ai/mcp/exchange --auth oauth
# Authorize (opens browser to log in)
mcporter auth gate-mcp
# Add DEX MCP
mcporter config add gate-dex --url https://api.gatemcp.ai/mcp/dex
# Add Info MCP (no auth)
mcporter config add gate-info --url https://api.gatemcp.ai/mcp/info
# Add News MCP (no auth)
mcporter config add gate-news --url https://api.gatemcp.ai/mcp/newsSee OpenClaw setup for detailed steps.
Claude CLI
Method 1: One-click Install (Recommended)
Just paste the following into Claude CLI β the agent will auto-install all Gate MCP servers and Skills:
Help me auto install Gate Skills and MCPs: https://github.com/gate/gate-skills
See gate-skills for details.
Method 2: Manual Configuration
brew install claude-code
# Full trading (OAuth)
claude mcp add --transport http Gate https://api.gatemcp.ai/mcp/exchange
# Restart Claude CLI after authorization is complete
# Info (no auth)
claude mcp add --transport http Gate-Info https://api.gatemcp.ai/mcp/info
# News (no auth)
claude mcp add --transport http Gate-News https://api.gatemcp.ai/mcp/news
claude mcp listTrae
Edit Trae settings. Uses mcp-remote to proxy HTTP MCP (OAuth prompt on first connect for /mcp/exchange):
{
"mcpServers": {
"gate": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.gatemcp.ai/mcp/exchange"
]
},
"gate-info": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.gatemcp.ai/mcp/info"
]
},
"gate-news": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.gatemcp.ai/mcp/news"
]
}
}
}Qoder
Edit Qoder MCP settings (e.g. ~/.qoder/mcp.json or in Qoder settings):
{
"mcpServers": {
"gate": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.gatemcp.ai/mcp/exchange"
]
},
"gate-info": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.gatemcp.ai/mcp/info"
]
},
"gate-news": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.gatemcp.ai/mcp/news"
]
}
}
}Claude Desktop
Claude Desktop requires a local stdio proxy.
Download the Python proxy file
Edit
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"Gate": {
"command": "python3",
"args": ["/path/to/gate-mcp-proxy.py"]
}
}
}See Claude Desktop setup for detailed instructions.
Alternative: gate-local-mcp (local stdio with API keys)
For local development without OAuth, use gate-local-mcp (npm: gate-mcp) β a stdio MCP server that uses GATE_API_KEY / GATE_API_SECRET (optional for public market data only). Configure it as a command-based MCP server (e.g. "command": "npx", "args": ["-y", "gate-mcp"]). By default it registers 384 tools across 22 modules (spot, futures, delivery, margin, wallet, account, options, earn, flash_swap, unified, sub_account, multi_collateral_loan, p2p, tradfi, crossex, alpha, rebate, activity, coupon, launch, square, welfare). Reduce the set with GATE_MODULES or --modules=spot,futures, or enable read-only mode with GATE_READONLY=true / --readonly.
Important: Wire-level tool names use abbreviations (futuresβfx, deliveryβdc, sub_accountβsa, etc.); they differ from the remote api.gatemcp.ai naming. Always use the names returned by tools/list.
Full tool list: gate-local-mcp-tools.md.
LobeHub (desktop)
On the LobeHub MCP marketplace this server appears as identifier gate-gate-mcp. The npm package name is gate-mcp β run npx -y gate-mcp, not gate-gate-mcp.
Per LobeHub custom MCP, stdio servers work on the desktop app only; inject environment variables for Gate API authentication. Use Import JSON when adding a custom skill.
Public endpoints only:
{
"mcpServers": {
"gate-mcp": {
"command": "npx",
"args": ["-y", "gate-mcp"],
"type": "stdio"
}
}
}With API key authentication:
{
"mcpServers": {
"gate-mcp": {
"command": "npx",
"args": ["-y", "gate-mcp"],
"type": "stdio",
"env": {
"GATE_API_KEY": "your-api-key",
"GATE_API_SECRET": "your-api-secret"
}
}
}
}You can add GATE_MODULES, GATE_READONLY, or GATE_BASE_URL inside env as needed. Click Test connection before saving.
Other Clients
Client | Guide |
Claude.ai | |
Codex App | |
Codex CLI | |
OpenClaw | |
Trae | See Trae config above |
Qoder | See Qoder config above |
Basic Usage
Query Price
What's the current price of BTC/USDT?
Get Order Book
Show me the order book for ETH/USDT
K-line Data
Get the daily K-line data for BTC over the last 7 days
Available Tools
All tools use the cex_ prefix. Tools are split between Public MCP (no auth) and Private MCP (OAuth2).
Public MCP (/mcp β no auth, 58 tools)
Business | Tools | Description |
Spot | 8 |
|
Futures | 14 | Contracts, order book, trades, candlesticks, tickers, funding rate, premium index, liquidation, contract stats, insurance ledger, index constituents, batch funding rates, risk limit tiers |
Margin | 3 |
|
Options | 12 | Underlyings, expirations, contracts, settlements, order book, tickers, candlesticks, trades |
Delivery | 8 | Contracts, order book, trades, candlesticks, tickers, insurance ledger, risk limit tiers |
Earn | 5 |
|
Alpha | 3 |
|
Activity | 1 |
|
Launch | 1 |
|
Square | 2 |
|
Flash Swap | 1 |
|
Private MCP (/mcp/exchange β OAuth2, 400+ tools)
Note: The private endpoint does not include public market data tools. Use
/mcpfor market data queries.
Business | Scope | Key Tools |
Spot | profile / trade | Accounts, orders, trades, batch orders, price-triggered orders, countdown cancel, cross liquidate |
Futures | profile / trade | Accounts, positions, orders, trades, dual positions, trail orders, price-triggered, BBO orders |
Margin | profile / trade | Margin accounts, loans, auto-repay, uni loans |
Options | profile / trade | Account, positions, orders, MMP settings |
Delivery | profile / trade | Accounts, positions, orders, price-triggered orders |
Wallet | wallet | Total balance, transfers, deposits, withdrawals, deposit address, SA balances, small balance convert |
Unified | account | Unified accounts, mode, loans, risk units, borrowable, collateral, leverage config |
Sub-account | account | Create/list/lock/unlock SA, API keys |
Account | account | Account detail, main keys, rate limit, debit fee, STP groups |
Rebate | profile | Agency/partner/broker commission history, user info |
Flash Swap | profile / trade |
|
Earn | profile / trade | Dual/structured/uni products, orders, ETH2 swap, lend records |
Alpha | profile / trade | Alpha accounts, orders, quote/place |
TradFi | profile / trade | Categories, symbols, MT5 account, assets, orders, positions |
CrossEx | profile / trade | Rule symbols, account, positions, orders, transfers, convert |
P2P | profile / trade | User info, ads, chats, transactions, confirm payment/receipt |
Activity | profile | Activity types, recommended activities, user participation |
Coupon | profile | User coupons, coupon details |
Launch Pool | profile / trade | LaunchPool projects, pledge/redeem, reward records |
Square | market | AI search, live replay |
Welfare | profile | Beginner eligibility, task list and rewards |
For full tool parameters, see Gate API Docs or gate-exchange-mcp.
DEX β Authentication
Tool | Description |
| Start Google OAuth login flow, returns verification URL |
| Poll login status, returns mcp_token on success |
| Login with Google OAuth authorization code |
| Start Gate OAuth login flow, returns verification URL |
| Poll Gate OAuth login status, returns mcp_token on success |
| Login directly with Gate OAuth authorization code |
| Revoke current session |
DEX β Wallet
Tool | Description |
| Get wallet addresses for each chain (EVM, Solana) |
| Token balances with prices and pagination |
| Total portfolio value and 24h change |
| Sign a message with wallet private key (EVM / Solana) |
| Sign a raw transaction with wallet private key |
DEX β Chain & Transactions
Tool | Description |
| Chain configuration (chain ID, capabilities) |
| Estimate gas price and gas limit |
| Preview transfer details before signing |
| Token approval preview: build ERC20/SPL approve transaction |
| Build unsigned Solana SOL transfer with latest blockhash |
| Broadcast signed transaction on-chain |
| Swap quote with route, price impact and gas estimation |
| One-click swap: quote β build β sign β submit |
| Query swap order status by order ID |
| Transaction & swap / bridge history |
DEX β Market Data & Token Info
Tool | Description |
| K-line (candlestick) data: 1m, 5m, 1h, 4h, 1d |
| Trading volume and trader statistics (5m / 1h / 4h / 24h) |
| Liquidity pool add / remove events |
| Available tokens for swap on a given chain |
| Bridgeable tokens for cross-chain transfers |
| Token info: price, market cap, supply, holder distribution |
| 24h top gainers / top losers |
| Discover new tokens by creation time range |
| Security audit: honeypot, buy/sell tax, blacklist, permissions |
DEX β Agentic & RPC
Tool | Description |
| Report agentic wallet addresses to wallet service |
| Execute JSON-RPC call to blockchain node |
For full DEX tool parameters, see gate-dex-mcp. For the Agentic Wallet subset (auth, wallet, market data, resources), see gate-agentic-wallet-mcp.
Info (/mcp/info β 32 tools, no auth)
Public, read-only market research. Categories (full parameter tables: gate-info-mcp):
Category | Tools |
Coin |
|
Market snapshot |
|
Market trend |
|
On-chain |
|
Compliance |
|
Platform metrics |
|
Macro |
|
Market detail |
|
News (/mcp/news β 18 tools, no auth)
Public, read-only news and social research. Categories (full parameter tables: gate-news-mcp):
Category | Tools |
News feed |
|
Events |
|
Prediction |
|
MCP Resources
The /mcp and /mcp/exchange endpoints also expose MCP Resources for static reference data:
Resource URI | Description |
| All spot trading pairs |
| All supported currencies |
| USDT-settled futures contracts |
| BTC-settled futures contracts |
| Futures contracts by settlement currency |
FAQ
Q: Do I need a Gate account?
A: Only for CEX trading and DEX wallet. /mcp, /mcp/info, /mcp/news, and /mcp/docs are fully public β no account needed. /mcp/exchange (CEX trading, balances, transfers) requires Gate OAuth2. /mcp/dex (on-chain wallet, swap) requires Google or Gate OAuth.
Q: Does it support trading?
A: Yes. Connect to https://api.gatemcp.ai/mcp/exchange with OAuth2. The server supports spot and futures trading, account management, wallet transfers, and sub-accounts. Each tool requires the appropriate scope (e.g. trade, wallet).
Q: How often is the data updated?
A: Data is queried in real-time from Gate's API.
Privacy & Security
OAuth2 authorization via Gate account (no API keys stored in config)
All API calls use HTTPS
Support & Feedback
API Documentation: Gate API Docs
Issue Reporting: Please contact Gate support
Business Inquiries: Contact Gate official channels
Contributing
See CONTRIBUTING.md.
License
MIT Β© gate.com
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceExposes Indodax's Private and Public REST APIs as MCP tools, enabling AI agents to manage cryptocurrency trading and account information. It supports tasks like checking market prices, viewing account balances, and executing or canceling buy and sell orders.
- FlicenseBqualityDmaintenanceConnects MCP-compatible AI agents to GT Protocol trading accounts, enabling natural language control of automated trading bots, strategy backtesting, deal execution, and balance monitoring on Binance and Hyperliquid exchanges.1
- FlicenseNot gradedqualityCmaintenanceEnables MCP-compatible AI clients to access live crypto market data and AI-driven quantitative analysis, with structured outputs and full observability.
- AlicenseDqualityAmaintenanceEnables AI agents to access the full OKX exchange API for trading, market data, account management, and more through 300+ MCP tools.100971MIT
Related MCP Connectors
100+ MCP tools for AI agents: content metadata, trade intelligence, business-expertise analysis.
The financial MCP for AI agents - 90+ financial tables, SEC filings, signals, alt-data.
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gate/gate-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server