Sponsored by Deepsite.site

Sui Serverless MCP

Created By
tamago-labs7 months ago
Serverless-based MCP server implementation for Sui blockchain using zkLogin
Content

Sui Serverless MCP

NPM Version

Sui Serverless MCP is a Model Context Protocol (MCP) server implementation for the Sui blockchain that leverages zkLogin authentication. It enables AI assistants supporting the Model Context Protocol to securely interact with the Sui ecosystem, allowing users to perform a wide range of on-chain operations without needing to write code or understand technical details.

Components

The system is composed of two subsystems across two repositories:

  • Sui Serverless MCP Client – (This repository) A Node.js TypeScript library designed to run inside MCP-compatible AI model clients such as Claude Desktop. It enables AI agents to interact with the Sui blockchain.

  • Sui Serverless MCP Core – The backend system is built using the AWS Serverless Stack. It includes backend services and a dashboard for issuing access keys and managing transactions in zkLogin mode

Features

  • Supports MCP-compatible clients like Claude Desktop. Many more are being developed.

  • 10+ MCP tools covering account management, token operations, and staking.

  • Token swaps on Mainnet via the Cetus DEX Aggregator.

  • Fully non-custodial, enables transactions using zkLogin wallets from the AI chat interface.

Using with Claude Desktop

There are two mode available: zkLogin (recommended for most new users) and Private Key (for advanced users).

Private Key Mode

In Private Key mode, all operations (including transfers and other write operations) will be executed automatically without requiring additional approval.

  1. Install Claude Desktop if you haven't already
  2. Open Claude Desktop settings
  3. Add the Sui MCP client to your configuration:
{
  "mcpServers": {
    "sui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sui-serverless-mcp",
        "--sui_private_key=YOUR_PRIVATE_KEY", 
        "--sui_network=mainnet"
      ],
      "disabled": false
    }
  }
}

Private Key mode is recommended for advanced users who can securely manage their private keys. The MCP client handles transactions locally without exposing any data to external servers.

zkLogin Mode

With zkLogin authentication, read operations (balance checks, quotes) work immediately, but write operations (transfers, swaps) require explicit approval in the dashboard.

  1. Install Claude Desktop if you haven't already
  2. Open Claude Desktop settings
  3. Add the Sui MCP client to your configuration:
{
  "mcpServers": {
    "sui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sui-serverless-mcp",
        "--sui_access_key=YOUR_ACCESS_KEY", 
        "--sui_network=mainnet"
      ],
      "disabled": false
    }
  }
}

The access key can be obtained from the dashboard. After logging in, a unique access key will be generated for each user.

Comparison

FeaturezkLoginPrivate Key
SecurityHigher - private key never exposedLower - requires managing private key
Transaction ApprovalRequired for write operationsAutomatic execution
Setup ComplexitySimple OAuth loginRequires secure key management
Best ForRegular users, mobile usageDevelopers, advanced users

Background

Today, when building AI applications—especially those focused on crypto, we often rely on agent kits based on Langchain. These kits tightly couple the AI model and components, requiring frequent updates, otherwise, the application risks becoming non-functional within a few months or even weeks.

Model Context Protocol (MCP), introduced by Claude AI in late 2024, has quickly become popular today. It solves this issue by integrating directly with AI interfaces, allowing users to easily switch to the latest models and interact with Web3 through standardized tools.

Available Tools

The following tools are available in the current version, allowing you to perform various on-chain operations directly from your favorite AI chat panel:

Wallet Operations

Tool NameDescriptionExample Usage
sui_get_wallet_addressRetrieve your wallet address"What's my wallet address for Sui?"
sui_get_all_balancesGet all token balances"Show my token balances"

Token Transfers

Tool NameDescriptionExample Usage
sui_transfer_tokenTransfer tokens to another address"Transfer 10 SUI to domain.sui"

Staking Operations

Tool NameDescriptionExample Usage
sui_stakeStake SUI tokens to a validator"Stake 100 SUI to validator 0x1234"
sui_get_stakeGet all staked SUI tokens"Show my staked positions"
sui_unstakeUnstake SUI tokens"Unstake my SUI on this staked sui 0x4567"

Token Management

Tool NameDescriptionExample Usage
sui_deploy_tokenDeploy a new token on Sui"Create a token named MyToken with symbol MTK"

SNS Domain Services

Tool NameDescriptionExample Usage
sui_get_sns_name_recordGet SNS domain information"Look up info about domain.sui"
sui_register_snsRegister a SNS domain"Register myname.sui for 2 years"

DeFi Operations

Tool NameDescriptionExample Usage
sui_get_swap_quoteGet a quote for swapping tokens"If I want to swap 10 SUI for NAVI, how much NAVI will I get?"
sui_swap_tokensSwap tokens on Cetus Aggregator"Swap 10 SUI to NAVI now"

zkLogin Transaction Flow

When a user operates in zkLogin mode using an MCP-compatible AI client:

  1. The client pushes a transaction request to the backend.

  2. The transaction is stored in the database with a pending status.

  3. The user can visit the dashboard to manually approve the transaction using their zkLogin-authenticated session.

Troubleshooting

If you're using Ubuntu or another Linux environment with NVM, you'll need to manually configure the path. Follow these steps:

  1. Install the MCP Client globally under your current NVM-managed Node.js version.
npm install -g sui-serverless-mcp
  1. Due to how NVM installs libraries, you may need to use absolute paths in your config. Replace the example values below with your actual username and Node version:
{
  "mcpServers": {
    "sui-mcp": {
      "command": "/home/YOUR_NAME/.nvm/versions/node/YOUR_NODE_VERSION/bin/node",
      "args": [
        "/home/YOUR_NAME/.nvm/versions/node/YOUR_NODE_VERSION/bin/sui-serverless-mcp",
        "--sui_access_key=YOUR_ACCESS_KEY",
        "--sui_network=mainnet"
      ]
    }
  }
}
  1. Restart Claude Desktop and it should work now.

License

This project is licensed under the MIT License.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Tavily Mcp
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Playwright McpPlaywright MCP server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
DeepChatYour AI Partner on Desktop
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
WindsurfThe new purpose-built IDE to harness magic
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
Amap Maps高德地图官方 MCP Server