lifi-mcp-skill
Original:🇺🇸 English
Translated
1 scripts
Use the LI.FI MCP server through UXC for cross-chain route discovery, bridge/DEX availability checks, token and chain lookup, gas/balance/allowance checks, quote generation, and transfer status tracking. Use when tasks involve planning or monitoring cross-chain swaps and bridges without signing or broadcasting transactions.
7installs
Sourceholon-run/uxc
Added on
NPX Install
npx skill4agent add holon-run/uxc lifi-mcp-skillTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →LI.FI MCP Skill
Use this skill to run LI.FI MCP operations through .
uxcReuse the skill for generic protocol discovery, auth binding, envelope parsing, and error handling.
uxcPrerequisites
- is installed and available in
uxc.PATH - Network access to .
https://mcp.li.quest/mcp - Optional: a LI.FI API key for higher rate limits.
Core Workflow
- Verify endpoint and protocol with help-first probing:
uxc https://mcp.li.quest/mcp -h- Confirm protocol is MCP (in the envelope).
protocol == "mcp"
- Optional auth setup for higher rate limits:
uxc auth credential set lifi-mcp --auth-type bearer --secret-env LIFI_API_KEYuxc auth binding add --id lifi-mcp --host mcp.li.quest --path-prefix /mcp --scheme https --credential lifi-mcp --priority 100- LI.FI accepts either or
Authorization: Bearer <key>; prefer bearer unless endpoint behavior changes.X-LiFi-Api-Key
- Use a fixed link command by default:
command -v lifi-mcp-cli- If missing, create it:
uxc link lifi-mcp-cli https://mcp.li.quest/mcp
lifi-mcp-cli -h
- Inspect operation schema before execution:
lifi-mcp-cli get-chains -hlifi-mcp-cli get-token -hlifi-mcp-cli get-quote -hlifi-mcp-cli get-status -h
- Prefer discovery first, then route/quote, then execution-precheck queries.
Capability Map
- Chain and token discovery:
get-chainsget-chain-by-idget-chain-by-nameget-tokensget-token
- Route discovery and provider availability:
get-connectionsget-tools
- Quotes and route planning:
get-quoteget-routesget-step-transactionget-quote-with-calls
- Wallet prechecks:
get-native-token-balanceget-token-balanceget-allowanceget-gas-pricesget-gas-suggestion
- Monitoring and service checks:
get-statustest-api-keyhealth-check
Always inspect host help and operation help in the current endpoint version before relying on an operation name or argument shape.
Recommended Usage Pattern
- Discover chain IDs dynamically:
lifi-mcp-cli get-chainslifi-mcp-cli get-chain-by-name name=base
- Resolve token addresses before quoting:
lifi-mcp-cli get-token chain=8453 token=USDC
- Check whether a route exists before asking for a quote:
lifi-mcp-cli get-connections fromChain=8453 toChain=42161
- Generate the quote:
lifi-mcp-cli get-quote fromChain=8453 toChain=42161 fromToken=USDC toToken=USDC fromAddress=<wallet> fromAmount=<smallest-unit-amount>
- Validate execution preconditions:
lifi-mcp-cli get-allowance ...lifi-mcp-cli get-native-token-balance ...
- Use only after the externally signed transaction has been broadcast.
get-status
Guardrails
- Keep automation on JSON output envelope; do not rely on .
--text - Parse stable fields first: ,
ok,kind,protocol,data.error - Use as the default command path.
lifi-mcp-cli - is equivalent to
lifi-mcp-cli <operation> ...when the same auth binding is configured.uxc https://mcp.li.quest/mcp <operation> ... - Use direct only as a temporary fallback when link setup is unavailable.
uxc "<endpoint>" ... - Prefer for simple arguments and positional JSON for nested objects.
key=value - This endpoint is read-only from the agent perspective:
- it does not sign transactions
- it does not broadcast transactions
- it returns unsigned objects for external wallet execution
transactionRequest
- Do not present or
get-quoteas executed trades; they are execution plans only.get-step-transaction - Before suggesting an ERC20 route as ready to execute, check allowance if the route needs approval.
- Prefer only when the user explicitly wants multiple alternatives; default to
get-routesfor the best route.get-quote - In live testing, chain lookup tools accepted names, but token/balance/allowance tools were more reliable with numeric chain IDs. Prefer numeric IDs after discovery.
Tested Real Scenario
The endpoint was verified through host discovery and returned a live MCP tool list including:
uxcget-allowanceget-chain-by-idget-chain-by-nameget-chainsget-connectionsget-gas-pricesget-gas-suggestionget-quoteget-routesget-statusget-tokenget-tokensget-toolshealth-check
This confirms the skill target is a real hosted MCP surface accessible via UXC.
References
- Invocation patterns:
references/usage-patterns.md