Stargate Bridge MCP
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
An MCP server that enables cross-chain token transfers via the Stargate protocol.
Features
- **Chain Discovery**: List all supported blockchains with key details.
- **Token Discovery**: Find bridgeable tokens across chains.
- **Quote Fetching**: Get real-time bridge quotes with fees, estimates, and transaction steps.
- **Automated Bridging**: Execute transfers with automatic signing and broadcasting using your private key.
- **MCP Integration**: Fully compliant with MCP spec for easy use in Claude, Cursor, or other MCP clients.
| Tool | Description | Key Parameters |
|------|-------------|----------------|
| list_chains | Lists supported chains in a sorted Markdown table. | None |
| list_bridgeable_tokens | Lists bridgeable destinations for a source token. | src_chain_key, src_token |
| get_quotes | Fetches detailed quotes for a bridge route. | src_chain_key, dst_chain_key, src_token, dst_token, src_amount, dst_amount_min (optional: src_address, dst_address) |
| bridge_transfer | Executes a bridge transfer (uses first quote). | src_chain_key, dst_chain_key, src_token, dst_token, src_amount, dst_amount_min (optional: dst_address) |
Known Limitations
Currently supports cross-chain bridging only between EVM-compatible chains (e.g., Ethereum, Polygon, Arbitrum). Non-EVM chains like Solana are planned for future support.
Quick Start
Prerequisites
- Python 3.10+
- uv for dependency management (recommended; fallback to pip)
- A .env file with your Ethereum-compatible private key (e.g., PRIVATE_KEY=0x...). **Never commit this file!**
Installation
1. Clone the repo:
2. Install dependencies with uv:
3. Install to Claude Desktop:
Install the server as a Claude Desktop application:
Configuration file as a reference:
Replace /path/to/stargate-bridge-mcp with your actual installation path, and replace your_private_key with your wallet private key.
Usage Examples
These examples simulate interactions in an MCP client like Claude Desktop. Each includes a natural language prompt, the tool call, and sample output.
1. List Supported Chains
**Prompt**: "Show me all the chains supported by Stargate for bridging."
**Tool Call**: list_chains()
**Sample Output** (Markdown table, sorted by chainKey):
2. List Bridgeable Tokens
**Prompt**: "What tokens can I bridge USDC from Ethereum to other chains?"
**Tool Call**: list_bridgeable_tokens("ethereum", "0xA0b86a33E641b9E649bEe6b2D5D7b5b4D8f3a0a") (USDC on Ethereum)
**Sample Output** (Markdown table, sorted by Chain Key):
3. Get Bridge Quotes