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
- Copy the production config from /agents/cursor-mcp.json
- Add it to Cursor or Claude Desktop MCP settings
- The client runs
npx -y @xdex/mcpautomatically - Ask your agent to
list_poolsthenquote_swap
Tool surface
MCP tools
| Tool | Description |
|---|---|
| list_pools | All indexed pools |
| get_pool | Pool details by address |
| get_stats | Global TVL/volume |
| quote_swap | On-chain swap quote |
| build_swap_tx | Unsigned calldata (no signing) |
| execute_swap | Simulated external-wallet action handoff |
| simulate_swap | eth_call preview |
| get_limit_order_signing_instructions | EIP-191 message format |