GhostSwap

GhostSwap — non-custodial crypto swaps across 1,600+ coins.

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
98%
命名品質
100%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,611Token(工具定義)
~1.3 KB典型回應大小
中等的注意力影響(128k 上下文的 1.26%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.ghostswap.io/mcp"
    }
  }
}

遠端端點

https://mcp.ghostswap.io/mcpstreamable-http
https://mcp.ghostswap.io/ssesse

它能做什麼

工具清單

工具(7)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢list_currencies(lite)

List all coins GhostSwap supports for swapping (1,600+ coins). Use lite=true for just an array of tickers (e.g. ["btc","eth","ltc"]). Full metadata includes requiresExtraId + extraIdName: when the TO coin has requiresExtraId=true (XRP, XLM, ATOM, HBAR, TON…), collect the memo / destination tag before create_swap.

輸入結構描述

{
  "type": "object",
  "properties": {
    "lite": {
      "description": "Return just tickers (default false — full metadata).",
      "type": "boolean"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_pair(from, to)

Get the min and max swap amount for a single (from, to) pair. Returns separate min/max for float-rate and fixed-rate modes.

輸入結構描述

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "Source currency ticker, lowercase (e.g. \"btc\")."
    },
    "to": {
      "type": "string",
      "description": "Destination currency ticker, lowercase (e.g. \"eth\")."
    }
  },
  "required": [
    "from",
    "to"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢validate_address(currency, address)

Check whether a wallet address is valid for a given currency. Returns {valid:true} or {valid:false,message}. Permissive pre-check — create_swap runs a stricter validator.

輸入結構描述

{
  "type": "object",
  "properties": {
    "currency": {
      "type": "string",
      "description": "Ticker, lowercase."
    },
    "address": {
      "type": "string",
      "description": "The wallet address to validate."
    }
  },
  "required": [
    "currency",
    "address"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_quote(from, to, amountFrom, mode)

Get a live swap quote — rate, amountUserReceives, network fee, min/max. Always display amountUserReceives (not amountTo). mode="fixed" locks the rate and returns a short-lived rateId. The result includes swapUrl, a ghostswap.io link with this pair and amount filled in that the user can open to swap themselves.

輸入結構描述

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "Source currency ticker."
    },
    "to": {
      "type": "string",
      "description": "Destination currency ticker."
    },
    "amountFrom": {
      "type": "string",
      "description": "Decimal amount as a STRING (e.g. \"0.01\"). Strings preserve precision."
    },
    "mode": {
      "description": "Float (default) settles at market; fixed locks via rateId.",
      "type": "string",
      "enum": [
        "float",
        "fixed"
      ]
    }
  },
  "required": [
    "from",
    "to",
    "amountFrom"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_swap_link(from, to, amountFrom)

Get a ghostswap.io link that opens the swap with the coins (and optionally the amount) already filled in. Give it to the user when they want to do the swap themselves in the browser, or when create_swap isn't available. The link creates nothing and never carries an address: the user enters their own receiving and refund address on the page and presses Exchange. Tickers are network-specific (usdtrx = USDT on Tron, usdt20 = USDT on Ethereum). Check the amount against get_pair or get_quote first; below the minimum the page shows a warning.

輸入結構描述

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "Ticker to send, lowercase (e.g. \"btc\")."
    },
    "to": {
      "type": "string",
      "description": "Ticker to receive, lowercase (e.g. \"xmr\")."
    },
    "amountFrom": {
      "description": "Optional amount of the \"from\" coin as a STRING (e.g. \"0.05\").",
      "type": "string"
    }
  },
  "required": [
    "from",
    "to"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡create_swap(from, to, amountFrom, address, extraId, ...)

Create a new swap. Returns payinAddress where the end-user must send funds. REQUIRES refundAddress (the user's own wallet on the FROM chain). If the TO coin needs a memo / destination tag (requiresExtraId on list_currencies), pass it as extraId — without it the API returns missing_extra_id; only if the user confirms their wallet has no tag, send extraIdNotRequired=true. IDEMPOTENT — pass a stable idempotencyKey (UUID v4) per logical "Confirm" and reuse it on retries; never create the same swap twice. If a result has stop:true, relay its neutral userMessage and STOP — never speculate about the reason, never name an address, never suggest "try a different address", never retry.

輸入結構描述

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "amountFrom": {
      "type": "string",
      "description": "Decimal as STRING."
    },
    "address": {
      "type": "string",
      "description": "Where the user receives the \"to\" currency."
    },
    "extraId": {
      "description": "Memo / destination tag / payment ID for `address`. REQUIRED when the TO coin has requiresExtraId=true (e.g. an exchange deposit address on XRP, XLM, ATOM). Ask the user — never guess.",
      "type": "string",
      "maxLength": 256
    },
    "extraIdNotRequired": {
      "description": "Set true ONLY when the user confirms their TO-coin wallet genuinely has no memo / tag (e.g. self-custody). Use instead of omitting extraId.",
      "type": "boolean"
    },
    "refundAddress": {
      "type": "string",
      "description": "REQUIRED — the user's OWN wallet on the FROM chain (the wallet they're sending from); refunds return here if the swap can't complete."
    },
    "refundExtraId": {
      "description": "Memo / tag for refundAddress when the FROM coin requires one — otherwise a refund cannot be credited.",
      "type": "string",
      "maxLength": 256
    },
    "mode": {
      "type": "string",
      "enum": [
        "float",
        "fixed"
      ]
    },
    "rateId": {
      "description": "Required when mode=fixed; from get_quote.",
      "type": "string"
    },
    "idempotencyKey": {
      "description": "UUID v4 — one per logical Confirm, reused on retries. Auto-generated if omitted.",
      "type": "string"
    }
  },
  "required": [
    "from",
    "to",
    "amountFrom",
    "address",
    "refundAddress"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_swap(id)

Get the current status of a swap by id. Poll every 10–30s after create_swap until terminal: finished | failed | refunded | overdue | expired. `hold` = the swap is paused (poll slowly; tell the user to contact [email protected] with the swap id).

輸入結構描述

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The swap id from create_swap."
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

建議的提示詞

retrieve_data
Get details about [item] from GhostSwap
預期的工具: get_pair
fetch_info
Fetch [information type] using GhostSwap
預期的工具: get_pair
list_items
List all [items] available in GhostSwap
預期的工具: list_currencies
browse_collection
Show me the [collection] from GhostSwap
預期的工具: list_currencies
explore_workflow
List available [items], then get details for each one using GhostSwap
預期的工具: list_currenciesget_pair

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本7 個工具
已驗證未記錄版本7 個工具
已驗證未記錄版本6 個工具
已驗證未記錄版本6 個工具
已驗證未記錄版本6 個工具
已驗證未記錄版本6 個工具
已驗證未記錄版本6 個工具
已驗證未記錄版本6 個工具
已驗證未記錄版本6 個工具
已驗證未記錄版本6 個工具