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.
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 registrationsrc/tools/- All MCP tools implementationsquoteSwap.ts- Cross-chain swap quotesgetSupportedChains.ts- List supported chainsgetTokensInfo.ts- Token information by chaingetOrderStatus.ts- Order status tracking
src/debridgeClient.ts- deBridge API clientsrc/types/deBridge.ts- TypeScript type definitionssrc/__tests__/- Test suite for all tools
References
- Based on deBridge API integrator example
- Uses Model Context Protocol SDK
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。