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.
Fetch all tokens known to the LI.FI services. Parameters: chains, chainTypes, minPriceUSD
Get detailed information about a specific token. Parameters: chain (required), token (required)
Get information about all supported chains. Parameters: chainTypes
Find a chain by its numeric ID. Parameters: id (required)
Find a chain by name, key, or ID (case insensitive). Parameters: name (required)
Get a quote for a token transfer (cross-chain or same-chain). Parameters: fromChain, toChain, fromToken, toToken, fromAddress, fromAmount, etc.
Check the status of a cross-chain transfer. Parameters: txHash (required), bridge, fromChain, toChain
Returns all possible connections between chains. Parameters: fromChain, toChain, fromToken, toToken, chainTypes
Get available bridges and exchanges. Parameters: chains
Get the Ethereum address for the loaded private key
Get the native token balance of a wallet. Parameters: rpcUrl (required), address (required)
Get the balance of a specific ERC20 token for a wallet. Parameters: rpcUrl, tokenAddress, walletAddress
Check the allowance of an ERC20 token for a specific spender. Parameters: rpcUrl, tokenAddress, ownerAddress, spenderAddress
Execute a quote transaction using the stored private key. Parameters: rpcUrl, transactionRequest
Approve a specific amount of ERC20 tokens to be spent by another address. Parameters: rpcUrl, tokenAddress, spenderAddress, amount
Transfer ERC20 tokens to another address. Parameters: rpcUrl, tokenAddress, to, amount
Transfer native cryptocurrency to another address. Parameters: rpcUrl, to, amount
No reviews yet. Be the first to review!
Sign in to join the conversation