SwapWizard MCP Server

DeFi execution layer for AI agents — swap, zap in/out of LP, route across AMMs on 5 EVM chains.

Remote serverstreamable-httpTypeScript

What is the SwapWizard MCP server?

DeFi execution layer for AI agents — swap, zap in/out of LP, route across AMMs on 5 EVM chains. That is what the swapwizard mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

Model Context Protocol (MCP) server for the SwapWizard DeFi API. Enables AI agents to get swap quotes, manage liquidity, and discover pools across 5 EVM chains.

The tools it exposes

The server publishes 10 tools. What each one is for:

  • get_supported_chains — List supported EVM chains with IDs, gas tokens, DEX list, and position config
  • get_supported_dexes — AMMs/DEX sources SwapWizard routes across per chain
  • check_api_health — API availability check
  • search_liquidity_pools — Discover pools by chain, tokens, type, or GeckoTerminal trending (trending: true + optional timeframe: 5m/1h/6h/24h, default 5m). Returns poolId
  • list_user_lp_positions — Full LP position details: value, fees, APR, in-range status, impermanent loss
  • get_swap_quote — Best swap route across all DEXes. Returns router + callData + value ready to sign
  • get_clean_quote — Swap quote excluding the caller's own LP position from pool state (for rebalancing)
  • zap_into_lp_position — Single-tx entry into any LP position from any token
  • zap_out_of_lp_position — Single-tx exit from any LP position into any token. Pass sender to auto-detect nftManager
  • Swap — 1. get_supported_chains — find available chains 2. get_swap_quote — get best route + callData 3. User approves (if non-native) and signs the

Getting it running

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

What it needs from you

Configuration is passed through the environment: SWAPWIZARD_API_KEY, SWAPWIZARD_API_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. SwapWizard's toolset — get_supported_chains, get_supported_dexes, check_api_health and 7 more — is a fair guide to whether it matches your workflow. It is maintained by DeFiRe-business; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against SwapWizard's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 10 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch SwapWizard.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
get_supported_chainsList supported EVM chains with IDs, gas tokens, DEX list, and position config
get_supported_dexesAMMs/DEX sources SwapWizard routes across per chain
check_api_healthAPI availability check
search_liquidity_poolsDiscover pools by chain, tokens, type, or GeckoTerminal trending (trending: true + optional timeframe: 5m/1h/6h/24h, default 5m). Returns poolId, symbol, fee tier, protocol, APY, TVL, 24h volume
list_user_lp_positionsFull LP position details: value, fees, APR, in-range status, impermanent loss
get_swap_quoteBest swap route across all DEXes. Returns router + callData + value ready to sign
get_clean_quoteSwap quote excluding the caller's own LP position from pool state (for rebalancing)
zap_into_lp_positionSingle-tx entry into any LP position from any token
zap_out_of_lp_positionSingle-tx exit from any LP position into any token. Pass sender to auto-detect nftManager
Swap1. get_supported_chains — find available chains 2. get_swap_quote — get best route + callData 3. User approves (if non-native) and signs the transaction

How to install the SwapWizard MCP server

{
  "mcpServers": {
    "swapwizard": {
      "command": "npx",
      "args": ["-y", "@swapwizard/mcp-server"],
      "env": {
        "SWAPWIZARD_API_KEY": "your-api-key"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
SWAPWIZARD_API_KEYCredential the server authenticates with.Yes
SWAPWIZARD_API_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use SwapWizard to get supported chains.
  • Use SwapWizard to get supported dexes.
  • Use SwapWizard to check api health.

Frequently asked questions

It connects SwapWizard to MCP-compatible AI assistants such as Claude and Cursor, exposing 10 tools (get_supported_chains, get_supported_dexes, check_api_health, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with SwapWizard directly.