MCPSERV.CLUB
kukapay

Sui Trader MCP

MCP Server

AI‑driven token swaps on the Sui blockchain

Stale(55)
4stars
1views
Updated Jul 10, 2025

About

An MCP server that lets AI agents execute optimal token swaps on Sui mainnet via the Cetus Aggregator, securely loading a Bech32 private key from environment variables.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Sui Trader MCP Demo

Overview

The Sui Trader MCP is a lightweight, Node.js‑based server that exposes a single AI‑friendly tool for executing token swaps on the Sui blockchain. By integrating with the Cetus Aggregator, it translates natural‑language swap requests into fully signed on‑chain transactions. This eliminates the need for developers to manually craft transaction payloads, handle gas calculations, or interact with multiple liquidity pools. Instead, an AI assistant can simply request a swap and receive the transaction hash along with status information.

The server addresses a common pain point for builders in the Sui ecosystem: orchestrating secure, efficient token exchanges without exposing private keys or requiring deep knowledge of the blockchain’s SDK. It supports Bech32‑formatted private keys (prefixed with ) that are safely injected via environment variables, ensuring that sensitive credentials never leave the host machine. Once loaded, the server signs transactions on behalf of the user and broadcasts them to mainnet, returning a concise confirmation that can be relayed back to the end user or stored for audit purposes.

Key capabilities include:

  • Token Swaps via Cetus: The tool automatically queries the Cetus Aggregator for optimal routing and executes swaps with configurable slippage tolerance.
  • Secure Key Management: Private keys are loaded from environment variables, preventing accidental exposure in logs or source control.
  • Simple Tool Interface: The tool accepts human‑readable parameters (amount, token pair, slippage) and returns a transaction ID and status.

Typical use cases span automated trading bots, portfolio rebalancers, or any AI assistant that needs to move value on Sui. For example, a financial advisor chatbot could propose converting a user’s excess SUI into stablecoins before a market dip, while the MCP server handles the on‑chain mechanics behind the scenes. Because the tool is exposed through the Model Context Protocol, it can be called from any MCP‑compatible client—Claude, GPT‑4o, or custom assistants—making it a plug‑and‑play component in larger AI workflows.

What sets Sui Trader MCP apart is its focus on security and simplicity. By delegating all cryptographic operations to a trusted local process, developers avoid exposing private keys to external services. At the same time, the server’s minimal interface means that AI agents can perform complex blockchain interactions with just a few natural‑language prompts, dramatically lowering the barrier to entry for building Sui‑powered applications.