MCP Server

Available Tools

The MCP server exposes the following tools that MCP clients can use.

MCP Tools

  • CHAIN_LIST — Fetch chain list.
  • GAS_PRICE — Fetch gas price. Parameters: chain (string)
  • QUOTE — Fetch a quote for a swap. Parameters: chain, inTokenAddress, outTokenAddress, amount, slippage
  • SWAP — Build swap transaction. Parameters: same as QUOTE plus account (string)
  • GET_TRANSACTION — Fetch transaction info. Parameters: chain, hash
  • TOKEN_LIST — Fetch token list. Parameters: chain
  • DEX_LIST — Fetch DEX list. Parameters: chain

Parameter Breakdown

  • chain — The chain code of the DEX (e.g., eth, bsc, polygon).
  • inTokenAddress — The token you want to sell.
  • outTokenAddress — The token you want to buy.
  • amount — Token amount with decimals (e.g. 1 USDT = 1000000).
  • slippage — Percentage 0.05–50; 1% = 1.
  • account — User's wallet address.
  • hash — Transaction hash from the OpenOcean contract on the blockchain.

Next Steps