Claude Desktop
Add to your Claude Desktop config:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Claude Code
Add via CLI:.mcp.json file at your project root (shareable via git):
https://intents-mcp-testnet.li.fi/mcp for testnet. Run /mcp to connect.
Cursor
Add to.cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global):
Windsurf
Add to~/.codeium/windsurf/mcp_config.json:
Windsurf uses
serverUrl instead of url.VS Code (GitHub Copilot)
Add to.vscode/mcp.json in your project:
Signing Orders
The hosted server never holds private keys. You must sign orders yourself.request-quote— get a quote for a cross-chain swapprepare-order— returns an unsigned order structure- Sign the order using EIP-712 typed data signing with your wallet (e.g. viem, ethers.js)
submit-order— submit the signed order to the order server
All orders require gas. The signer pays gas on the source chain to initiate the cross-chain escrow.
Auto-Signing (Local Server)
If you want the server to sign orders on your behalf, you can run the MCP server locally with a signer key:- Set up a
.envfile with your private key: - Start the local server — it will use the key to automatically sign orders during
prepare-order - Connect your MCP client to
http://localhost:3000/mcpinstead of the hosted URL
Testing Your Setup
You can verify your setup by asking your AI tool a simple question like:“What cross-chain routes are available on LI.FI Intents?”If the MCP server is connected correctly, the tool will call
get-supported-routes and return a list of available chain + token pairs.
To verify solver tools are enabled, try:
“Show my registered solver identities”If your API key is configured correctly, the tool will call
get-solver-identities and return your registered addresses.
