# GhostSwap [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/ghostswap1/ghostswap-agents  
**GitHub Stars:** 3  
**npm Downloads (last month):** 229  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ghostswap

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

## Tools
Capabilities this server exposes over MCP:

- **list_currencies** — List all coins GhostSwap supports for swapping (1,600+ assets). Use lite=true for just an array of tickers (e.g. ["btc","eth","ltc"]).
- **get_pair** — Get the min and max swap amount for a single (from, to) pair. Returns separate min/max for float-rate and fixed-rate modes.
- **validate_address** — Check whether a wallet address is valid for a given currency. Returns {valid: true} or {valid: false, message: "..."}. Note: this is a permissive pre-check — create_swap runs a stricter validator and may still reject.
- **get_quote** — Get a live swap quote — exchange rate, user-receive amount, network fee, min/max. Always display amountUserReceives (not amountTo) to end users. Add mode="fixed" to lock the rate; the response then includes a short-lived rateId.
- **create_swap** — Create a new swap. Returns the payinAddress where the end-user must send funds. IDEMPOTENT — pass a stable idempotencyKey (UUID v4) tied to the user's logical "Confirm" click and REUSE the same key on every retry of that click. Regenerating creates duplicate swaps. For mode="fixed", include the rateId from get_quote. REQUIRES refundAddress (the user's own wallet on the FROM chain). If a result has stop:true, relay its neutral userMessage and STOP — never say an address is flagged/screened, never name an address, never suggest "try a different address", never retry.
- **get_swap** — Get the current status of a swap by its id. Poll this every 10–30s after create_swap until terminal. Terminal statuses: finished | failed | refunded | overdue | expired. `hold` = AML/KYC review (slow polling to 5min; direct end-user to support@ghostswap.io).
- **list_swaps** — List swaps for the authenticated org, most-recent first. Useful for reconciliation, or to check whether a swap was created after an upstream error.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ghostswap": {
    "command": "npx",
    "args": ["-y","@ghostswapio/mcp"],
    "env": {
      "GHOSTSWAP_PUBLIC_KEY": "",
      "GHOSTSWAP_SECRET": ""
    }
  }
}
```

**Requires environment variables:** `GHOSTSWAP_PUBLIC_KEY`, `GHOSTSWAP_SECRET` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What GhostSwap MCP server does

GhostSwap MCP server gives MCP-compatible clients access to GhostSwap's crypto-to-crypto exchange flow. GhostSwap supports swaps across more than 1,600 coins and operates as a no-KYC, non-custodial service. The integration is intended for conversational agents, coding assistants, and applications that need to discover assets, prepare a swap, and follow its progress.

The repository is a distribution pack rather than only an MCP implementation. It includes the MCP server, a Claude Skill, an OpenAPI 3.1 description for GPT Actions, Cursor project rules, an `AGENTS.md` file, and related instruction files for tools that load repository guidance.

## How it works

A client can connect to the hosted MCP endpoint at `https://mcp.ghostswap.io/mcp` using Streamable HTTP. The repository also documents `/sse` as an available endpoint. The hosted option does not require installation, a partner account, or an API key.

For local use, the npm package `@ghostswapio/mcp` runs as a standard MCP process. The documented configuration passes a public and secret partner credential through environment variables. This path is appropriate when swaps must be associated with the integrator's partner credential.

The hosted server exposes six named tools: `list_currencies`, `get_pair`, `validate_address`, `get_quote`, `create_swap`, and `get_swap`. Agents can use the tools in sequence: identify supported currencies, inspect a pair, validate a destination, obtain a quote, create the swap, and check its status.

## Setup and configuration

For a remote connection, add `https://mcp.ghostswap.io/mcp` as a custom MCP connector or configure it as the server URL in an MCP client. No local package or credential is needed for this route.

For a local stdio setup, use a configuration equivalent to:

```json
{
  "mcpServers": {
    "ghostswap": {
      "command": "npx",
      "args": ["-y", "@ghostswapio/mcp"],
      "env": {
        "GHOSTSWAP_PUBLIC_KEY": "gspk_live_...",
        "GHOSTSWAP_SECRET": "gssk_live_..."
      }
    }
  }
}
```

The README provides placements for Claude Desktop, Cursor, Windsurf, and Continue. Claude Code can use the repository's plugin or copy the included Skill into `~/.claude/skills/`. OpenAI Agents SDK and Vercel AI SDK examples use the local stdio server. LangChain can use either the MCP server or the published OpenAPI description.

## Tools and capabilities

GhostSwap MCP server supports these documented operations:

- List available currencies.
- Inspect whether a currency pair is available.
- Validate a destination address.
- Request a swap quote.
- Create a crypto-to-crypto swap.
- Retrieve swap information or status.

The same API can also be consumed through the OpenAPI 3.1 file. The repository documents a GPT Action setup using the partner API, bearer authentication, and the hosted OpenAPI document. That route is separate from MCP but uses the same GhostSwap partner service.

## Limitations and notes

The hosted endpoint is the simplest option, but it does not attribute swaps to a partner credential. Use the npm server with `GHOSTSWAP_PUBLIC_KEY` and `GHOSTSWAP_SECRET` when partner attribution is required.

The integration does not manage wallets or custody funds. Users or the surrounding application remain responsible for providing the required swap details and completing the wallet-side transaction flow.

The repository also contains instructions for ChatGPT, GitHub Copilot, Gemini Code Assist, Aider, OpenAI Agents SDK, Vercel AI SDK, and LangChain. Some of those surfaces consume files or OpenAPI rather than connecting directly through MCP.

_Full upstream README: https://allmcps.com/mcp/ghostswap/readme_

