Gate MCP logo

Gate MCP

Local stdio access to Gate API v4 for market data, trading, account, wallet, and other exchange functions.

Install Gate MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "gate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gate-mcp"
      ],
      "env": {
        "GATE_API_KEY": "YOUR_VALUE_HERE",
        "GATE_API_SECRET": "YOUR_VALUE_HERE",
        "GATE_BASE_URL": "YOUR_VALUE_HERE",
        "GATE_MODULES": "YOUR_VALUE_HERE",
        "GATE_READONLY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env GATE_API_KEY=YOUR_VALUE_HERE --env GATE_API_SECRET=YOUR_VALUE_HERE --env GATE_BASE_URL=YOUR_VALUE_HERE --env GATE_MODULES=YOUR_VALUE_HERE --env GATE_READONLY=YOUR_VALUE_HERE --transport stdio gate-mcp -- npx -y gate-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y gate-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The gate-mcp MCP server exposes Gate API v4 through a local stdio process for MCP-compatible clients. It provides tools across spot, futures, delivery, margin, wallet, account, options, and many other Gate API modules. Public market-data endpoints work without credentials, while trading, wallet, and account operations require API credentials. Use it when an agent needs local access to Gate, with optional testnet, module filtering, or read-only controls.

Use cases

  • Query Gate spot and futures market data from an MCP client
  • Place and manage exchange orders with authenticated credentials
  • Inspect wallet, account, margin, and position information
  • Connect an agent to Gate testnet APIs
  • Restrict an MCP client to selected or read-only modules

Key features

  • 384 Gate API v4 tools
  • Local stdio MCP transport
  • Public endpoints without credentials
  • Authenticated trading and account operations
  • Testnet base URL support
  • Module filtering and read-only mode

Tools2

What Gate MCP lets your agent do. Expand a tool for its parameters.

Self-reported~15 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · gate-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads1.1kPackage downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed2Callable tools this server registers over MCP.

How Gate MCP works

What gate-mcp MCP server does

The gate-mcp MCP server connects MCP-compatible clients to Gate’s API v4 through a local stdio process. It registers tools for exchange and account operations across a broad set of API areas, including spot, futures, delivery, margin, wallet, account, options, Earn, Flash Swap, Unified, sub-accounts, P2P, TradFi, CrossEx, Alpha, rebates, activity, coupons, launch features, Square, asset swaps, bots, and withdrawals.

The default installation registers 384 tools. Public functions such as market data, tickers, order books, trades, and candlesticks can be used without API credentials. Authenticated functions become available when both the Gate API key and secret are supplied, covering actions such as order management, account queries, transfers, and wallet operations where supported by the selected modules.

How it works

An MCP client starts the package with a command such as npx -y gate-mcp. The process communicates locally over stdio and presents the selected Gate API operations as MCP tools. The default API base URL is https://api.gateio.ws, and it can be replaced for environments such as Gate’s testnet.

The gate-mcp MCP server supports module selection to reduce the number of registered tools. For example, a client can load only spot,futures. A read-only mode disables write operations, including order and transfer tools. These controls are useful for clients that warn about large tool collections or for workflows that should only inspect market and account data.

Setup and configuration

Add the server to an MCP client configuration with npx, using the package name gate-mcp. Public-only use needs no environment variables. Authenticated use requires both GATE_API_KEY and GATE_API_SECRET.

Supported configuration variables include:

  • GATE_API_KEY: API key for authenticated endpoints.
  • GATE_API_SECRET: API secret for authenticated endpoints.
  • GATE_BASE_URL: alternate API base URL, including the testnet endpoint.
  • GATE_MODULES: comma-separated modules to register, such as spot,futures.
  • GATE_READONLY: set to true to disable write tools.

The same module and read-only settings can also be supplied as --modules and --readonly command-line options. Keep credentials in the client’s environment configuration rather than embedding them in prompts.

Tools and capabilities

The gate-mcp MCP server groups its tools by Gate API module. Spot tools cover currencies, pairs, tickers, books, trades, candles, fees, accounts, orders, batch orders, and triggered orders. Futures tools include contracts, funding data, positions, leverage, risk limits, orders, trailing orders, and price-triggered orders.

Other registered groups provide functions for delivery contracts, margin accounts and loans, options, Earn products, wallet and account operations, sub-accounts, multi-collateral loans, P2P, TradFi, CrossEx, Alpha, rebates, activities, coupons, launches, Square, asset swaps, bots, and withdrawals. The exact available set depends on the modules enabled at startup.

Limitations and notes

This is the local stdio variant. The repository documentation points users needing HTTP or SSE access to a separate remote MCP repository. Authenticated operations depend on valid Gate credentials, while public operations do not. The default configuration loads all modules and tools, so restricting GATE_MODULES may be appropriate for clients with tool-count limits. Setting read-only mode prevents write tools but does not replace careful API credential and account-permission management.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gate MCP

gate-mcp is an MCP server that connects MCP-compatible clients to Gate’s API v4 through a local stdio process. Its main tools cover spot, futures, delivery, margin, wallet, account, options, and other Gate API modules. Public market data needs no credentials; authenticated trading and account tools require a key and secret.

Install it through an MCP client configuration that runs `npx -y gate-mcp`. Public endpoints can start without environment variables. Add `GATE_API_KEY` and `GATE_API_SECRET` to the client environment when using authenticated trading, wallet, or account tools.

Yes, set `GATE_BASE_URL` to `https://api-testnet.gateapi.io` and provide testnet API credentials for authenticated operations. The base URL otherwise defaults to `https://api.gateio.ws`.

Set `GATE_MODULES` to a comma-separated list such as `spot,futures`, or pass the equivalent `--modules` option. You can also set `GATE_READONLY=true` or use `--readonly` to disable write tools.

Yes, the README provides a Claude Desktop configuration and discusses Cursor tool-count warnings. The server is a local stdio server intended for MCP-compatible clients.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGate MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gate-mcp?style=directory)](https://allmcps.com/mcp/gate-mcp)
HTML Embed
<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>