Gate MCP Server is an MCP server that gate API v4 MCP server — spot, futures, options, wallet, and more. Its tool list has not been published yet over stdio and sse, requires no API key, and scores 81/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"gate": {
"args": [
"-y",
"gate-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A local (stdio) MCP server that exposes the full Gate API v4 to any MCP-compatible client (Claude Desktop, etc.).
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'gate-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked gate-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
HoneyBook client-portal MCP server for Claude — view contracts and invoices from wedding vendors
Self-custody Ethereum agent wallet (MCP/stdio). Keys stay in a local Docker volume.
MCP server for QuickBooks Online — accounts, customers, invoices, bills, and reports.
MCP Security Weekly
Get CVE alerts and security updates for Gate MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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 tools{
"mcpServers": {
"gate": {
"command": "npx",
"args": ["-y", "gate-mcp"]
}
}
}
{
"mcpServers": {
"gate": {
"command": "npx",
"args": ["-y", "gate-mcp"],
"env": {
"GATE_API_KEY": "your-api-key",
"GATE_API_SECRET": "your-api-secret"
}
}
}
}
{
"mcpServers": {
"gate": {
"command": "npx",
"args": ["-y", "gate-mcp"],
"env": {
"GATE_BASE_URL": "https://api-testnet.gateapi.io",
"GATE_API_KEY": "your-testnet-key",
"GATE_API_SECRET": "your-testnet-secret"
}
}
}
}
By 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:
# Load only spot and futures tools (95 tools)
GATE_API_KEY=... npx gate-mcp --modules=spot,futures
# Load futures tools in read-only mode (36 tools)
npx gate-mcp --modules=futures --readonly
MCP config (env vars):
{
"mcpServers": {
"gate": {
"command": "npx",
"args": ["-y", "gate-mcp"],
"env": {
"GATE_MODULES": "spot,futures",
"GATE_READONLY": "true",
"GATE_API_KEY": "your-api-key",
"GATE_API_SECRET": "your-api-secret"
}
}
}
}
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 |