mcp-server

v0.1.24
@houdiniswap/mcp-server Checked 1 day ago Published 6 days ago

HoudiniSwap 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.

ParameterTypeDescription
addressstringFilter by contract address
chainstringFilter by chain shortName (e.g. 'ethereum', 'bitcoin', 'solana')
hasCexbooleanOnly tokens available on CEX providers
hasDexbooleanOnly tokens available on DEX providers
hasSelfPrivatebooleanOnly tokens supporting private (anonymous 2-hop) swaps
mainnetbooleanOnly native/mainnet tokens
pageintegerPage number
pageSizeintegerResults per page
symbolstringExact symbol match (e.g. 'BTC', 'ETH', 'USDC')
termstringSearch term (name, symbol, or address)
unverifiedbooleanInclude unverified tokens (excluded by default). Warn the user before swapping any token with unverified: true.
verbosebooleanReturn 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.

ParameterTypeDescription
chainIdintegerFilter by EVM chain ID (e.g. 8453 for Base)
hasCexbooleanOnly chains with CEX support
hasDexbooleanOnly chains with DEX support
kindstringChain kind filter
memoNeededbooleanOnly chains that require a memo/destination tag
namestringSearch by chain name
pageinteger
pageSizeinteger
verbosebooleanReturn 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.

ParameterTypeDescription
amount *numberAmount to swap in source token units
from *stringSource token ID (from getTokens)
to *stringDestination token ID (from getTokens)
amountTypestring'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.
deviationThresholdnumberMax price deviation % when rotating wallets (default 5). Only used with rotatePayoutWallets.
fixedbooleanRequest fixed-rate quotes; only providers supporting fixed rate are returned.
inLegExcludedSwapsarrayPrivate swaps only: blocklist of providers for the first hop.
inLegIncludedSwapsarrayPrivate swaps only: allowlist of providers for the first hop.
limitPerTypeintegerBest quotes to keep per type (default 5). A pair can return 100+ quotes; the response reports how many were omitted.
outLegExcludedSwapsarrayPrivate swaps only: blocklist of providers for the second hop.
outLegIncludedSwapsarrayPrivate swaps only: allowlist of providers for the second hop.
receiverAddressstringReceiver wallet address
refundAddressstringSender address for refunds if a fixed-rate swap fails.
rotateFallbackbooleanIf strict rotation exhausts every rotated route, fall back to a non-rotated one. Requires rotatePayoutWallets.
rotatePayoutWalletsbooleanRotate payout wallets for better privacy. CEX quotes only.
rotationLookbackintegerRecent orders to check for path rotation (default 10). Only used with rotatePayoutWallets.
senderAddressstringSender wallet address (required for DEX)
slippagenumberMax slippage percentage for DEX quotes
sortstringSort quotes by
sortOrderstringSort direction
swapsarrayOnly quote these providers, by shortName from getSwapProviders (e.g. ['cn','se']). Omit for all.
typesarrayQuote types to include (default: all)
useXmrbooleanFor private swaps, use Monero as the intermediate hop instead of another L1.
verbosebooleanReturn 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).

ParameterTypeDescription
addressTo *stringDestination wallet address for receiving funds
quoteId *stringQuote ID from getQuote response
addressFromstringSource wallet address (required for DEX swaps)
destinationTagstringDestination tag/memo (for XRP, XLM, etc.)
refundAddressstringAddress to refund to if a fixed-rate swap fails
refundExtraIdstringMemo/tag for the refund address, on chains that need one
signaturesarrayEIP-712 signatures from dexApprove's permit path (DEX only)
verbosebooleanReturn the full unfiltered API response
walletInfostringFree-text wallet identifier recorded on the order

getOrder

Get the current status and details of a swap order by its Houdini ID.

ParameterTypeDescription
houdiniId *stringThe Houdini order ID (e.g. 'HOUDINI...')
verbosebooleanReturn 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.

ParameterTypeDescription
anonymousbooleanOnly anonymous (private 2-hop) orders
fromstringStart date, ISO 8601 (e.g. '2026-08-01T00:00:00.000Z')
inTokenIdstringFilter by source token ID
multiIdstringFilter by multi-order ID
outTokenIdstringFilter by destination token ID
pageinteger
pageSizeinteger
sortBystringSort field (default: created)
sortOrderstringSort direction (default: desc)
statusnumberFilter by order status code (4 = FINISHED, 5 = EXPIRED)
tostringEnd date, ISO 8601
verbosebooleanReturn 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.

ParameterTypeDescription
isDexbooleanOnly DEX providers (true) or only CEX providers (false)
markupSupportedbooleanOnly providers that support partner markup
slippageSupportedbooleanOnly providers that accept a slippage parameter
verbosebooleanReturn the full unfiltered API response

getMinMax

Get minimum and maximum swap amounts for a token pair across CEX, DEX, and private swap routes.

ParameterTypeDescription
tokenIdFrom *stringSource token ID (from getTokens)
tokenIdTo *stringDestination 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.

ParameterTypeDescription
addressFrom *stringAddress the amount will be deducted from (EVM 0x… or Tron T…)
quoteId *stringQuote ID from getQuote (DEX quote)
usePermitbooleanUse permit instead of approve; defaults to true where supported

dexCheckAllowance

Check if a token allowance is sufficient for a DEX swap.

ParameterTypeDescription
addressFrom *stringAddress the amount will be deducted from (EVM 0x… or Tron T…)
quoteId *stringQuote ID from getQuote (DEX quote)
usePermitbooleanUse permit instead of approve; defaults to true where supported

dexConfirmTx

Confirm a DEX transaction after the user has signed and submitted it on-chain.

ParameterTypeDescription
id *stringThe Houdini order ID (houdiniId from createExchange) — not the quote ID
txHashstringTransaction 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.

ParameterTypeDescription
addressFrom *stringEVM address the amount will be deducted from
previousSignature *objectThe signature object produced by the wallet in the previous step
quoteId *stringQuote ID from getQuote
signatureKey *stringSignature key returned by the previous approve or chainSignatures call
signatureStep *integerStep 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.

ParameterTypeDescription
addressTo *stringDestination wallet address
amount *numberAmount to swap in source token units
fromChain *stringSource chain (e.g. 'bitcoin', 'ethereum')
fromSymbol *stringSource token symbol (e.g. 'BTC', 'ETH')
toChain *stringDestination chain (e.g. 'ethereum', 'tron')
toSymbol *stringDestination token symbol (e.g. 'ETH', 'USDT')
acceptRiskTokenIdsarrayOnly 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.

ParameterTypeDescription
houdiniId *stringThe 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.

ParameterTypeDescription
houdiniId *stringThe 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.

ParameterTypeDescription
token *stringThe token returned by dexSignRequest