Required for running the MCP server which provides cross-chain bridge and DEX aggregation services through the LI.FI API.
Package manager used for installing dependencies of the LI.FI MCP server that offers cross-chain infrastructure access.
Used as the runtime environment for the LI.FI MCP server that enables blockchain network information, token data, bridging tools, and transaction status tracking.
Alternative package manager that can be used for the LI.FI MCP server that enables cross-chain transactions and token management.
Provides validation for the LI.FI MCP server which handles blockchain operations, token operations, and gas pricing across different chains.
LI.FI MCP Server
A Model Context Protocol (MCP) server that provides comprehensive integration with the LI.FI API for cross-chain bridge and DEX aggregation services.
Overview
This MCP server enables AI assistants and applications to interact with LI.FI's cross-chain infrastructure through a standardized protocol. It provides access to blockchain network information, token data, bridging tools, transaction status tracking, and more.
Features
Available Tools
Chain Information (
lifi_get_chains
) - Get information about all supported blockchain networksToken Data (
lifi_get_tokens
) - Retrieve comprehensive token information across chainsSpecific Token (
lifi_get_token
) - Get detailed information about a specific tokenBridge & Exchange Tools (
lifi_get_tools
) - List available bridges and exchangesChain Connections (
lifi_get_connections
) - Explore supported cross-chain connectionsGas Price Data (
lifi_get_gas_prices
) - Get current gas prices for specific chainsGas Suggestions (
lifi_get_gas_suggestion
) - Get gas amount recommendationsTransaction Status (
lifi_get_transaction_status
) - Track cross-chain transfer statusFee Withdrawal (
lifi_get_integrator_fee_withdrawal
) - Manage integrator fee withdrawals
Prerequisites
Node.js (v16 or higher)
npm or yarn
LI.FI API key
Installation
Clone the repository:
Install dependencies:
Obtain a LI.FI API key:
Visit LI.FI Developer Portal to register and get your API key
Keep your API key secure and ready for configuration
Configuration
The server requires the following configuration:
lifiApiKey
(required): Your LI.FI API key for authenticationdebug
(optional): Enable debug logging (default: false)
Development
Start the development server:
This will start the MCP server using Smithery CLI with hot reloading enabled.
Usage
With MCP-Compatible Applications
This server can be used with any application that supports the Model Context Protocol, such as:
Claude Desktop
MCP-enabled IDEs
Custom MCP clients
Example Configuration
For Claude Desktop, add to your claude_desktop_config.json
:
Tool Examples
Get supported chains:
Get tokens for specific chains:
Check transaction status:
Get gas prices:
API Reference
Chain Operations
lifi_get_chains(chainTypes?)
- List supported blockchain networks
Token Operations
lifi_get_tokens(chains?, chainTypes?, minPriceUSD?)
- Get token informationlifi_get_token(chain, token)
- Get specific token details
Infrastructure
lifi_get_tools(chains?)
- List available bridges and exchangeslifi_get_connections(fromChain?, toChain?, fromToken?, toToken?, allowBridges?, denyBridges?, allowExchanges?, denyExchanges?)
- Get connection information
Gas & Pricing
lifi_get_gas_prices(chainId)
- Get current gas priceslifi_get_gas_suggestion(chain, fromChain?, fromToken?)
- Get gas recommendations
Transaction Management
lifi_get_transaction_status(txHash?, transactionId?)
- Track transaction statuslifi_get_integrator_fee_withdrawal(integratorId, chainId, tokens?)
- Manage fee withdrawals
Tech Stack
Runtime: TypeScript
MCP SDK: @modelcontextprotocol/sdk
HTTP Client: node-fetch
Validation: Zod
Development: Smithery CLI
Error Handling
The server includes comprehensive error handling for:
API authentication failures
Network connectivity issues
Invalid parameter validation
LI.FI API errors and rate limits
All errors are returned as structured responses with descriptive messages.
Security
API keys are required and validated at connection time
All requests use HTTPS
Input validation using Zod schemas
No sensitive data is logged in production
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
License
ISC
Support
For issues related to:
This MCP Server: Create an issue in this repository
LI.FI API: Visit LI.FI Documentation
Model Context Protocol: Visit MCP Documentation
Changelog
v1.0.0
Initial release with full LI.FI API integration
Support for all major LI.FI endpoints
Comprehensive error handling and validation
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables AI assistants to interact with LI.FI's cross-chain infrastructure, providing access to blockchain networks, token data, bridges, and transaction services through a standardized protocol.
Related MCP Servers
- -securityAlicense-qualityA secure system enabling AI assistants to interact with blockchain data and prepare transactions while ensuring users maintain exclusive control over their private keys and transaction signing.Last updated -9MIT License
- AsecurityAlicenseAqualityProvides tools for AI assistants to interact with the Ethereum blockchain through standard JSON-RPC methods, enabling queries for account balances, gas prices, and smart contract code.Last updated -310MIT License
- -securityAlicense-qualityA comprehensive toolkit for building AI agents with blockchain capabilities, enabling interactions with multiple blockchain networks for tasks like wallet management, fund transfers, smart contract interactions, and cross-chain asset bridging.Last updated -3GPL 3.0
- -securityFlicense-qualityEnables natural language interaction with the Avalanche blockchain through AI assistants, allowing users to execute Avalanche CLI commands and AvalancheJS API operations without technical knowledge.Last updated -1