SEI DEX

Provides tools to wrap SEI, list pools, quote swaps, and execute trades on SEI's DragonSwap V1 testnet.
  • typescript

0

GitHub Stars

typescript

Language

7 months ago

First Indexed

3 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs

You have access to a focused MCP server that simplifies DeFi actions on the SEI blockchain. This server lets you wrap native SEI into an ERC-20 compatible token, discover liquidity pools, quote swaps, and execute trades through straightforward commands without manually handling smart contracts or gas calculations.

How to use

Use an MCP client to connect to the sei-dex MCP server and perform DeFi operations with natural language-like commands. You can connect via a local CLI setup or through code using the MCP SDK. The core tools you will leverage are: wrap_sei, list_pools, get_quote, approve_wsei, and execute_swap. Start by wrapping SEI, then locate pools, obtain a quote, approve spending, and finally execute the swap if the quote looks favorable.

Connecting through VS Code lets you run the MCP server locally with a single command sequence in your settings. You would configure a server entry that uses npx to run the MCP client against the sei-dex MCP package, providing your API key and profile when prompted.

Connecting through the TypeScript SDK enables programmatic access. Install the SDK, then create a client, connect to the server URL, and list available tools to confirm a successful connection.

How to install

{
  "mcpServers": {
    "sei_dex_mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli@latest",
        "run",
        "@cuongpo/sei-dex-mcp",
        "--key",
        "your-key",
        "--profile",
        "your profile"
      ]
    }
  }
}

Prerequisites you need before installation: install Node.js and npm on your system. Then you can run the MCP server using the provided CLI flow shown above. If you prefer programmatic access, you can also install the TypeScript SDK with npm and connect to the server URL from your application.

Configuration and usage notes

Two common ways to connect are via a local CLI setup (stdio) and via an HTTP-based client in code.

HTTP connection example you can use in your app to reach the MCP server is to point your client at the server URL and include your API key and profile as query parameters. Example pattern used by clients: https://server.smithery.ai/@cuongpo/sei-dex-mcp/mcp?api_key=YOUR_API_KEY&profile=YOUR_PROFILE.

Examples and workflows

Swap SEI for USDT in a guided workflow. Steps mirror the tool names below.

  1. Wrap SEI into wSEI Tool: wrap_sei Example: wrap_sei with amount: "1"

  2. Find token addresses for wSEI and USDT from pools Tool: list_pools Example: list_pools

  3. Approve spending of wSEI by the DragonSwap router Tool: approve_wsei Example: approve_wsei with amount: "1"

  4. Get a swap quote Tool: get_quote Example: get_quote with tokenIn: "<wSEI_ADDRESS>", tokenOut: "<USDT_ADDRESS>", amountIn: "1"

  5. Execute the swap if you’re happy with the quote Tool: execute_swap Example: execute_swap with tokenIn: "<wSEI_ADDRESS>", tokenOut: "<USDT_ADDRESS>", amountIn: "1"

Available tools

wrap_sei

Wrap native SEI into wSEI (ERC-20 compatible) so you can interact with DeFi protocols.

list_pools

List available liquidity pools to identify token pairs for swaps.

get_quote

Get a swap quote for a specified input token, output token, and amount.

approve_wsei

Approve the DragonSwap router to spend your wrapped SEI (wSEI) for a forthcoming swap.

execute_swap

Execute a token swap using the provided input and output tokens and amounts.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational