GDEX Trading logo

GDEX Trading

MCP tools for GDEX spot trading, HyperLiquid perpetuals, managed custody, market data, and SDK guidance.

Install GDEX Trading

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": {
    "gdex-trading": {
      "command": "npx",
      "args": [
        "-y",
        "@gemachdao/gdex-mcp-server"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio gdex-trading -- npx -y @gemachdao/gdex-mcp-server

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 @gemachdao/gdex-mcp-server

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

GDEX Trading MCP server connects AI agents to GDEX Pro for cross-chain spot trading, HyperLiquid perpetual futures, managed-custody operations, and trading research. It combines execution tools with documentation search, API references, SDK patterns, chain information, and workflow guides. Use it when an agent needs to inspect markets, authenticate, place or manage trades, or retrieve account and position data through MCP. The package supports configuration for Claude Code, Cursor, VS Code, Codex, and Windsurf.

Use cases

  • Execute cross-chain token buys and sells
  • Open and manage HyperLiquid perpetual positions
  • Inspect HyperLiquid balances, prices, and account state
  • Retrieve GDEX SDK examples and API workflow guidance
  • Configure GDEX trading tools for an MCP client

Key features

  • Cross-chain spot trading through a managed GDEX wallet
  • HyperLiquid perpetual positions and order management
  • Managed-custody and API-key authentication
  • HyperLiquid account and market-data queries
  • GDEX API, SDK, chain, and workflow documentation tools
  • Client configuration generation through the npm package

Tools154

What GDEX Trading lets your agent do. Expand a tool for its parameters.

Verified live~27.3k 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.

12/12 checks healthy over the last 48d

What it can do

From the 154 tools this server returned when we ran it; 154 declare their own safety hints.

Runs commands · 8Can delete or modify data · 50Handles credentials · 52Makes network requests · 139Read-only tools · 103
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age28 days
Maintainers1

Observed 2026-10-30 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · @gemachdao/gdex-mcp-server (npm)

Adoption & maintenance

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

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

How GDEX Trading works

What GDEX Trading does

GDEX Trading exposes GDEX Pro capabilities to MCP-compatible AI agents. Its toolset covers spot token purchases and sales, HyperLiquid perpetual futures, order management, account data, wallet operations, copy-trading guidance, and market information. It also includes tools for searching GDEX skill files and retrieving SDK examples, API details, supported-chain data, and step-by-step workflows.

Spot execution uses the managed GDEX wallet. buy_token purchases with a chain's native token, while sell_token sells a token for the native asset or a percentage of the managed holding. USDC-specific buy and sell flows are also supported through the related GDEX capabilities. Supported spot chains include Ethereum, Optimism, BSC, Sonic, Fraxtal, Robinhood, Base, Arbitrum, and Solana.

For derivatives, the server works with HyperLiquid perpetuals. Agents can open market or limit positions, apply leverage and take-profit or stop-loss settings when opening positions, close positions, cancel orders, deposit or withdraw USDC, and query prices, balances, margin, and positions.

How it works

The server runs as an MCP process and exposes GDEX functionality as callable tools. Its npm package can generate client configuration files with the init command. Configuration generation supports Claude, Cursor, VS Code, Codex, and OpenCode targets, while the repository also identifies Claude Code and Windsurf among supported agent environments.

Authentication can use a GDEX API key through auth_login, which sets a Bearer token for later requests. Managed custody uses encrypted computed-data sign-in: credentials can be converted into a payload with build_sign_in_payload, then submitted with managed_sign_in. Advanced users can generate a secp256k1 session keypair, although the managed sign-in flow is the preferred way to keep session keys on the local machine.

Trade execution returns identifiers that may require follow-up. After buy_token or sell_token, call wait_for_trade with the returned request ID and do not resubmit while the original request remains pending. HyperLiquid position and market-data queries such as account state, open positions, mark prices, mid prices, and USDC balances do not require authentication.

Setup and configuration

Install the MCP package through npm and use its initialization command to create client-specific configuration. Examples include:

  • npx @gemachdao/gdex-mcp-server init --client claude
  • npx @gemachdao/gdex-mcp-server init --client cursor
  • npx @gemachdao/gdex-mcp-server init --client vscode
  • npx @gemachdao/gdex-mcp-server init --client codex
  • npx @gemachdao/gdex-mcp-server init --client opencode

The initializer merges with an existing configuration, preserves other MCP servers and settings, saves the previous file with a .bak suffix, and treats repeated runs as no-ops. The repository also contains the server source under mcp-server/ and provides a Dockerfile for running it from the repository.

The agent-skill portion can be installed separately with the skills CLI. That distribution includes focused skills for spot trading, HyperLiquid perps, authentication, portfolio data, token discovery, copy trading, bridging, wallet setup, and related UI patterns.

Tools and capabilities

  • Search GDEX documentation and skill files, read bundled skill files, and retrieve TypeScript SDK patterns.
  • Look up API endpoints, response formats, supported chains, chain IDs, DEXes, and capabilities.
  • Explain complete spot, perp, limit-order, and copy-trading workflows.
  • Authenticate with API keys or managed custody and create session-key material.
  • Buy and sell tokens, then poll execution status using a request ID.
  • Open, close, and manage HyperLiquid perpetual positions and orders.
  • Deposit or withdraw HyperLiquid USDC and inspect account, position, price, and balance data.
  • Retrieve React component patterns for GDEX trading interfaces.

Limitations and notes

close_all_positions is known to be unreliable because its backend endpoint can return timeouts or JSON parsing errors; closing positions individually with close_perp_position is preferred. set_leverage depends on an endpoint that has returned 404 errors in live tests, so leverage should be supplied to open_perp_position instead. HyperLiquid limit orders sent through place_perp_order currently require reduceOnly=true.

A bare HyperLiquid coin open across multiple builder DEXes can prevent close_perp_position from determining the correct position. The tool also rejects missing or flat positions and quantities larger than the open size. For completed spot trades, an expired request ID produces a not_found outcome; a pending result means the request is still running and should not be submitted again.

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 GDEX Trading

GDEX Trading is an MCP server that connects AI agents to GDEX Pro and HyperLiquid. Its main tools support cross-chain spot buys and sells, perpetual futures positions and orders, managed-custody authentication, account and market-data queries, and access to GDEX API, SDK, chain, and trading workflow guidance.

Install and configure it with the npm package's `init` command, such as `npx @gemachdao/gdex-mcp-server init --client cursor`. The command generates or updates the selected client's MCP configuration and preserves existing servers and settings.

Yes, GDEX Trading provides a Cursor configuration target. Run `npx @gemachdao/gdex-mcp-server init --client cursor` to generate or merge the MCP configuration for Cursor.

Call `wait_for_trade` with the request ID returned by `buy_token` or `sell_token`. It polls the trade-status endpoint and reports filled, failed, not_found, or pending; do not resubmit a request that is still pending.

Yes, leverage can be supplied when opening a HyperLiquid position with `open_perp_position`. The separate `set_leverage` operation is currently unreliable because its backend endpoint has returned 404 errors.

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 PreviewGDEX Trading AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gdex-trading?style=directory)](https://allmcps.com/mcp/gdex-trading)
HTML Embed
<a href="https://allmcps.com/mcp/gdex-trading"><img src="https://allmcps.com/api/badge/gdex-trading?style=directory" alt="GDEX Trading on AllMCPs" /></a>