Bundie logoBundie
AI

API Reference

Complete reference for all 16 Bundie MCP tools - inputs, outputs, and usage.

Read Tools

yields.check

Browse current DeFi yield opportunities across EVM chains with APY and risk data.

ParamTypeRequiredDescription
tokenstringNoFilter by token symbol (e.g., USDC, USDT)
minApynumberNoMinimum APY (decimal, e.g., 0.05 for 5%)
chainstringNoFilter by chain name (e.g., base, arbitrum, scroll)
sortBy"apy" | "name"NoSort field (default: apy)
limitnumberNoMax results (default: 10)

yields.risk_scores

Get detailed risk scores and risk component breakdown for all yield protocols. Shows security, liquidity, maturity, and centralization scores.

ParamTypeRequiredDescription
tokenstringNoFilter by token symbol (e.g., USDC)
chainstringNoFilter by chain name (e.g., base, arbitrum)
minRisknumberNoMinimum overall risk score (0-100, higher = safer)
sortBy"risk" | "apy"NoSort by risk score or APY (default: risk)
limitnumberNoMax results (default: 10)

portfolio.view

Check current positions, allocation breakdown, and weighted APY for a wallet.

ParamTypeRequiredDescription
walletAddressstringYesEthereum address (0x...)
chainIdnumberNoChain ID (default: 534352 Scroll)

wallet.balance

Check the token balance of a wallet on a specific chain.

ParamTypeRequiredDescription
walletAddressstringYesWallet address to check (0x...)
assetstringNoToken symbol (USDC, USDT) or address (0x...) (default: USDC)
chainIdnumberNoChain ID to query (default: 534352 Scroll)

bridge.status

Check the status of a Relay Protocol bridge request. Returns current status, estimated completion time, and transaction hashes.

ParamTypeRequiredDescription
requestIdstringYesBridge request ID returned by bridge.to_scroll

yields.buy

Generate a payment link to buy crypto (USDC/USDT) with a credit card or bank transfer. The user clicks the link, completes payment, and receives crypto in their wallet. Funds arrive on Base and can then be bridged to Scroll for Bundie yield.

ParamTypeRequiredDescription
walletAddressstringYesWallet address to receive the crypto (0x...)
fiatAmountnumberNoAmount in fiat currency (default: 100)
fiatCurrencystringNoFiat currency code (USD, EUR, GBP, etc.) (default: USD)
cryptoCurrencystringNoCrypto to buy — USDC or USDT (default: USDC)
networkstringNoNetwork to receive on: base, ethereum, polygon, arbitrum (default: base)

Write Tools

vault.deposit

Deposit assets into your Bundie vault. The vault holds funds that can then be allocated to yield strategies.

ParamTypeRequiredDescription
walletAddressstringYesYour wallet address
assetstringYesToken symbol (USDC, USDT) or address (0x...)
amountstringYesHuman-readable amount (e.g., "100.5")
chainIdnumberNoChain ID (default: 534352)

vault.withdraw

Withdraw assets from your Bundie vault back to your wallet or a specified address.

ParamTypeRequiredDescription
walletAddressstringYesYour wallet address
assetstringYesToken symbol or address
amountstringYesHuman-readable amount
recipientAddressstringNoWithdraw to different address
chainIdnumberNoChain ID (default: 534352)

strategy.deposit

Deposit into a specific cross-chain yield strategy by protocol ID. Use yields.check first to find protocol IDs.

ParamTypeRequiredDescription
walletAddressstringYesYour wallet address
protocolIdstringYesProtocol UUID from yields.check
amountstringYesHuman-readable amount
assetstringNoToken symbol (default: USDC)
chainIdnumberNoChain ID (default: 534352)

strategy.withdraw

Withdraw from a specific strategy position. Use portfolio.view to see your position indices.

ParamTypeRequiredDescription
walletAddressstringYesYour wallet address
positionIndexnumberYesPosition index from portfolio.view
amountstringYesHuman-readable amount
assetstringNoToken symbol (default: USDC)
destinationChainnumberYesChain ID to receive funds
chainIdnumberNoSource chain ID (default: 534352)

bridge.to_scroll

Bridge USDC or USDT from any supported chain to Scroll (534352) via Relay Protocol. Returns a requestId that can be tracked with bridge.status.

ParamTypeRequiredDescription
walletAddressstringYesWallet address initiating the bridge (0x...)
amountstringYesHuman-readable amount (e.g., "100.5")
assetstringNoToken to bridge — USDC or USDT (default: USDC)
sourceChainstringNoSource chain name or ID: ethereum, optimism, arbitrum, base, polygon, mode, linea, tempo (default: base)

AI Tools

wallet.analyze

Full AI wallet analysis - risk profile, on-chain behavior, DeFi positions, idle assets.

ParamTypeRequiredDescription
walletAddressstringYesWallet to analyze

Note: Takes 1-3 minutes for new wallets. Results cached for 30 days.

wallet.recommend

AI-recommended diversified yield bundle. Analyzes the wallet first (if not cached), then runs a multi-perspective analysis to select optimal strategies.

ParamTypeRequiredDescription
walletAddressstringYesWallet to recommend for
tokensstring[]NoFilter by tokens (e.g., ["USDC"])
chainsnumber[]NoFilter by chain IDs
minRiskScorenumberNoMin risk score (0-100, higher = safer)
maxRiskScorenumberNoMax risk score
bundleSizenumberNoStrategies per bundle (1-10, default: 3)
excludeUSXbooleanNoExclude USX token

portfolio.rebalance

Compare current positions against optimal allocation with optional auto-execute.

ParamTypeRequiredDescription
walletAddressstringYesYour wallet address
chainIdnumberNoChain ID (default: 534352)
autoExecutebooleanNoExecute rebalance automatically (default: false)

wallet.migrate

Find yield migration opportunities - compare external DeFi positions against Bundie.

ParamTypeRequiredDescription
walletAddressstringYesWallet to check

Note: Requires a prior wallet analysis. Run wallet.analyze first.

State Tool

portfolio.preferences

Set yield selection rules for the session. Applied to all subsequent recommendations and rebalance checks.

ParamTypeRequiredDescription
walletAddressstringYesWallet address
maxAllocationPerProtocolnumberNoMax % in any single protocol
auditedOnlybooleanNoOnly audited protocols
minRiskScorenumberNoMin risk score (0-100)
maxRiskScorenumberNoMax risk score
excludeChainsnumber[]NoChain IDs to exclude
excludeProtocolsstring[]NoProtocol names to exclude
preferredTokensstring[]NoPreferred token symbols

Natural Language Mapping

User saysPreference set
"only audited protocols"auditedOnly: true
"max 30% in one place"maxAllocationPerProtocol: 30
"nothing below B+ risk"minRiskScore: 75
"only USDC"preferredTokens: ["USDC"]
"no Arbitrum"excludeChains: [42161]

Connection Setup

{
  "mcpServers": {
    "bundie": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.bundie.fi/evm"]
    }
  }
}

Self-Hosted

{
  "mcpServers": {
    "bundie": {
      "command": "npx",
      "args": ["-y", "@bundie/evm-mcp"],
      "env": {
        "BACKEND_URL": "https://backend.bundie.fi",
        "BACKEND_API_KEY": "your-key",
        "ANALYZER_URL": "https://ai.bundie.fi",
        "ANALYZER_API_KEY": "your-key"
      }
    }
  }
}

Contact info@bundie.fi for self-hosted API keys.