Skip to main content
Glama

随交易者 MCP

专为 AI 代理设计的 MCP 服务器,用于在 Sui 区块链上执行最佳代币交换。

执照Node.js地位

特征

  • 代币交换:通过 Cetus Aggregator 在 Sui 主网上执行代币交换。

  • Bech32 私钥支持:从环境变量安全地加载 Sui 私钥(以suiprivkey开头)。

Related MCP server: Trading Simulator MCP Server

先决条件

  • Node.js :版本 18.x 或更高版本。

  • npm :用于依赖管理。

  • Sui 钱包:bech32 格式的 Sui 私钥(以suiprivkey开头)。

安装

  1. 克隆存储库

    git clone https://github.com/kukapay/sui-trader-mcp.git cd sui-trader-mcp
  2. 安装依赖项

    npm install
  3. 配置 MCP 客户端

    { "mcpServers": { "sui-trader": { "command": "node", "args": ["/absolute/path/to/sui-trader-mcp/index.js"], "env": { "PRIVATE_KEY": "your_private_key" } } } } }

    /absolute/path/to/sui-trader-mcp/替换为实际安装路径,将your_private_key替换为您的 Bech32 格式的私钥。

用法

使用与 MCP 兼容的客户端调用swap工具。

例子

迅速的:

Swap 1.5 SUI to USDC with 2% slippage, using a fixed input amount.

输出:

Transaction ID: zjGekhLBfMYzGqu57fTeu3K1NX5jC5wNUy8rpdPcLyv. Status: success

执照

本项目遵循 MIT 许可证。详情请参阅LICENSE文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kukapay/sui-trader-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server