THORChain Swap
Read-only THORChain swap quotes, liquidity pools, and network status.
我該用這個嗎
品質與安全性
發現項目(2)
- HIGH
- MEDIUM在 get_swap_quote 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"thorchain-swap": {
"url": "https://swap.thorchain.org/mcp"
}
}
}遠端端點
https://swap.thorchain.org/mcpstreamable-http它能做什麼
工具清單
工具(3)
🟢get_swap_quote(from_asset, to_asset, amount, destination, streaming_interval)
Fetch a THORChain swap quote for an asset pair. Assets use CHAIN.SYMBOL notation (e.g. BTC.BTC, ETH.ETH, ETH.USDC-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48). Amount is in 1e8 base units (1 BTC = 100000000). Quotes are indicative and expire quickly; the returned memo and inbound address must not be reused after expiry.
輸入結構描述
{
"type": "object",
"properties": {
"from_asset": {
"type": "string",
"description": "Source asset, e.g. BTC.BTC"
},
"to_asset": {
"type": "string",
"description": "Destination asset, e.g. ETH.ETH"
},
"amount": {
"type": "string",
"description": "Amount to swap in 1e8 base units"
},
"destination": {
"type": "string",
"description": "Optional destination address; required for a quote with a usable memo"
},
"streaming_interval": {
"type": "string",
"description": "Optional streaming swap interval in blocks"
}
},
"required": [
"from_asset",
"to_asset",
"amount"
],
"additionalProperties": false
}🟢list_pools(status, asset, limit)
List THORChain liquidity pools with status, depths (1e8 base units), and USD asset price. Filter by pool status or by chain/asset to avoid pulling the full list.
輸入結構描述
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"Available",
"Staged",
"Suspended"
],
"description": "Only return pools in this state. Available pools are the tradable ones."
},
"asset": {
"type": "string",
"description": "Case-insensitive filter on the pool asset. A bare chain returns that chain only (ETH matches every ETH.* pool, not BASE.ETH); a CHAIN.SYMBOL value matches by prefix, so BTC.BTC returns one pool and ETH.USDC finds the contract-suffixed pool."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"description": "Maximum number of pools to return, largest RUNE depth first. Omit to return every match."
}
},
"required": [],
"additionalProperties": false
}🟢get_network_status(fields)
Return current THORChain network parameters, including outbound fees, bond and reserve totals, and halt-related gas information. Pass `fields` to return only the keys you need.
輸入結構描述
{
"type": "object",
"properties": {
"fields": {
"type": "array",
"description": "Subset of top-level keys to return, e.g. [\"native_outbound_fee_rune\", \"outbound_fee_multiplier\"]. Omit for the full object.",
"items": {
"type": "string"
},
"minItems": 1,
"maxItems": 40
}
},
"required": [],
"additionalProperties": false
}社群
證據