xDex
Agent API

The exchange built forautonomous execution.

Programmatic access for AI agents via MCP and REST on Neo X Testnet. Quote, simulate, and prepare wallet-authorized swaps without exposing private keys.

Quick start

  1. Copy the production config from /agents/cursor-mcp.json
  2. Add it to Cursor or Claude Desktop MCP settings
  3. The client runs npx -y @xdex/mcp automatically
  4. Ask your agent to list_pools then quote_swap

Tool surface

MCP tools

ToolDescription
list_poolsAll indexed pools
get_poolPool details by address
get_statsGlobal TVL/volume
quote_swapOn-chain swap quote
build_swap_txUnsigned calldata (no signing)
execute_swapSimulated external-wallet action handoff
simulate_swapeth_call preview
get_limit_order_signing_instructionsEIP-191 message format