LI.FI MCP Server enables AI assistants to interact with cross-chain token transfers and swaps through the LI.FI API. It provides tools for querying token information, fetching quotes, checking transaction status, and executing transfers using a connected Ethereum wallet. The implementation includes wallet management capabilities for signing transactions, chain data caching for improved performance, and comprehensive error handling. Particularly valuable for use cases involving DeFi operations, cross-chain transfers, and token management without leaving the conversation interface.
아직 리뷰가 없습니다. 첫 번째 리뷰를 작성해 보세요!
대화에 참여하려면 로그인하세요
Retrieve all tokens supported by LI.FI. Parameters: chains (e.g., '1,137'), chainTypes (e.g., 'EVM,SVM'), minPriceUSD.
Get details about a specific token. Parameters: chain (required, e.g., '1' or 'ethereum'), token (required, address or symbol).
List all supported blockchain networks. Returns chain IDs, names, RPC URLs, block explorers. Parameters: chainTypes (e.g., 'EVM').
Look up chain by numeric ID. Parameters: id (required, e.g., '1' for Ethereum, '137' for Polygon).
Look up chain by name (case-insensitive). Parameters: name (required, e.g., 'ethereum', 'polygon', 'arbitrum').
Get the best route for a swap (PRIMARY TOOL). Returns route, fees, estimated time, and transactionRequest for execution. Required: fromChain, toChain, fromToken, toToken, fromAddress, fromAmount. Optional: toAddress, slippage (e.g., '0.03' for 3%), order (RECOMMENDED/FASTEST/CHEAPEST/SAFEST). Optional filters: allowBridges, allowExchanges.
Track cross-chain transfer progress. Parameters: txHash (required), bridge, fromChain, toChain.
Get multiple route options for comparison. Unlike get-quote, returns several alternatives to choose from. Required: fromChainId, toChainId, fromTokenAddress, toTokenAddress, fromAddress, fromAmount.
Convert a route step to executable transaction. Parameters: step (required, object from get-routes response).
Quote with custom contract calls (Zaps). Execute complex DeFi operations: bridge + deposit/stake in one transaction. Required: fromChain, toChain, fromToken, toToken, fromAddress, fromAmount, contractCalls.
Check available swap routes between chains. Use to verify if a route exists before calling get-quote. Parameters: fromChain, toChain, fromToken, toToken, chainTypes, allowBridges.
List available bridges and DEXes. Returns keys (for API calls) and names (human-readable). Parameters: chains (array of chain IDs to filter).
Current gas prices for all supported chains. Returns fast/standard/slow prices in gwei.
Detailed gas parameters for one chain. Parameters: chainId (required).
Verify API key is valid. Returns key status and rate limit information. API key must be provided via Authorization: Bearer or X-LiFi-Api-Key header.
Check server health and version. Returns server status and version information.
Check ETH/MATIC/etc. balance. Parameters: chain (required, e.g., '1' or 'ethereum'), address (required), rpcUrl (optional override).
Check ERC20 token balance. Parameters: chain (required), tokenAddress, walletAddress (required), rpcUrl (optional).
Check token spending approval. Important: Verify allowance before swaps; if insufficient, approve tokens using your wallet. Parameters: chain (required), tokenAddress, ownerAddress, spenderAddress (required), rpcUrl (optional).