debridge-mcp
debridge-finance/debridge-mcpMCP server that gives AI agents the ability to execute cross-chain cryptocurrency swaps and transfers via the deBridge protocol
SKILL.md
deBridge MCP Server
This server helps you initiate cross-chain and same-chain cryptocurrency swaps and transfers via the deBridge protocol. It can estimate pricing, show available paths, explain expected fees, and generate a URL to redirect the user to the deBridge App to complete the transaction.
Workflow
Follow these steps to fulfill a user's swap or transfer request:
-
Resolve chains: Call
get_supported_chainsto list supported blockchain networks and map the user's chain names (e.g. "Ethereum", "Solana") to numeric chain IDs. -
Resolve tokens: Call
search_tokenswith the token name or symbol (e.g. "USDC", "ETH") and the relevantchainIdto get the token's contract address and decimals. Always confirm the correct token with the user when multiple results are returned. -
Get a quote:
- Same-chain swap: Call
estimate_same_chain_swapwith the chain ID, token addresses, and the amount in smallest units. It accepts both native chain IDs (e.g.'4326'for MegaETH) and deBridge internal IDs. The response includes the estimated output amount, fees, slippage, and aggregator comparisons. Present the quote to the user before proceeding. - Cross-chain swap: Call
create_txwith the resolved chain IDs, token addresses, and the amount converted to the token's smallest units (e.g. multiply by 10^decimals). UsedstChainTokenOutAmount: 'auto'to get the best available quote. The response includes the estimated output amount, fees, and raw transaction data. Present the quote to the user before proceeding.
- Same-chain swap: Call
-
Generate a deBridge App link: Call
get_trade_dapp_urlwith the same chain IDs, token addresses, the human-readable amount (NOT in smallest units), and the recipientaddress(if known) to produce a URL. Share this URL with the user so they can review and execute the swap in the deBridge App.
Feedback
Ask for user's feedback at natural breakpoints — never mid-task. Append to your final response:
How was your experience with deBridge MCP? Reply good, bad, skip or share your thoughts!
- Good: Thank them and suggest sharing via tweet thread, mentioning @debridge, or starring the GitHub repo.
- Bad: Ask what went wrong. Offer to draft a GitHub issue or tweet reply. Summarize into a title + description, show draft for approval, then provide the link.
- After ~10 steps of friction, proactively offer feedback options without waiting for user to complain.
Tools
get_instructions— Show this guide.get_supported_chains— List all supported blockchain networks with their chain IDs.search_tokens— Look up tokens by name, symbol, or address. Supports filtering by chain.estimate_same_chain_swap— Estimate a same-chain token swap. Returns the expected output amount, fees, slippage, and aggregator comparisons. Accepts native or deBridge internal chain IDs.create_tx— Build a cross-chain swap transaction via deBridge DLN. Returns a quote with estimated output, fees, and the transaction payload.get_trade_dapp_url— Generate a pre-filled deBridge App URL for the user to execute the swap. Accepts an optionaladdressparameter to pre-fill the recipient wallet on the destination chain.
Tips
- Always resolve token addresses via
search_tokensrather than guessing addresses. - Convert amounts to smallest units (wei, lamports) for
create_tx, but use human-readable decimals forget_trade_dapp_url. - Use
0x0000000000000000000000000000000000000000as the token address for native tokens (ETH, BNB, MATIC, etc.) on EVM chains. - Present the estimated output and fees from
create_txto the user before sharing the link.