deBridge MCP Server

deBridge MCP Server

Enables cross-chain cryptocurrency swap quotes and operations using the deBridge DLN protocol. Provides read-only access to swap estimates, supported chains, token information, and order status tracking across multiple blockchain networks.

Category
Visit Server

README

deBridge MCP Server

A Model Context Protocol (MCP) server that provides cross-chain swap quotes using deBridge DLN protocol.

Features

  • Get crosschain swap quotes between different blockchain networks
  • Read only operations (no transaction signing required)
  • Fast quote fetching via deBridge API

Installation

bun install

Usage

Running the MCP Server

Start the server for use with Claude Desktop or other MCP clients:

bun run dev

Testing

Run the test suite:

bun test

Building

Build the TypeScript project:

bun run build

Start the compiled server:

bun run start

MCP Tools

1. quoteSwap

Get best cross-chain route and calldata for a potential swap via deBridge DLN.

Parameters:

  • srcChainId - Source chain ID (e.g., '42161' for Arbitrum)
  • srcToken - Token address on source chain (ERC20)
  • amount - Amount in smallest units (wei / token decimals)
  • dstChainId - Destination chain ID (e.g., '1' for Ethereum mainnet)
  • dstToken - Token address on destination chain (ERC20)
  • userAddress (optional) - Sender's wallet address (enables tx data generation)
  • recipientAddress (optional) - Recipient address on destination chain

Modes:

  • Preview mode (without addresses): Returns only estimation, no tx data
  • Full mode (with userAddress): Returns estimation + transaction data ready to sign

Response includes:

  • Summary with estimated destination amount and fees
  • Token information (symbol, decimals)
  • Transaction preview (to, data, value)
  • Raw estimation data from deBridge

2. getSupportedChains

Get list of supported blockchain networks for cross-chain swaps.

Parameters: None

Response includes:

  • Array of supported chains with chain IDs and names
  • Total number of supported chains

3. getTokensInfo

Get information about tokens available on a specific blockchain network.

Parameters:

  • chainId - Chain ID to query (e.g., '1' for Ethereum, '56' for BSC)

Response includes:

  • List of available tokens with addresses, symbols, and decimals
  • Total token count for the chain

4. getOrderStatus

Check the status of a cross-chain order by its order ID.

Parameters:

  • orderId - Order ID obtained from creating an order

Response includes:

  • Order status (Created, Fulfilled, etc.)
  • Source and destination chain transaction hashes
  • Order link for tracking
  • Error information if applicable

Environment Variables

Optional environment variables:

  • DLN_API_BASE - Custom deBridge API base URL (default: https://dln.debridge.finance/v1.0)

Examples

1. Get quote for USDC swap from Arbitrum to Ethereum (Preview Mode)

{
  "srcChainId": "42161",
  "srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
  "amount": "1000000",
  "dstChainId": "1",
  "dstToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}

2. Get quote with transaction data (Full Mode)

{
  "srcChainId": "42161",
  "srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
  "amount": "1000000",
  "dstChainId": "1",
  "dstToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "userAddress": "0xYourWalletAddress"
}

3. Get supported chains

No parameters needed - just call getSupportedChains

4. Get available tokens on Ethereum

{
  "chainId": "1"
}

5. Check order status

{
  "orderId": "0x..."
}

Architecture

  • src/index.ts - MCP server setup and tool registration
  • src/tools/ - All MCP tools implementations
    • quoteSwap.ts - Cross-chain swap quotes
    • getSupportedChains.ts - List supported chains
    • getTokensInfo.ts - Token information by chain
    • getOrderStatus.ts - Order status tracking
  • src/debridgeClient.ts - deBridge API client
  • src/types/deBridge.ts - TypeScript type definitions
  • src/__tests__/ - Test suite for all tools

References

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured