An MCP server designed for AI agents to perform optimal token swaps on the Sui blockchain.
An MCP server designed for AI agents to perform optimal token swaps on the Sui blockchain.
suiprivkey
) from environment variables.suiprivkey
).Clone the Repository:
git clone https://github.com/kukapay/sui-trader-mcp.git
cd sui-trader-mcp
Install Dependencies:
npm install
Configure 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 your_private_key
with your Bech32-formatted private key..
Use an MCP-compatible client to invoke the swap
tool.
Prompt:
Swap 1.5 SUI to USDC with 2% slippage, using a fixed input amount.
Output:
Transaction ID: zjGekhLBfMYzGqu57fTeu3K1NX5jC5wNUy8rpdPcLyv. Status: success
This project is licensed under the MIT License. See the LICENSE file for details.