Gate API v4 MCP server β spot, futures, options, wallet, and more.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A local (stdio) MCP server that exposes the full Gate API v4 to any MCP-compatible client (Claude Desktop, etc.).
Quickstart guides: English Β· δΈζ
Looking for the remote MCP server? If you need HTTP/SSE-based remote access instead of local stdio, see gate/gate-mcp.
GATE_API_KEY + GATE_API_SECRET env vars are setGATE_BASE_URL to use the testnet endpointGATE_MODULES or --modules; use GATE_READONLY or --readonly to restrict to read-only toolsBy default all 384 tools (22 modules) are registered. To reduce the tool count (e.g. Cursor warns above 80), restrict to specific modules:
CLI flags:
MCP config (env vars):
Available 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, assetswap, bot, withdrawal
| Module | Total | Read-only |
|---|---|---|
| spot | 31 | 19 |
| futures | 64 | 36 |
| delivery | 29 | 20 |
| margin | 20 | 17 |
| wallet | 22 | 18 |
| account | 10 | 6 |
| options | 29 | 22 |
| earn | 41 | 26 |
| flash_swap | 7 | 5 |
| unified | 22 | 17 |
| sub_account | 11 | 5 |
| multi_collateral_loan | 12 | 9 |
| p2p | 17 | 10 |
| tradfi | 18 | 12 |
| crossex | 31 | 21 |
| alpha | 9 | 7 |
| rebate | 9 | 9 |
| activity | 3 | 3 |
| coupon | 2 | 2 |
| launch | 15 | 12 |
| square | 2 | 2 |
| assetswap | 7 | 2 |
| bot | 10 | 3 |
| withdrawal | 3 | 0 |
| Variable | Required | Default | Description |
|---|---|---|---|
GATE_API_KEY | No | β | API key for authenticated endpoints |
GATE_API_SECRET | No | β | API secret for authenticated endpoints |
GATE_BASE_URL | No | https://api.gateio.ws | Override base URL (e.g. for testnet) |
GATE_MODULES | No | all modules | Comma-separated list of modules to load (e.g. spot,futures) |
GATE_READONLY | No | false | Set to true to disable all write (order/transfer) tools |
Tools marked * require authentication (GATE_API_KEY + GATE_API_SECRET).
cex_spot_list_currencies, cex_spot_get_currency, cex_spot_list_currency_pairs, cex_spot_get_currency_pair, cex_spot_get_spot_tickers, cex_spot_get_spot_order_book, cex_spot_get_spot_trades, cex_spot_get_spot_candlesticks, cex_spot_get_spot_insurance_history, cex_spot_get_spot_fee*, cex_spot_get_spot_accounts*, cex_spot_list_spot_orders*, cex_spot_create_spot_order*, cex_spot_get_spot_order*, cex_spot_cancel_spot_order*, cex_spot_amend_spot_order*, cex_spot_cancel_all_spot_orders*, cex_spot_list_spot_my_trades*, cex_spot_list_all_open_orders*, cex_spot_list_spot_price_triggered_orders*, cex_spot_list_spot_account_book*, cex_spot_get_spot_batch_fee*, cex_spot_create_spot_batch_orders*, cex_spot_amend_spot_batch_orders*, cex_spot_cancel_spot_batch_orders*, cex_spot_create_cross_liquidate_order*, cex_spot_create_spot_price_triggered_order*, cex_spot_get_spot_price_triggered_order*, cex_spot_cancel_spot_price_triggered_order*, cex_spot_cancel_spot_price_triggered_order_list*, cex_spot_countdown_cancel_all_spot*
cex_fx_cex_fx_list_fx_contracts, cex_fx_get_fx_contract, cex_fx_get_fx_order_book, cex_fx_get_fx_candlesticks, cex_fx_get_fx_tickers, cex_fx_get_fx_funding_rate, cex_fx_get_fx_trades, cex_fx_list_contract_stats, cex_fx_get_fx_premium_index, cex_fx_list_batch_fx_funding_rates, cex_fx_list_fx_insurance_ledger, cex_fx_get_index_constituents, cex_fx_list_liquidated_orders, cex_fx_get_fx_accounts*, cex_fx_list_fx_account_book*, cex_fx_list_fx_positions*, cex_fx_list_positions_timerange*, cex_fx_get_fx_position*, cex_fx_get_leverage*, cex_fx_get_fx_fee*, cex_fx_list_fx_risk_limit_tiers*, cex_fx_get_fx_risk_limit_table*, cex_fx_list_fx_orders*, cex_fx_create_fx_order*, cex_fx_create_fx_bbo_order*, cex_fx_get_fx_order*, cex_fx_amend_fx_order*, cex_fx_cancel_fx_order*, cex_fx_cancel_all_fx_orders*, cex_fx_create_fx_batch_orders*, cex_fx_cancel_fx_batch_orders*, cex_fx_amend_fx_batch_orders*, cex_fx_get_fx_orders_with_time_range*, cex_fx_list_fx_my_trades*, cex_fx_get_fx_my_trades_timerange*, cex_fx_list_position_close*, cex_fx_list_fx_liq_orders*, cex_fx_list_auto_deleverages*, cex_fx_update_fx_position_leverage*, cex_fx_update_fx_contract_position_leverage*, cex_fx_update_fx_position_margin*, cex_fx_update_fx_position_risk_limit*, cex_fx_update_fx_position_cross_mode*, cex_fx_update_fx_dual_position_cross_mode*, cex_fx_set_fx_dual*, cex_fx_set_position_mode*, cex_fx_get_fx_dual_position*, cex_fx_update_fx_dual_position_margin*, cex_fx_update_fx_dual_position_leverage*, cex_fx_update_fx_dual_position_risk_limit*, cex_fx_countdown_cancel_all_fx*, cex_fx_create_trail_order*, cex_fx_get_trail_orders*, cex_fx_get_trail_order_detail*, cex_fx_update_trail_order*, cex_fx_stop_trail_order*, cex_fx_stop_all_trail_orders*, cex_fx_get_trail_order_change_log*, cex_fx_list_price_triggered_orders*, cex_fx_create_fx_price_triggered_order*, cex_fx_get_fx_price_triggered_order*, cex_fx_update_fx_price_triggered_order*, cex_fx_cancel_fx_price_triggered_order*, cex_fx_cancel_fx_price_triggered_order_list*
cex_dc_cex_dc_list_dc_contracts, cex_dc_get_dc_contract, cex_dc_list_dc_order_book, cex_dc_list_dc_candlesticks, cex_dc_list_dc_tickers, cex_dc_list_dc_trades, cex_dc_list_dc_insurance_ledger, cex_dc_list_dc_risk_limit_tiers, cex_dc_list_dc_accounts*, cex_dc_list_dc_positions*, cex_dc_list_dc_orders*, cex_dc_create_dc_order*, cex_dc_cancel_dc_order*, cex_dc_cancel_dc_orders*, cex_dc_get_my_dc_trades*, cex_dc_list_dc_account_book*, cex_dc_get_dc_position*, cex_dc_update_dc_position_margin*, cex_dc_update_dc_position_leverage*, cex_dc_update_dc_position_risk_limit*, cex_dc_get_dc_order*, cex_dc_list_dc_position_close*, cex_dc_list_dc_liquidates*, cex_dc_list_dc_settlements*, cex_dc_list_price_triggered_dc_orders*, cex_dc_create_price_triggered_dc_order*, cex_dc_get_price_triggered_dc_order*, cex_dc_cancel_price_triggered_dc_order_list*, cex_dc_cancel_price_triggered_dc_order*
cex_margin_get_market_margin_tier, cex_margin_list_uni_currency_pairs, cex_margin_get_uni_currency_pair, cex_margin_list_margin_accounts*, cex_margin_list_margin_account_book*, cex_margin_get_auto_repay_status*, cex_margin_set_auto_repay*, cex_margin_get_margin_transferable*, cex_margin_list_funding_accounts*, cex_margin_get_user_margin_tier*, cex_margin_set_user_market_leverage*, cex_margin_list_margin_user_account*, cex_margin_list_cross_margin_loans*, cex_margin_list_cross_margin_repayments*, cex_margin_list_uni_loans*, cex_margin_create_uni_loan*, cex_margin_list_uni_loan_records*, cex_margin_list_uni_loan_interest_records*, cex_margin_get_uni_borrowable*, cex_margin_get_margin_uni_estimate_rate*
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gate-mcp)<a href="https://allmcps.com/mcp/gate-mcp"><img src="https://allmcps.com/api/badge/gate-mcp?style=directory" alt="Gate MCP on AllMCPs" /></a>