SwapZilla MCP — let AI agents swap crypto

An open-source Model Context Protocol (MCP) server that gives AI agents the tools to compare live rates and run non-custodial crypto swaps through SwapZilla — no account, no custody.

What is the SwapZilla MCP server?

The Model Context Protocol (MCP) is an open standard for connecting AI agents to external tools. The SwapZilla MCP server exposes SwapZilla's swap aggregator as a set of MCP tools, so an agent in Claude, Cursor, Windsurf or any MCP-compatible app can discover assets, compare provider rates, validate addresses, open a swap and track it — all programmatically.

It is a thin, non-custodial wrapper over SwapZilla's public API. The server never holds or moves funds: creating an exchange returns a deposit address, and the actual coins are sent by the user's own wallet. That keeps AI-driven swaps safe by design.

Tools exposed to the agent

ToolWhat it does
swapzilla_list_assetsList supported assets, their networks and which providers cover each.
swapzilla_list_providersList the aggregated exchange providers and their status.
swapzilla_get_quoteCompare live offers across all providers for a pair; each has an offer ID.
swapzilla_validate_addressCheck a recipient address for a network before swapping.
swapzilla_create_exchangeOpen a non-custodial swap from a chosen offer; returns a deposit address.
swapzilla_get_orderPoll a swap's status and payout transaction hash.

Install in one line

The server runs on Node.js 18+ and needs no API key for public rate data. Run it directly with npx:

npx -y https://swapzilla.io/mcp/swapzilla-mcp-1.0.0.tgz

Then register it with your MCP client (Claude Desktop, Claude Code, Cursor, Windsurf, …) and fully restart the client:

{
  "mcpServers": {
    "swapzilla": {
      "command": "npx",
      "args": ["-y", "https://swapzilla.io/mcp/swapzilla-mcp-1.0.0.tgz"]
    }
  }
}

Requires Node.js 18+. The package is served from swapzilla.io, so no npm account or global install is needed — npx fetches and runs it directly. Restart your MCP client after editing the config so it picks up the new server.

How an agent runs a swap

  1. The agent calls swapzilla_list_assets to resolve the exact asset code and network.
  2. It calls swapzilla_get_quote to compare live offers across every provider and pick the best.
  3. It calls swapzilla_validate_address to confirm the recipient address is valid for the network.
  4. It calls swapzilla_create_exchange with the chosen offer ID and receiving address, and gets a deposit address.
  5. The user's wallet sends the funds; the agent polls swapzilla_get_order until the swap settles.

Safe by design

The MCP server cannot spend your money. It only reads rates and orchestrates orders; every swap is non-custodial and settles wallet-to-wallet. The agent receives a deposit address to fund, but the funds are always sent from a wallet the user controls — there is no code path that moves crypto on its own.

Get the SwapZilla MCP server

Open-source and MIT-licensed. Add it to your agent in under a minute.

Download the package

Frequently asked questions

What is an MCP server for crypto?
An MCP (Model Context Protocol) server exposes real-world capabilities to AI agents as callable tools. The SwapZilla MCP server gives agents the ability to compare crypto exchange rates and perform non-custodial swaps through SwapZilla.
Can an AI agent actually move my crypto?
No. The server is non-custodial: it returns a deposit address, but the funds are sent by the user's own wallet. There is no tool that can transfer your crypto automatically.
Which AI clients support it?
Any MCP-compatible client — Claude Desktop, Claude Code, Cursor, Windsurf and others. Register it with the command npx -y swapzilla-mcp.
Does it require an account or API key?
No. Public rate data and swap creation work without an API key. An optional key can be supplied via SWAPZILLA_API_KEY.
Is it free and open-source?
Yes. The SwapZilla MCP server is MIT-licensed and free to use.