
debridge mcp
一个用于与 DeBridge 协议交互的最小化 MCP 服务器,支持跨链代币桥接操作。
Repository Info
About This Server
一个用于与 DeBridge 协议交互的最小化 MCP 服务器,支持跨链代币桥接操作。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
DeBridge MCP Server
A minimal Model Context Protocol (MCP) server for interacting with the DeBridge protocol, enabling cross-chain token bridging operations.
Features
- Dynamic Chain List: Automatically fetches supported chains from the DLN API
- Multi-Chain Support: Handles both EVM and Solana transactions seamlessly
- Token Search: Search for tokens on any supported blockchain
- Bridge Quotes: Get quotes for cross-chain token transfers
- Order Creation: Create bridge orders for transferring tokens between chains
- Transaction Execution: Execute bridge transactions with proper wallet signing
- Transaction Verification: Check the status of bridge transactions and associated orders
Tools
The DeBridge MCP server provides the following tools:
get_supported_chains: Get a list of all supported chains with their detailssearch_token: Search for tokens on a specific chainget_bridge_quote: Get a quote for bridging tokens between chainscreate_bridge_order: Create a bridge order for cross-chain token transfersexecute_bridge_transaction: Execute a bridge transaction on any supported chaincheck_transaction_status: Verify the status of a bridge transaction and its orders
Setup
Prerequisites
- Node.js v18+
- pnpm
- A mnemonic phrase for transaction signing
Installation
-
Clone the repository:
git clone https://github.com/yourusername/debridge-mcp.git cd debridge-mcp -
Install dependencies:
pnpm install -
Create a
.envfile in the root directory:SEED_PHRASE="your twelve word mnemonic phrase here"
Building
Build the TypeScript code:
pnpm run build
Running
Start the MCP server:
pnpm start
Usage Examples
Get Supported Chains
{
"name": "get_supported_chains",
"arguments": {}
}
Search for Tokens
{
"name": "search_token",
"arguments": {
"chainId": "1",
"search": "USDC"
}
}
Get a Bridge Quote
{
"name": "get_bridge_quote",
"arguments": {
"srcChainId": "1",
"srcChainTokenIn": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"srcChainTokenInAmount": "1000000",
"dstChainId": "56",
"dstChainTokenOut": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"
}
}
Create a Bridge Order
{
"name": "create_bridge_order",
"arguments": {
"srcChainId": "1",
"srcChainTokenIn": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"srcChainTokenInAmount": "1000000",
"dstChainId": "56",
"dstChainTokenOut": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"dstChainTokenOutRecipient": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"senderAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}
}
Execute a Bridge Transaction
{
"name": "execute_bridge_transaction",
"arguments": {
"txData": {
"to": "0x663F3ad617193148711d28f5334eE4Ed07016602",
"data": "0x095ea7b3000000000000000000000000663f3ad617193148711d28f5334ee4ed07016602000000000000000000000000000000000000000000000000000000000000000a",
"value": "0"
}
}
}
Check Transaction Status
{
"name": "check_transaction_status",
"arguments": {
"txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}
}
License
MIT
Quick Start
Clone the repository
git clone https://github.com/bussyjd/debridge-mcpInstall dependencies
cd debridge-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.