bridge-rates-mcp
bridge-rates-mcp
README
Bridge Rates MCP Server
An MCP server that delivers real-time cross-chain bridge rates and optimal transfer routes to support decision-making by onchain AI agents.
Features
- Get Bridge Rates: Retrieve cross-chain bridge rates for token pairs, including USD values, gas costs, route providers and tags, presented in a Markdown table.
- List Supported Chains: Fetch a sorted list of blockchain networks supported by LI.FI.
- List Supported Bridges: Obtain a sorted list of bridges and exchanges available for cross-chain transfers.
Prerequisites
- Node.js: Version 18 or higher.
- npm: For dependency management.
- MCP Client: An MCP-compatible client (e.g., Claude Desktop) to interact with the server.
Installation
-
Clone the Repository:
git clone https://github.com/kukapay/bridge-rates-mcp.git cd bridge-rates-mcp -
Install Dependencies:
npm install -
Integrate with an MCP Client: Configure your MCP client (e.g., Claude Desktop) to connect to the server. For Claude Desktop, edit the configuration file (e.g.,
~/Library/Application Support/Claude/claude_desktop_config.jsonon Mac or%APPDATA%\Claude\claude_desktop_config.jsonon Windows):{ "mcpServers": { "bridge-rates": { "command": "node", "args": ["/absolute/path/to/bridge-rates-mcp/index.js"] } } }Restart Claude Desktop and verify the tools are available (look for the hammer icon).
Tools
1. getBridgeRates
Fetches cross-chain bridge rates for a token pair between two chains, returning all available routes in a Markdown table.
Parameters:
fromChainId(string, required): Source chain ID (e.g., "1" for Ethereum).toChainId(string, required): Destination chain ID (e.g., "10" for Optimism).fromTokenAddress(string, required): Source token contract address.toTokenAddress(string, required): Destination token contract address.fromAmount(string, optional): Amount to bridge in the smallest token unit (default: "10000000").
Example Prompt:
What's the bridge rate from Arbitrum USDC to Optimism DAI?
Example Output:
| From Amount | From Amount USD | To Amount | To Amount USD | To Amount Min | Gas Cost USD | Providers | Tags |
|-------------|-----------------|-----------|---------------|---------------|--------------|-----------|----------------------|
| 10000000 | 10.00 | 9980000 | 9.98 | 9940000 | 0.2300 | hop | RECOMMENDED,CHEAPEST |
| 10000000 | 10.00 | 9975000 | 9.97 | 9935000 | 0.2500 | connext | None |
2. getSupportedChains
Fetches a sorted list of chains supported by LI.FI for cross-chain bridging, presented in a Markdown table.
Parameters: None.
Example Prompt:
List all supported chains for bridging.
Example Output:
| Chain Type | ID | Key | Name | Native Token |
|------------|----|-----|---------------|--------------|
| EVM | 1 | eth | Ethereum | ETH |
| EVM | 10 | opt | Optimism | ETH |
| EVM | 137| pol | Polygon | MATIC |
| SVM | 101| sol | Solana | SOL |
3. getSupportedBridges
Fetches a sorted list of bridges and exchanges supported by LI.FI, presented in a Markdown table.
Parameters: None.
Example Prompt:
List all supported bridges for cross-chain bridging.
Example Output:
| Key | Name | Type |
|---------------|---------------------|----------|
| across | Across | BRIDGE |
| connext | Connext | BRIDGE |
| hop | Hop Protocol | BRIDGE |
| sushiswap | SushiSwap | EXCHANGE |
| uniswap | Uniswap | EXCHANGE |
License
This project is licensed under the MIT License. See the LICENSE file for details.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。