DragonSwap

平台与服务

by cuongpo

在Sei上交換代幣,取得即時報價並順暢執行交易;探索流動性池、包裝SEI與管理approvals,安全完成操作。

什么是 DragonSwap

在Sei上交換代幣,取得即時報價並順暢執行交易;探索流動性池、包裝SEI與管理approvals,安全完成操作。

README

MCP DEX SEI

This project is designed to simplify interactions with decentralized exchanges on the SEI blockchain by providing a powerful, agentic toolset.

Benefits for Users

  • Simplified DeFi: Execute complex blockchain operations like wrapping and swapping tokens through simple, natural language commands.
  • Abstracted Complexity: No need to manually interact with smart contracts, ABIs, or calculate gas fees. The agent handles all the technical details.

Benefits for Developers

  • Focus on Core Logic: Avoid reinventing the wheel. This framework handles the low-level complexities of blockchain interaction, allowing you to focus on building unique features and trading strategies.
  • Rapid Prototyping: Quickly build and test complex DeFi applications and agents.

Current Features

  • Interact with DragonSwap V1 on the SEI atlantic-2 testnet.
  • list_pools: List available liquidity pools.
  • get_quote: Get a swap quote.
  • execute_swap: Execute a token swap.
  • wrap_sei: Wrap native SEI into wSEI.
  • approve_wsei: Approve the DragonSwap router to spend wSEI.

Demo and Usage

You can find a live demo of this server here: https://smithery.ai/server/@cuongpo/sei-dex-mcp

Connecting with VS Code

You can connect to this server from VS Code by adding the following to your .vscode/settings.json file:

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

Alternatively, you can use the one-click import from the server's demo page: https://smithery.ai/server/@cuongpo/sei-dex-mcp

Connecting with the TypeScript SDK

You can also connect to the server programmatically using the MCP TypeScript SDK.

Installation

bash
npm install @modelcontextprotocol/sdk

Example

typescript
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { Client } from "@modelcontextprotocol/sdk/client/index.js"

// Construct server URL with authentication
const url = new URL("https://server.smithery.ai/@cuongpo/sei-dex-mcp/mcp")
url.searchParams.set("api_key", "your-api-key")
url.searchParams.set("profile", "your-profile")
const serverUrl = url.toString()

const transport = new StreamableHTTPClientTransport(serverUrl)

// Create MCP client
const client = new Client({
  name: "My App",
  version: "1.0.0"
})
await client.connect(transport)

// List available tools
const tools = await client.listTools()
console.log(`Available tools: ${tools.map(t => t.name).join(", ")}`)

How to Use: Swap SEI for USDT

Here is a step-by-step guide to perform a swap from the native SEI token to a stablecoin like USDT.

Step 1: Wrap SEI into wSEI

Before you can trade native SEI on a DEX, you must wrap it into an ERC-20 compliant token (wSEI).

Tool: wrap_sei Example: wrap_sei with amount: "1"

Step 2: Find the wSEI and USDT Token Addresses

Use the list_pools tool to find the correct token addresses for wSEI and the desired USDT token on the atlantic-2 testnet.

Tool: list_pools Example: list_pools

Look for the wSEI address (0xF8EB55EC97B59d91fe9E91A1d61147e0d2A7b6F7) and a corresponding USDT address in a liquidity pool.

Step 3: Approve the Router to Spend Your wSEI

You must grant the DragonSwap router permission to spend the wSEI you just wrapped. This is a required step before executing a swap.

Tool: approve_wsei Example: approve_wsei with amount: "1"

Step 4: Get a Quote for the Swap

Check the estimated return for your swap before executing it.

Tool: get_quote Example: get_quote with tokenIn: "<wSEI_ADDRESS>", tokenOut: "<USDT_ADDRESS>", amountIn: "1"

Step 5: Execute the Swap

If you are satisfied with the quote, you can execute the trade.

Tool: execute_swap Example: execute_swap with tokenIn: "<wSEI_ADDRESS>", tokenOut: "<USDT_ADDRESS>", amountIn: "1"

Future Features

  • Expand MCP tools to include:
    • Add liquidity
    • Remove liquidity
    • Lending
  • Expand to other DEXs on the SEI blockchain.

Use Cases

The agentic nature of this toolset opens up a wide range of powerful automated trading strategies.

  • News-Driven Trading Bot: Combine these tools with a news-monitoring agent. When the agent detects positive or negative news about a token, it can automatically execute a swap to capitalize on the information.
  • Copy Trading: Monitor the on-chain activity of a successful trader's wallet. When the trader makes a swap, the agent can automatically replicate the trade in your own wallet.

常见问题

DragonSwap 是什么?

在Sei上交換代幣,取得即時報價並順暢執行交易;探索流動性池、包裝SEI與管理approvals,安全完成操作。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描116.0k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描116.0k

MCP服务构建器

by alirezarezvani

Universal
热门

从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。

帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。

平台与服务
未扫描10.7k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
83.6k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.4k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
36.5k

评论