- Home
- MCP servers
- SEI DEX
SEI DEX
- 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.
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.
-
Wrap SEI into wSEI Tool:
wrap_seiExample:wrap_sei with amount: "1" -
Find token addresses for wSEI and USDT from pools Tool:
list_poolsExample:list_pools -
Approve spending of wSEI by the DragonSwap router Tool:
approve_wseiExample:approve_wsei with amount: "1" -
Get a swap quote Tool:
get_quoteExample:get_quote with tokenIn: "<wSEI_ADDRESS>", tokenOut: "<USDT_ADDRESS>", amountIn: "1" -
Execute the swap if you’re happy with the quote Tool:
execute_swapExample: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.