sui-mcp

sui-mcp

Read-only MCP server for Sui blockchain analytics with 44 tools covering wallets, DeFi, NFTs, token prices, transactions, fund tracing, pools, staking, Move decompilation, and MVR name resolution.

Category
访问服务器

README

sui-mcp

Read-only MCP server for Sui blockchain analytics. 44 tools covering wallets, DeFi positions, NFTs, token prices, transaction decoding, fund tracing, pool discovery, staking, Move bytecode decompilation, and Move Registry (MVR) name resolution.

  • No API keys, no wallet, no private keys — connects to public Sui mainnet endpoints
  • Protocol-aware — decodes transactions from Cetus, Suilend, NAVI, Scallop, Bluefin, DeepBook, and more into human-readable actions
  • Multi-source architecture — gRPC for low-latency reads, GraphQL for filtered queries, archive node fallback for historical data
  • Price aggregation — Aftermath Finance, Pyth oracles, and CoinGecko in a single unified interface
  • Kiosk-aware — resolves NFT ownership through Sui's kiosk system to actual wallet addresses

Transaction building tools return unsigned bytes for external signing — the server never handles keys.

Setup

Requires Node.js >= 20 (22+ recommended).

npm install
npm run build

Move Decompiler (optional)

The decompile_module tool requires the Revela move-decompiler binary. Requires a Rust toolchain (rustup.rs).

npm run build:decompiler

This clones verichains/revela_sui, builds the decompiler, and copies the binary to bin/move-decompiler.

<details> <summary>Manual setup</summary>

git clone --depth 1 https://github.com/verichains/revela_sui.git
cd revela_sui/external-crates/move
cargo build --release --bin move-decompiler

Then set SUI_DECOMPILER_PATH to the binary path. </details>

Installation

Add to your MCP client config (Claude Code, Claude Desktop, Cursor, etc.):

{
  "mcpServers": {
    "sui": {
      "command": "node",
      "args": ["/absolute/path/to/sui-mcp/dist/index.js"],
      "env": {
        "SUI_DECOMPILER_PATH": "/absolute/path/to/sui-mcp/bin/move-decompiler"
      }
    }
  }
}

Replace /absolute/path/to/sui-mcp with the actual path to this repository. The env block is only needed for the decompilation tool — omit it if you don't need decompile_module.

See .env.example for optional environment variables (network selection, custom RPC endpoints).

Tools (44)

Recommended Starting Points

Tool Description
identify_address Identify what a Sui address is: wallet, package, validator, or object
get_wallet_overview Comprehensive wallet overview: balances, SuiNS name, staking, kiosks, recent txs
get_transaction_history Decoded activity feed with protocol names and human-readable actions
analyze_token Full token analysis: metadata, price, 24h change, supply, top holders

Chain & Network

Tool Description
get_chain_info Current chain ID, epoch, checkpoint height, timestamp, gas price
get_checkpoint Checkpoint details by sequence number or digest

Objects

Tool Description
get_object Object by ID with type, owner, JSON content, and display metadata
list_owned_objects List objects owned by an address with optional type filter
list_dynamic_fields Dynamic fields of an object (tables, kiosk contents, etc.)

Coins & Tokens

Tool Description
get_balance Balance of a coin type for an address (defaults to SUI)
get_coin_info Token metadata: name, symbol, decimals, description, supply
search_token Search tokens by name/symbol, with Aftermath Finance fallback
get_token_prices Current USD prices for tokens via Aftermath + CoinGecko
get_historical_prices Historical prices at a point in time via Pyth oracle

Transactions & Events

Tool Description
get_transaction Transaction by digest with protocol-decoded actions
query_transactions Filter transactions by sender, address, object, or function
query_events Filter events by type, sender, module, or checkpoint range

DeFi

Tool Description
get_defi_positions DeFi positions across Suilend, Cetus, NAVI, Scallop, Bluefin, Bucket
find_pools Discover liquidity pools by token pair (Cetus, DeepBook, Turbos)
get_pool_stats Pool reserves, fees, and prices for a given pool object ID

NFTs

Tool Description
list_nfts List NFTs owned by a wallet, including kiosk-stored NFTs
list_nft_collections Lightweight collection summary with counts
get_top_holders Top holders of an NFT collection or token

Staking

Tool Description
get_validators List validators with stake, commission, voting power
get_validator_detail Detailed validator info including credentials and stats
get_staking_summary Wallet's staking positions and pools

Names

Tool Description
resolve_name SuiNS name resolution (forward and reverse)

Move Registry (MVR)

The Move Registry maps human-readable package names like @suins/core or @deepbook/core to on-chain package addresses. Backed by mainnet.mvr.mystenlabs.com/v1 (or testnet.mvr... when SUI_NETWORK=testnet).

Tool Description
mvr_resolve Resolve one or many MVR names → package IDs. Accepts version-pinned names like @suins/core/3.
mvr_reverse_resolve Reverse-lookup: package addresses → MVR names. Useful for enriching raw addresses anywhere.
mvr_get_package_info Full record for a name: metadata, version, package_address, package_info ID, git source.
mvr_search Browse / search the registry. Supports substring search, pagination, and an is_linked filter for published packages.
mvr_resolve_struct Resolve @org/app::module::Type → canonical type tag at the type's defining-package address.

Typical flows:

  • "What's the package for @deepbook/core?"mvr_resolve(['@deepbook/core'])0x4874e1.... Hand the address to get_package for module/function details.
  • "What is package 0xf22f…?"mvr_reverse_resolve(['0xf22f…'])@suins/core.
  • "Find DeepBook-related packages"mvr_search('deepbook', limit=20, is_linked=true) → paginated list.
  • "Pin to a specific version"mvr_resolve(['@suins/core/3']) returns the v3 package address rather than the latest.

Packages (Developer)

Tool Description
get_package Move package modules, structs, and functions
get_move_function Specific Move function signature and parameters
get_package_dependency_graph Package dependency analysis with recursive traversal
decompile_module Decompile Move bytecode to source (requires decompiler binary)

Transaction Building

Tool Description
build_transfer_sui Build unsigned SUI transfer transaction
build_transfer_coin Build unsigned coin transfer with auto coin selection
build_stake_sui Build unsigned staking transaction
build_unstake_sui Build unsigned unstake transaction
simulate_transaction Dry-run a transaction to preview effects and gas cost

Advanced

Tool Description
decode_ptb Decode a Programmable Transaction Block from BCS bytes
trace_funds Multi-hop fund flow tracing (forward or backward)
check_activity Monitor address or object for new activity since a checkpoint

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选