⚠️ IMPORTANT SECURITY DISCLAIMER ⚠️
DO NOT use this tool with your main wallet keystore or wallets containing significant funds!
This tool is for testing and experimental purposes only. There is potential for loss of funds due to:
- Software bugs or security vulnerabilities
- Transaction errors or misconfigurations
- Network issues or smart contract failures
Neither LI.FI nor the developers of this tool are responsible for any loss of funds resulting from the use of this freely available open-source software.
Use at your own risk with test wallets only.
This MCP server integrates with the LI.FI API to provide cross-chain swap functionality across multiple liquidity pools and bridges.
GetTokens
chains
, chainTypes
, minPriceUSD
GetToken
chain
(required), token
(required)GetChains
chainTypes
GetChainById
id
(required)GetChainByName
name
(required)GetQuote
fromChain
, toChain
, fromToken
, toToken
, fromAddress
, fromAmount
, etc.GetStatus
txHash
(required), bridge
, fromChain
, toChain
GetConnections
fromChain
, toChain
, fromToken
, toToken
, chainTypes
GetTools
chains
GetWalletAddress
GetNativeTokenBalance
rpcUrl
(required), address
(required)GetTokenBalance
rpcUrl
, tokenAddress
, walletAddress
GetAllowance
rpcUrl
, tokenAddress
, ownerAddress
, spenderAddress
ExecuteQuote
rpcUrl
, transactionRequest
ApproveToken
rpcUrl
, tokenAddress
, spenderAddress
, amount
TransferToken
rpcUrl
, tokenAddress
, to
, amount
TransferNative
rpcUrl
, to
, amount
You can install the LI.FI MCP server using the following command:
curl https://raw.githubusercontent.com/lifinance/lifi-mcp/refs/heads/main/install.sh | bash
Alternatively, you can install using Go:
go install github.com/lifinance/lifi-mcp@latest
Run the server with an Ethereum keystore file:
lifi-mcp server --keystore <keystore-name> --password <keystore-password>
The server will search for a file containing this name in the standard Ethereum keystore directory:
Create a new wallet keystore:
lifi-mcp new-wallet --name <wallet-name> --password <wallet-password>
This generates a new Ethereum wallet, saves it to the standard keystore location, and displays the wallet address.
To integrate this server with the desktop app, add the following to your app's server configuration:
{
"mcpServers": {
"lifi": {
"command": "lifi-mcp",
"args": ["server"]
}
}
}
For wallet functionality, include keystore parameters:
{
"mcpServers": {
"lifi": {
"command": "lifi-mcp",
"args": ["server", "--keystore", "your-keystore", "--password", "your-password"]
}
}
}
MIT
{
"mcpServers": {
"lifi": {
"env": {},
"args": [
"server"
],
"command": "lifi-mcp"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.