SwapWizard logo

SwapWizard

Routes DeFi swaps and LP operations across five EVM chains, returning transaction data for user-signed execution.

Install SwapWizard

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "swapwizard": {
      "command": "npx",
      "args": [
        "-y",
        "@swapwizard/mcp-server"
      ],
      "env": {
        "SWAPWIZARD_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env SWAPWIZARD_API_KEY=YOUR_VALUE_HERE --transport stdio swapwizard -- npx -y @swapwizard/mcp-server

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @swapwizard/mcp-server

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

SwapWizard MCP server connects AI agents to the SwapWizard DeFi API for swap routing, liquidity-pool discovery, and LP position management. It covers Ethereum, Arbitrum, Base, Polygon, and BNB Chain, routing across supported AMMs and returning transaction parameters that a wallet can sign. Use it for pool research, token swaps, concentrated-liquidity zaps, LP monitoring, and position rebalancing. Execution remains non-custodial: users approve tokens when needed and sign the resulting transactions themselves.

Use cases

  • Find pools by token pair, chain, APY, TVL, or trading activity
  • Request routed swap transactions across supported AMMs
  • Enter concentrated-liquidity positions with custom price ranges
  • Inspect LP performance and in-range status
  • Rebalance an LP position using a self-impact-free quote

Key features

  • Multi-DEX swap routing across five EVM chains
  • Liquidity-pool discovery with APY, TVL, and volume data
  • Concentrated-liquidity position monitoring
  • Single-transaction LP zaps in and out
  • Clean quotes that exclude the caller's own liquidity
  • Non-custodial transaction preparation

Tools9

What SwapWizard lets your agent do. Expand a tool for its parameters.

Self-reported~225 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

28/28 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · @swapwizard/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars7Stargazers on the source repository.
npm downloads854Package downloads in the last 30 days.
Last commit11d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed9Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How SwapWizard works

What SwapWizard does

SwapWizard exposes DeFi execution and liquidity data through MCP. Agents can inspect supported chains and DEX sources, check API availability, search for liquidity pools, review wallet LP positions, obtain swap quotes, and prepare transactions for entering or leaving LP positions.

The service covers five EVM networks: Ethereum, Arbitrum, Base, Polygon, and BNB Chain. Its routing layer can select among the DEXes available on each chain, including both classic pools and concentrated-liquidity protocols. The live chain and DEX registry is available through the discovery tools rather than being hard-coded into an agent workflow.

How it works

A typical swap flow starts with chain discovery, followed by get_swap_quote. The quote includes a router address, calldata, and transaction value. An agent presents those values to the user or wallet for signing. ERC-20 inputs require an approval transaction before the swap; native-token inputs do not require that approval step.

Liquidity workflows use pool search and position inspection before preparing an operation. search_liquidity_pools can filter by chain, tokens, and pool type, or query GeckoTerminal trending pools using a timeframe such as 5m, 1h, 6h, or 24h. Results include pool identifiers, symbols, fee tiers, protocols, APY, TVL, and 24-hour volume.

For concentrated-liquidity positions, the agent can request a custom tickLower and tickUpper when zapping in. The returned transaction can combine token conversion, token splitting, minting, and range setup. A rebalancing flow can inspect positions, obtain a clean quote that removes the caller's own in-range liquidity from the pool state, exit the old position, and enter a new one.

Setup and configuration

An API key is obtained through the SwapWizard integrator portal by connecting a wallet and signing a message. The local MCP package can be launched with npx:

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

This configuration is documented for Claude Desktop and Cursor. Claude Code can register the same package with SWAPWIZARD_API_KEY. A remote deployment is also available at https://mcp.swapwizard.xyz/mcp using streamable HTTP and the X-API-Key header.

Tools and capabilities

  • get_supported_chains reports chain IDs, gas tokens, DEX availability, and position configuration.
  • get_supported_dexes lists the AMM sources used for routing on each chain.
  • check_api_health checks API availability.
  • search_liquidity_pools finds pools and can return trending results.
  • list_user_lp_positions reports value, fees, APR, range status, impermanent loss, and concentrated-liquidity details such as ticks.
  • get_swap_quote finds a route across supported DEXes.
  • get_clean_quote quotes while excluding the caller's own LP position from pool state.
  • zap_into_lp_position prepares a single-transaction LP entry from any token.
  • zap_out_of_lp_position prepares a single-transaction exit into any token and can infer the NFT manager from sender.

All quote and zap tools accept an optional on-chain registered affiliate wallet address through affiliateCode.

Limitations and notes

SwapWizard does not custody private keys. Its transaction-producing tools return data for the user's wallet to approve and sign. The available protocols and position features vary by chain, so agents should query the supported-chain and supported-DEX tools before constructing a workflow. LP operations and swaps remain subject to the underlying network, pool, approval, and transaction conditions.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about SwapWizard

SwapWizard is an MCP server that connects AI agents to the SwapWizard DeFi API across Ethereum, Arbitrum, Base, Polygon, and BNB Chain. Its main tools discover pools, inspect LP positions, find swap routes, and prepare zap-in or zap-out transactions that users approve and sign with their own wallets.

Install it through the npm package with `npx -y @swapwizard/mcp-server` and set `SWAPWIZARD_API_KEY` in the MCP client's environment. Configuration examples are provided for Claude Desktop, Cursor, and Claude Code. A remote streamable-HTTP endpoint is also available with an `X-API-Key` header.

Yes, SwapWizard works with Cursor through a local MCP configuration. Add the server command using `npx -y @swapwizard/mcp-server` and provide the API key as `SWAPWIZARD_API_KEY` in `.cursor/mcp.json`.

SwapWizard prepares the transaction, but the user's wallet executes it. The quote returns `router`, `callData`, and `value`; the user first approves an ERC-20 input when required and then signs the transaction. SwapWizard does not hold the user's keys.

Yes, it supports concentrated-liquidity discovery, monitoring, entry, exit, and rebalancing on supported protocols. Agents can supply custom `tickLower` and `tickUpper` values when entering, inspect ticks and range status, and use clean quotes that exclude their own in-range liquidity.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSwapWizard AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/swapwizard?style=directory)](https://allmcps.com/mcp/swapwizard)
HTML Embed
<a href="https://allmcps.com/mcp/swapwizard"><img src="https://allmcps.com/api/badge/swapwizard?style=directory" alt="SwapWizard on AllMCPs" /></a>