Back to Browse

Sui MCP Server

Developer ToolsUse Caution4.8MCP RegistryLocal
Free

Server data from the Official MCP Registry

Read-only Sui blockchain analytics: 47 tools, protocol-aware tx decoding, no API keys or wallet.

About

Read-only Sui blockchain analytics: 47 tools, protocol-aware tx decoding, no API keys or wallet.

Security Report

4.8
Use Caution4.8High Risk

This is a well-designed read-only Sui blockchain analytics MCP server with no authentication requirements (appropriate for public chain data) and sound architectural choices. The codebase demonstrates good security practices: no credential handling, proper input validation, and careful permission scoping. Minor code quality observations around error handling and type safety do not materially affect security. Supply chain analysis found 3 known vulnerabilities in dependencies (1 critical, 2 high severity). Package verification found 1 issue.

4 files analyzed · 9 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

process_spawn

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Default network when a tool call doesn't pass one. Every tool also takes a per-call network argument.Optional

Environment variable: SUI_NETWORK

Override the gRPC fullnode endpoint for the default network only.Optional

Environment variable: SUI_FULLNODE_URL

Override the GraphQL endpoint for the default network only.Optional

Environment variable: SUI_GRAPHQL_URL

Path to a locally built Revela move-decompiler binary. Only decompile_module needs it.Optional

Environment variable: SUI_DECOMPILER_PATH

JSON file of address attribution labels that overrides the shipped set for fund tracing.Optional

Environment variable: SUI_LABELS_FILE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-0xfreak0-sui-mcp": {
      "env": {
        "SUI_NETWORK": "your-sui-network-here",
        "SUI_GRAPHQL_URL": "your-sui-graphql-url-here",
        "SUI_LABELS_FILE": "your-sui-labels-file-here",
        "SUI_FULLNODE_URL": "your-sui-fullnode-url-here",
        "SUI_DECOMPILER_PATH": "your-sui-decompiler-path-here"
      },
      "args": [
        "-y",
        "sui-analytics-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

sui-mcp

CI

Read-only MCP server for Sui blockchain analytics. 47 tools for wallets, DeFi positions, NFTs, token prices, transaction decoding, Move package analysis, and incident investigation.

Install

Add this to your MCP client config — Claude Code, Claude Desktop, Cursor, or anything else that speaks MCP over stdio:

{
  "mcpServers": {
    "sui": {
      "command": "npx",
      "args": ["-y", "sui-analytics-mcp"]
    }
  }
}

No account, API key, or config file is required. The server reads public Sui endpoints and defaults to mainnet. Requires Node.js >= 20.

No wallet, no keys

The server has no credentials and no ability to move funds:

  • It never accepts a private key, mnemonic, or seed phrase. No tool takes one as an argument and nothing in the code reads one from the environment.
  • It never submits a transaction. build_transfer and build_staking return unsigned BCS bytes that you sign and broadcast somewhere else; simulate_transaction dry-runs bytes against a fullnode without executing them.
  • Every remaining tool is a read.
  • No provider accounts. RPC, indexing, and price data all come from public endpoints.

Capabilities

  • Per-call network — every tool takes an optional network arg (mainnet / testnet / devnet); query multiple networks in one session (e.g. compare a testnet value to mainnet). SUI_NETWORK sets only the default.
  • Protocol-aware — decodes transactions from Cetus, Suilend, NAVI, Scallop, Bluefin, DeepBook, and more into human-readable actions
  • Incident investigation — labeled fund tracing, funding-source attribution, multi-address timelines, object provenance, PTB anomaly triage
  • Move package analysis — disassembly, heuristic risk scan, capability audit, and upgrade diffing, none of which need an external binary
  • 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
  • Move Registry (MVR) — resolves names like @deepbook/core to package addresses, and back

Configuration

All environment variables are optional. See .env.example for the full list; the common ones are SUI_NETWORK (default network), SUI_FULLNODE_URL / SUI_GRAPHQL_URL (custom RPC endpoints), and SUI_LABELS_FILE (address attribution labels for fund tracing).

{
  "mcpServers": {
    "sui": {
      "command": "npx",
      "args": ["-y", "sui-analytics-mcp"],
      "env": { "SUI_NETWORK": "testnet" }
    }
  }
}

Move decompiler (optional)

46 of the 47 tools need nothing beyond the install above. Only decompile_module requires an external binary, and there are lighter options before you reach for it:

  • disassemble_module returns Move bytecode assembly via the GraphQL endpoint.
  • analyze_package summarizes a package's API and runs a heuristic risk scan.
  • diff_package_upgrade diffs two versions of a package.

Use the decompiler when you want higher-level, source-like Move output instead of bytecode.

The binary is Revela's move-decompiler, built from Rust. It is not bundled in the npm package because a published tarball could only carry one platform's build, so you compile it once yourself and point the server at it with SUI_DECOMPILER_PATH. This works the same whether you installed via npx or from source. You need a Rust toolchain (rustup.rs); the build takes a few minutes.

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

Then add its absolute path to your client config:

{
  "mcpServers": {
    "sui": {
      "command": "npx",
      "args": ["-y", "sui-analytics-mcp"],
      "env": {
        "SUI_DECOMPILER_PATH": "/absolute/path/to/revela_sui/external-crates/move/target/release/move-decompiler"
      }
    }
  }
}

If you already cloned this repo, npm run build:decompiler does the same clone and build and copies the result to bin/move-decompiler.

Without SUI_DECOMPILER_PATH the server falls back to looking for move-decompiler on PATH. Prefer the absolute path: desktop clients often launch servers with a minimal environment that doesn't include your shell's PATH, so a binary you can run in a terminal may still be invisible to the server. If it's found in neither place, decompile_module returns an error explaining how to fix it, and the other 46 tools are unaffected.

Running from source

For development, or to run a version you've modified:

git clone https://github.com/0xfreak0/sui-mcp.git
cd sui-mcp
npm install
npm run build

Then point your client at the build output instead of npx:

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

See CONTRIBUTING.md for the development and release workflow.

Tools (47)

Recommended Starting Points

ToolDescription
identify_addressIdentify what a Sui address is: wallet, package, validator, or object
get_wallet_overviewComprehensive wallet overview: balances, SuiNS name, staking, kiosks, recent txs
get_transaction_historyDecoded activity feed with protocol names and human-readable actions
analyze_tokenFull token analysis: metadata, price, 24h change, supply, top holders

Chain & Network

ToolDescription
get_chain_infoCurrent chain ID, epoch, checkpoint height, timestamp, gas price
get_checkpointCheckpoint details by sequence number or digest

Objects

ToolDescription
get_objectObject by ID with type, owner, JSON content, and display metadata
list_owned_objectsList objects owned by an address with optional type filter
list_dynamic_fieldsDynamic fields of an object (tables, kiosk contents, etc.)

Coins & Tokens

ToolDescription
get_balanceBalance of a coin type for an address (defaults to SUI)
get_coin_infoToken metadata: name, symbol, decimals, description, supply
search_tokenSearch tokens by name/symbol, with Aftermath Finance fallback
get_token_pricesUSD prices for tokens — current (Aftermath + Pyth), or historical via Pyth when at is set

Transactions & Events

ToolDescription
get_transactionTransaction by digest with protocol-decoded actions
query_transactionsFilter transactions by sender, address, object, or function
query_eventsFilter events by type, sender, module, or checkpoint range

DeFi

ToolDescription
get_defi_positionsDeFi positions across Suilend, Cetus, NAVI, Scallop, Bluefin, Bucket
find_poolsDiscover liquidity pools by token pair (Cetus, DeepBook, Turbos)
get_pool_statsPool reserves, fees, and prices for a given pool object ID

NFTs

ToolDescription
list_nftsList NFTs owned by a wallet, including kiosk-stored NFTs
list_nft_collectionsLightweight collection summary with counts
get_top_holdersTop holders of an NFT collection or token

Staking

ToolDescription
get_validatorsList validators (stake, commission, voting power), or full detail for one when address is set
get_staking_summaryWallet's staking positions and pools

Names

ToolDescription
resolve_nameSuiNS 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).

