DEV Community

Cover image for Cross-Chain Bridging from Claude: LI.FI and Across MCP Integration
Wallet Guy
Wallet Guy

Posted on

Cross-Chain Bridging from Claude: LI.FI and Across MCP Integration

Cross-chain bridging with Claude becomes seamless when you integrate WAIaaS's MCP tools, giving your AI agent direct access to LI.FI and Across protocols through simple conversational commands. Instead of manually configuring bridge parameters and managing multiple interfaces, Claude can now execute cross-chain transfers, check bridge status, and optimize routes across 15+ DeFi protocols—all through natural language instructions in your desktop chat.

Why Cross-Chain Bridging Matters for AI Agents

Modern DeFi operates across multiple blockchains, but moving assets between them remains one of the most complex operations for both humans and AI systems. Traditional bridging requires deep protocol knowledge, gas optimization, slippage calculations, and constant monitoring of transaction status across different networks.

For AI agents managing multi-chain portfolios or executing arbitrage strategies, this complexity becomes a major bottleneck. An agent might identify a profitable opportunity on Polygon but hold funds on Ethereum—without seamless bridging capabilities, it can't act on that insight.

WAIaaS MCP Integration: One Config, 45 Tools

WAIaaS provides 45 MCP tools for AI agent integration, including specialized cross-chain bridging capabilities through LI.FI and Across protocols. When you add WAIaaS as an MCP server, Claude gains immediate access to wallet operations, DeFi actions, and cross-chain transfers without requiring any blockchain programming knowledge.

The integration works through WAIaaS's policy engine with 4 security tiers: INSTANT, NOTIFY, DELAY, and APPROVAL. This means your AI agent can execute small bridges instantly while requiring human approval for larger transfers—giving you both automation and security.

Quick MCP Setup

First, install and configure WAIaaS:

npm install -g @waiaas/cli
waiaas init
waiaas start
waiaas quickset --mode mainnet  # Creates wallets + MCP sessions
waiaas mcp setup --all          # Auto-register with Claude Desktop
Enter fullscreen mode Exit fullscreen mode

This automatically adds the MCP configuration to your Claude Desktop config:

{
  "mcpServers": {
    "waiaas": {
      "command": "npx",
      "args": ["-y", "@waiaas/mcp"],
      "env": {
        "WAIAAS_BASE_URL": "http://127.0.0.1:3100",
        "WAIAAS_SESSION_TOKEN": "wai_sess_<your-token>",
        "WAIAAS_DATA_DIR": "~/.waiaas"
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Cross-Chain Bridging in Action

Once configured, Claude can execute complex bridging operations through simple conversations. Here's what becomes possible:

Basic Bridge Request

"Bridge 100 USDC from Ethereum to Polygon using the fastest route"

Claude will:

  1. Call get_balance to verify USDC balance on Ethereum
  2. Use action_provider with LI.FI to find optimal bridge route
  3. Execute the bridge transaction
  4. Monitor status across both chains

Advanced Route Optimization

"Find the cheapest way to move 1000 USDT from Arbitrum to Base, but only if gas is under $5"

This triggers Claude to:

  • Query multiple bridge providers (LI.FI and Across)
  • Compare routes, fees, and execution time
  • Check current gas conditions
  • Execute only if criteria are met

Multi-Step DeFi Operations

"Bridge 500 USDC to Solana, then stake it on Jito for the highest yield"

Claude coordinates:

  1. Cross-chain bridge via LI.FI
  2. Automatic asset detection on destination chain
  3. Jito staking integration through WAIaaS's staking provider

Policy-Based Bridge Security

WAIaaS's policy engine ensures bridge operations remain secure even with AI automation. You can configure bridge-specific policies:

curl -X POST http://127.0.0.1:3100/v1/policies \
  -H "Content-Type: application/json" \
  -H "X-Master-Password: my-secret-password" \
  -d '{
    "walletId": "<wallet-uuid>",
    "type": "SPENDING_LIMIT",
    "rules": {
      "instant_max_usd": 100,
      "notify_max_usd": 500,
      "delay_max_usd": 2000,
      "delay_seconds": 900,
      "daily_limit_usd": 5000
    }
  }'
Enter fullscreen mode Exit fullscreen mode

With this policy, Claude can:

  • Bridge up to $100 instantly
  • Bridge $100-500 with notifications
  • Bridge $500-2000 with a 15-minute delay
  • Require human approval for amounts over $2000

Real-Time Bridge Monitoring

Unlike traditional bridge interfaces that require manual status checking, WAIaaS provides real-time monitoring through Claude. The AI can proactively notify you about:

  • Bridge completion confirmations
  • Unusual delays or network congestion
  • Failed transactions requiring intervention
  • Optimal rebridging opportunities

Ask Claude: "Check the status of my recent bridge transactions" and get instant updates across all pending cross-chain transfers.

Multi-Wallet Bridge Coordination

For complex operations, you can configure multiple MCP servers for different wallets:

{
  "mcpServers": {
    "waiaas-ethereum": {
      "command": "npx",
      "args": ["-y", "@waiaas/mcp"],
      "env": {
        "WAIAAS_AGENT_ID": "019c47d6-51ef-7f43-a76b-d50e875d95f4",
        "WAIAAS_AGENT_NAME": "eth-wallet"
      }
    },
    "waiaas-solana": {
      "command": "npx",
      "args": ["-y", "@waiaas/mcp"],
      "env": {
        "WAIAAS_AGENT_ID": "019c4cd2-86e8-758f-a61e-9c560307c788",
        "WAIAAS_AGENT_NAME": "sol-wallet"
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

This enables Claude to coordinate bridges between specific wallet pairs: "Move funds from my Ethereum wallet to my Solana wallet, then rebalance both portfolios."

Quick Start: Your First Bridge

  1. Install WAIaaS CLI: npm install -g @waiaas/cli

  2. Initialize with auto-setup: waiaas quickset --mode mainnet

  3. Register MCP server: waiaas mcp setup --all

  4. Restart Claude Desktop to load the new MCP server

  5. Test the integration: Ask Claude "What's my wallet balance?" to verify the connection

  6. Execute your first bridge: "Bridge 10 USDC from Ethereum to Polygon"

Claude will guide you through any additional setup needed, including policy configuration for bridge amounts.

What's Next

Cross-chain bridging through MCP is just the beginning—WAIaaS provides 15 DeFi protocol providers integrated, including lending, staking, and trading across both EVM and Solana. Your Claude agent can now manage complete DeFi strategies, not just individual transactions.

Ready to give your Claude agent cross-chain superpowers? Check out the WAIaaS GitHub repository for the latest features and join the community building the future of AI-powered DeFi at waiaas.ai.

Top comments (0)