Token Information
get-tokens
Retrieve all tokens supported by LI.FI. Use this to discover available tokens before requesting swaps.get-token
Get details about a specific token including price, decimals, and contract address.Chain Information
get-chains
List all supported blockchain networks. Returns chain IDs, names, RPC URLs, and block explorer links.get-chain-by-id
Look up a chain by its numeric ID.get-chain-by-name
Look up a chain by name (case-insensitive).Quote & Swap
These are the primary tools for executing cross-chain transfers.get-quote
Get the best route for a swap. This is the primary tool for most use cases. It returns the optimal route, fees, estimated time, and atransactionRequest object ready for signing.
get-routes
Get multiple route options for comparison. Unlikeget-quote, this returns several alternatives to choose from. Use with get-step-transaction to execute a specific route.
get-step-transaction
Convert a route step into an executable transaction.get-status
Track the progress of a cross-chain transfer.get-quote-with-calls
Get a quote with custom contract calls (Zaps). Execute complex DeFi operations like bridge + deposit/stake in a single transaction.Discovery & Routing
get-connections
Check available swap routes between chains. Use this to verify if a route exists before callingget-quote.
get-tools
List available bridges and DEXes. Returns bothkey values (for use in API calls) and name values (human-readable).
Gas Information
get-gas-prices
Get current gas prices for all supported chains. Returns fast, standard, and slow prices in gwei. No parameters required.get-gas-suggestion
Get detailed gas parameters for a specific chain, including recommended gas amount in USD.Balance & Allowance Queries
get-native-token-balance
Check the native token balance (ETH, MATIC, etc.) for a wallet address.get-token-balance
Check an ERC20 token balance for a wallet address.get-allowance
Check token spending approval. Verify allowance before swaps. If insufficient, the user must approve tokens using their wallet before executing the transaction.API Key & Health
test-api-key
Verify that your API key is valid. Returns key status and rate limit information.The API key must be provided via the
Authorization: Bearer or X-LiFi-Api-Key header in your MCP client configuration.
