SuperAPI AI Directory

sui-trader-mcp

Optimal token swaps on the Sui blockchain.

Open website

About this tool

sui-trader-mcp is an MCP (Model Context Protocol) server designed for AI agents to execute optimal token swaps on the Sui blockchain.

Purpose: To enable AI agents to invoke token swap functionality on the Sui mainnet via the MCP protocol.

Main capabilities:

  • Token swaps: Execute token swaps on the Sui mainnet via Cetus Aggregator.
  • Bech32 private key support: Securely load a Sui private key (starting with suiprivkey) from an environment variable.

Usage:

  1. Environment requirements: Node.js 18.x or higher; npm for dependency management; a Sui wallet is required, i.e., a Bech32-format Sui private key (starting with suiprivkey).
  2. Clone the repository: git clone https://github.com/kukapay/sui-trader-mcp.git cd sui-trader-mcp
  3. Install dependencies: npm install
  4. Configure the MCP client: { "mcpServers": { "sui-trader": { "command": "node", "args": ["/absolute/path/to/sui-trader-mcp/index.js"], "env": { "PRIVATE_KEY": "your_private_key" } } } } Replace /absolute/path/to/sui-trader-mcp/ with the actual installation path, and replace your_private_key with the Bech32-format private key.
  5. Use an MCP-compatible client to invoke the swap tool.

Use cases: Operations that require an AI agent to automatically execute token swaps on the Sui blockchain.

Limitations: The project materials do not provide more information about swap limits, supported token types, slippage settings, error handling, or other usage restrictions.

License: This project is based on the MIT License; see the LICENSE file for details.