mcp-server
v0.1.24HoudiniSwap MCP server — connect AI agents to 14 CEXes and 20+ DEXes via Model Context Protocol
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
getTokens
Search HoudiniSwap tokens by symbol, chain, or address. Returns paginated results with token IDs needed for quotes and exchanges.
| Parameter | Type | Description |
|---|---|---|
address | string | Filter by contract address |
chain | string | Filter by chain shortName (e.g. 'ethereum', 'bitcoin', 'solana') |
hasCex | boolean | Only tokens available on CEX providers |
hasDex | boolean | Only tokens available on DEX providers |
hasSelfPrivate | boolean | Only tokens supporting private (anonymous 2-hop) swaps |
mainnet | boolean | Only native/mainnet tokens |
page | integer | Page number |
pageSize | integer | Results per page |
symbol | string | Exact symbol match (e.g. 'BTC', 'ETH', 'USDC') |
term | string | Search term (name, symbol, or address) |
unverified | boolean | Include unverified tokens (excluded by default). Warn the user before swapping any token with unverified: true. |
verbose | boolean | Return the full unfiltered API response. Raw pages are large — combine with a small pageSize (10 or less), or the response can exceed the client's tool-result limit and be discarded entirely. |
getChains
List supported blockchains on HoudiniSwap (id, name, shortName, kind, chainId, memo requirement). Pass verbose for explorer URL templates, icons and address-validation patterns.
| Parameter | Type | Description |
|---|---|---|
chainId | integer | Filter by EVM chain ID (e.g. 8453 for Base) |
hasCex | boolean | Only chains with CEX support |
hasDex | boolean | Only chains with DEX support |
kind | string | Chain kind filter |
memoNeeded | boolean | Only chains that require a memo/destination tag |
name | string | Search by chain name |
page | integer | |
pageSize | integer | |
verbose | boolean | Return the full unfiltered API response. Raw pages are large — combine with a small pageSize (10 or less), or the response can exceed the client's tool-result limit and be discarded entirely. |
getQuote
Get swap quotes for a token pair and amount. Returns the best quotes from CEX and DEX providers, sorted by best rate. Use token IDs from getTokens.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount to swap in source token units |
from * | string | Source token ID (from getTokens) |
to * | string | Destination token ID (from getTokens) |
amountType | string | 'send' (default): amount is what the user sends. 'receive': amount is what they want to receive — requires fixed=true, and is standard CEX quotes only. |
deviationThreshold | number | Max price deviation % when rotating wallets (default 5). Only used with rotatePayoutWallets. |
fixed | boolean | Request fixed-rate quotes; only providers supporting fixed rate are returned. |
inLegExcludedSwaps | array | Private swaps only: blocklist of providers for the first hop. |
inLegIncludedSwaps | array | Private swaps only: allowlist of providers for the first hop. |
limitPerType | integer | Best quotes to keep per type (default 5). A pair can return 100+ quotes; the response reports how many were omitted. |
outLegExcludedSwaps | array | Private swaps only: blocklist of providers for the second hop. |
outLegIncludedSwaps | array | Private swaps only: allowlist of providers for the second hop. |
receiverAddress | string | Receiver wallet address |
refundAddress | string | Sender address for refunds if a fixed-rate swap fails. |
rotateFallback | boolean | If strict rotation exhausts every rotated route, fall back to a non-rotated one. Requires rotatePayoutWallets. |
rotatePayoutWallets | boolean | Rotate payout wallets for better privacy. CEX quotes only. |
rotationLookback | integer | Recent orders to check for path rotation (default 10). Only used with rotatePayoutWallets. |
senderAddress | string | Sender wallet address (required for DEX) |
slippage | number | Max slippage percentage for DEX quotes |
sort | string | Sort quotes by |
sortOrder | string | Sort direction |
swaps | array | Only quote these providers, by shortName from getSwapProviders (e.g. ['cn','se']). Omit for all. |
types | array | Quote types to include (default: all) |
useXmr | boolean | For private swaps, use Monero as the intermediate hop instead of another L1. |
verbose | boolean | Return the full unfiltered API response |
createExchange
Create a swap order using a quoteId from getQuote. Returns the order with a deposit address (for CEX) or transaction data (for DEX).
| Parameter | Type | Description |
|---|---|---|
addressTo * | string | Destination wallet address for receiving funds |
quoteId * | string | Quote ID from getQuote response |
addressFrom | string | Source wallet address (required for DEX swaps) |
destinationTag | string | Destination tag/memo (for XRP, XLM, etc.) |
refundAddress | string | Address to refund to if a fixed-rate swap fails |
refundExtraId | string | Memo/tag for the refund address, on chains that need one |
signatures | array | EIP-712 signatures from dexApprove's permit path (DEX only) |
verbose | boolean | Return the full unfiltered API response |
walletInfo | string | Free-text wallet identifier recorded on the order |
getOrder
Get the current status and details of a swap order by its Houdini ID.
| Parameter | Type | Description |
|---|---|---|
houdiniId * | string | The Houdini order ID (e.g. 'HOUDINI...') |
verbose | boolean | Return the full unfiltered API response. Raw pages are large — combine with a small pageSize (10 or less), or the response can exceed the client's tool-result limit and be discarded entirely. |
getOrders
List swap orders with optional filters. Works with API-key or x402 authentication.
| Parameter | Type | Description |
|---|---|---|
anonymous | boolean | Only anonymous (private 2-hop) orders |
from | string | Start date, ISO 8601 (e.g. '2026-08-01T00:00:00.000Z') |
inTokenId | string | Filter by source token ID |
multiId | string | Filter by multi-order ID |
outTokenId | string | Filter by destination token ID |
page | integer | |
pageSize | integer | |
sortBy | string | Sort field (default: created) |
sortOrder | string | Sort direction (default: desc) |
status | number | Filter by order status code (4 = FINISHED, 5 = EXPIRED) |
to | string | End date, ISO 8601 |
verbose | boolean | Return the full unfiltered API response. Raw pages are large — combine with a small pageSize (10 or less), or the response can exceed the client's tool-result limit and be discarded entirely. |
getSwapProviders
List all available swap providers (CEX and DEX) on HoudiniSwap. Returns each provider's shortName, which is what the getQuote `swaps` filter takes.
| Parameter | Type | Description |
|---|---|---|
isDex | boolean | Only DEX providers (true) or only CEX providers (false) |
markupSupported | boolean | Only providers that support partner markup |
slippageSupported | boolean | Only providers that accept a slippage parameter |
verbose | boolean | Return the full unfiltered API response |
getMinMax
Get minimum and maximum swap amounts for a token pair across CEX, DEX, and private swap routes.
| Parameter | Type | Description |
|---|---|---|
tokenIdFrom * | string | Source token ID (from getTokens) |
tokenIdTo * | string | Destination token ID (from getTokens) |
dexApprove
Get token approval transaction data for a DEX swap. Returns the transaction(s) or EIP-2612 permit signature data needed before executing the swap.
| Parameter | Type | Description |
|---|---|---|
addressFrom * | string | Address the amount will be deducted from (EVM 0x… or Tron T…) |
quoteId * | string | Quote ID from getQuote (DEX quote) |
usePermit | boolean | Use permit instead of approve; defaults to true where supported |
dexCheckAllowance
Check if a token allowance is sufficient for a DEX swap.
| Parameter | Type | Description |
|---|---|---|
addressFrom * | string | Address the amount will be deducted from (EVM 0x… or Tron T…) |
quoteId * | string | Quote ID from getQuote (DEX quote) |
usePermit | boolean | Use permit instead of approve; defaults to true where supported |
dexConfirmTx
Confirm a DEX transaction after the user has signed and submitted it on-chain.
| Parameter | Type | Description |
|---|---|---|
id * | string | The Houdini order ID (houdiniId from createExchange) — not the quote ID |
txHash | string | Transaction hash. Required for on-chain orders, optional for off-chain. |
dexChainSignatures
Get the next signature in a multi-step DEX chain (e.g. permit + bridge). Call repeatedly until the chain is complete.
| Parameter | Type | Description |
|---|---|---|
addressFrom * | string | EVM address the amount will be deducted from |
previousSignature * | object | The signature object produced by the wallet in the previous step |
quoteId * | string | Quote ID from getQuote |
signatureKey * | string | Signature key returned by the previous approve or chainSignatures call |
signatureStep * | integer | Step number in the signature chain sequence |
swap
Execute a complete swap flow: find tokens by symbol, validate amount, get the best quote, and create the exchange order. Returns the order with deposit address. Use this for a simple end-to-end CEX swap. If a token security scan flags either token, no order is created: the tool returns confirmationRequired with a warning to show the user, as app.houdini.com does.
| Parameter | Type | Description |
|---|---|---|
addressTo * | string | Destination wallet address |
amount * | number | Amount to swap in source token units |
fromChain * | string | Source chain (e.g. 'bitcoin', 'ethereum') |
fromSymbol * | string | Source token symbol (e.g. 'BTC', 'ETH') |
toChain * | string | Destination chain (e.g. 'ethereum', 'tron') |
toSymbol * | string | Destination token symbol (e.g. 'ETH', 'USDT') |
acceptRiskTokenIds | array | Only after this tool returned confirmationRequired and the user explicitly accepted the risk: the acceptRiskTokenIds it returned. Never set this on a first call or without the user's answer. |
dexSignRequest
Open a local page in the user's browser to sign a DEX swap with their own wallet. Use this instead of asking the user to handle raw transaction data. Costs one status call ($0.0001) to read the order; the signing itself is local and free.
| Parameter | Type | Description |
|---|---|---|
houdiniId * | string | The Houdini order ID from createExchange |
cexDepositRequest
Open a local page in the user's browser to send a CEX order's deposit from their own wallet. Use this instead of asking the user to copy a deposit address and amount by hand. EVM chains only. Costs one status call ($0.0001) to read the order; the send itself is local and free.
| Parameter | Type | Description |
|---|---|---|
houdiniId * | string | The Houdini order ID from createExchange |
dexSignStatus
Check whether the user has signed a transaction requested via dexSignRequest or cexDepositRequest. Poll this after giving them the URL. Free.
| Parameter | Type | Description |
|---|---|---|
token * | string | The token returned by dexSignRequest |