ToolDescription
mvr_resolveResolve one or many MVR names → package IDs. Accepts version-pinned names like @suins/core/3.
mvr_reverse_resolveReverse-lookup: package addresses → MVR names. Useful for enriching raw addresses anywhere.
mvr_get_package_infoFull record for a name: metadata, version, package_address, package_info ID, git source.
mvr_searchBrowse / search the registry. Supports substring search, pagination, and an is_linked filter for published packages.
mvr_resolve_structResolve @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)

ToolDescription
get_packageMove package modules, structs (with ordered fields), and functions
get_move_functionSpecific Move function signature and parameters
get_package_dependency_graphPackage dependency analysis with recursive traversal
analyze_packageSummarize a package's API + heuristic risk scan (no binary; accepts 0x id or MVR name)
disassemble_moduleDisassemble Move bytecode via GraphQL (no binary; accepts 0x id or MVR name)
decompile_moduleDecompile Move bytecode to source (requires decompiler binary)
diff_package_upgrade(Security) Diff two package versions to spot what an upgrade changed — malicious-upgrade / backdoor detection

Transaction Building

ToolDescription
build_transferBuild an unsigned transfer of SUI or any coin (auto coin selection); returns BCS for simulate_transaction
build_stakingBuild an unsigned stake/unstake transaction (action: stake|unstake)
simulate_transactionDry-run a transaction to preview effects and gas cost

Advanced

ToolDescription
decode_ptbDecode a Programmable Transaction Block from BCS bytes
check_activityMonitor address or object for new activity since a checkpoint

Incident Investigation

ToolDescription
trace_fundsSwap-aware, USD-valued multi-hop fund tracing that stops at labeled sinks (forward or backward)
find_funding_sourceWalk an address back to its funding source(s) for attribution; stops at labeled exchanges/bridges
build_timelineMerge multiple addresses' activity into one checkpoint-ordered, protocol-decoded timeline
trace_object_historyObject provenance: version history + ownership transitions (who created/held an object when)
manage_labelsAddress-label registry (exchanges, bridges, mixers, malicious wallets) used by the tracing tools
diff_package_upgradeDiff two package versions to detect malicious upgrades / backdoors

License

MIT

Reviews

No reviews yet

Be the first to review this server!

Sui MCP Server - Read-only Sui blockchain analytics: 47 tools, | MCP Marketplace