Chainflip Broker as a Service
Native cross-chain swaps: Bitcoin, Ethereum, Solana, Polkadot, Tron, Arbitrum. Quote, swap, track.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"crypto-swap": {
"url": "https://chainflip-broker.io/mcp"
}
}
}遠端端點
https://chainflip-broker.io/mcpstreamable-http它能做什麼
工具清單
工具(6)
🟢get_quotes(sourceAsset, destinationAsset, amount, apiKey)
Get swap quotes for exchanging one crypto asset to another. Returns available quotes with exchange rates, fees, and estimated output amounts. API key is optional.
輸入結構描述
{
"type": "object",
"properties": {
"sourceAsset": {
"description": "Source asset identifier (e.g., 'btc.btc', 'eth.eth', 'usdc.eth')",
"type": "string"
},
"destinationAsset": {
"description": "Destination asset identifier (e.g., 'eth.eth', 'btc.btc', 'sol.sol')",
"type": "string"
},
"amount": {
"description": "Amount to swap in human-readable format (e.g., 1.5 for 1.5 BTC)",
"type": "number"
},
"apiKey": {
"description": "Optional partner API key.",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"sourceAsset",
"destinationAsset",
"amount"
]
}⚪start_dca_swap(sourceAsset, destinationAsset, destinationAddress, refundAddress, numberOfChunks, ...)
Start a DCA (Dollar Cost Averaging) cross-chain swap that splits into multiple sub-swaps over time. Returns the deposit address. API key is optional.
輸入結構描述
{
"type": "object",
"properties": {
"sourceAsset": {
"description": "Source asset identifier (e.g., 'btc.btc', 'eth.eth', 'usdc.eth')",
"type": "string"
},
"destinationAsset": {
"description": "Destination asset identifier (e.g., 'eth.eth', 'btc.btc', 'sol.sol')",
"type": "string"
},
"destinationAddress": {
"description": "Destination address on the target chain",
"type": "string"
},
"refundAddress": {
"description": "Refund address on the source chain, used if minimum price cannot be met",
"type": "string"
},
"numberOfChunks": {
"description": "Number of sub-swaps for DCA (Dollar Cost Averaging). Must be >= 1.",
"type": "integer"
},
"chunkIntervalBlocks": {
"description": "Optional delay between DCA sub-swaps in state-chain blocks (1 block = 6 seconds). Defaults to 2 blocks (12 seconds).",
"type": [
"integer",
"null"
],
"default": null
},
"minimumPrice": {
"description": "Optional minimum accepted price as a destination-per-source ratio (e.g., for a btc.btc to eth.eth swap, 28.5 means 1 BTC gets at least 28.5 ETH). When omitted, automatically calculated from current pool prices with 2% slippage tolerance. Set to 0 to accept any price.",
"type": [
"number",
"null"
],
"default": null
},
"apiKey": {
"description": "Optional partner API key.",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"sourceAsset",
"destinationAsset",
"destinationAddress",
"refundAddress",
"numberOfChunks"
]
}🟢check_status(swapId)
Check the status of a swap by its ID. Returns the current swap state including deposit detection, swap progress, and egress information.
輸入結構描述
{
"type": "object",
"properties": {
"swapId": {
"description": "The swap ID returned by start_swap or start_dca_swap",
"type": "integer"
}
},
"required": [
"swapId"
]
}🟢list_assets
List all available swap assets and their details including ticker, network, direction, decimals, minimum amounts, and current USD prices.
輸入結構描述
{
"type": "object",
"properties": {}
}🟡start_swap(sourceAsset, destinationAsset, destinationAddress, refundAddress, minimumPrice, ...)
Start a cross-chain swap. Returns the deposit address where you should send your source asset. API key is optional.
輸入結構描述
{
"type": "object",
"properties": {
"sourceAsset": {
"description": "Source asset identifier (e.g., 'btc.btc', 'eth.eth', 'usdc.eth')",
"type": "string"
},
"destinationAsset": {
"description": "Destination asset identifier (e.g., 'eth.eth', 'btc.btc', 'sol.sol')",
"type": "string"
},
"destinationAddress": {
"description": "Destination address on the target chain",
"type": "string"
},
"refundAddress": {
"description": "Refund address on the source chain, used if minimum price cannot be met",
"type": "string"
},
"minimumPrice": {
"description": "Optional minimum accepted price as a destination-per-source ratio (e.g., for a btc.btc to eth.eth swap, 28.5 means 1 BTC gets at least 28.5 ETH). When omitted, automatically calculated from current pool prices with 2% slippage tolerance. Set to 0 to accept any price.",
"type": [
"number",
"null"
],
"default": null
},
"apiKey": {
"description": "Optional partner API key.",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"sourceAsset",
"destinationAsset",
"destinationAddress",
"refundAddress"
]
}🟢get_native_quotes(sourceAsset, destinationAsset, amount, apiKey)
Get swap quotes for exchanging one crypto asset to another using native (smallest unit) amounts. Returns available quotes with exchange rates, fees, and estimated output amounts. Use this when you have amounts in native units (e.g., satoshis for BTC, wei for ETH). API key is optional.
輸入結構描述
{
"type": "object",
"properties": {
"sourceAsset": {
"description": "Source asset identifier (e.g., 'btc.btc', 'eth.eth', 'usdc.eth')",
"type": "string"
},
"destinationAsset": {
"description": "Destination asset identifier (e.g., 'eth.eth', 'btc.btc', 'sol.sol')",
"type": "string"
},
"amount": {
"description": "Amount to swap in native units (e.g., '100000000' for 1 BTC in satoshis)",
"type": "string"
},
"apiKey": {
"description": "Optional partner API key.",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"sourceAsset",
"destinationAsset",
"amount"
]
}社群
證據