LI.FI — Claude Code MCP server: what it does, how to install
LI.FI finds cross-chain swap routes across 58 networks, checks DeFi yield vaults, and generates unsigned transaction payloads for an agent wallet.
no license 3,589 installs updated 2026-05-11
claude mcp add --transport http lifi-mcp https://lifi-mcp--li-fi.run.toolsWhat LI.FI does
This server connects coding agents to the LI.FI liquidity aggregator. It provides tooling to inspect token balances across EVM and Solana, pull exchange quotes across 27+ bridges and 31+ DEXes, check ERC20 allowances, and monitor pending cross-chain transactions.
Because the server runs strictly read-only, it generates raw unsigned transaction payloads rather than submitting funds itself. An active external wallet must handle signing and broadcasting. An API key is not mandatory, but missing credentials mean lower rate limits on requests.
What it helps with
- discover low-cost bridging routes across multiple blockchain networks
- prepare unsigned transactions for yield vault deposits or token swaps
- inspect ERC20 spender approvals before attempting a token exchange
- track transaction progress across network bridges
Example prompts for the agent
- Find the cheapest bridge route to swap USDC on Polygon for ETH on Optimism
- Check current APY across lending protocols on Arbitrum
- Inspect my wallet balance and ERC20 allowance for DAI on Ethereum
How to install LI.FI
Platform CLI: remote server
claude mcp add --transport http lifi-mcp https://lifi-mcp--li-fi.run.toolsPlatform CLI: remote server
codex mcp add lifi --url https://lifi-mcp--li-fi.run.toolsConfig file
{
"mcpServers": {
"lifi": {
"url": "https://lifi-mcp--li-fi.run.tools"
}
}
}Config file
{
"servers": {
"lifi": {
"type": "http",
"url": "https://lifi-mcp--li-fi.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http lifi https://lifi-mcp--li-fi.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about LI.FI
How do I install LI.FI in Claude Code?
Run claude mcp add --transport http lifi https://lifi-mcp--li-fi.run.tools in your terminal to register the remote HTTP endpoint.
What does the LI.FI MCP server do?
It queries liquidity routes across supported networks, inspects DeFi yield opportunities, and prepares raw transaction data for external wallet execution.
Can this server execute transactions autonomously?
No, the integration is read-only and builds unsigned transaction payloads, requiring your own wallet to sign and broadcast each call.