• Overview

  • Overview
  • Blockchain

  • Blockchain
  • BlocksTransactionsTop accountsContracts
  • Validators

  • Validators
  • API

  • API
  • Assets

  • Assets
  • TokensNFTs

0G

Connect via
MCP

mainnet

0G-Mainnet

Latest Block

‌
‌

exploreme

Network

Home

Socials

WebsiteTwitterGithubDiscord

Help

Help centerBug report
Indexing the blocks
Evm0%...
Backend: —Frontend: v4.6.0-83ae5f21

Powered by

STAKEME
Beta

This section is currently in development and may change.

0G Agent Kit

MCP88 tools · 0GGitHub

MCP-based toolkit for interacting with the 0G blockchain through AI agents or terminal. Stake, send transactions, deploy & verify contracts, and explore the chain, DA & storage — all from a single workspace.

Two ways to use

Subscription

Free

Connect MCP to Claude Code, Cursor, or Codex and use your existing subscription. No API key needed.

  • Claude Code auto-detects .mcp.json
  • Built-in /wallet, /send, /deploy skills
  • Works with Claude Pro/Max or Cursor Pro
Claude CodeClaude Code setupCursorCursor setupCodexCodex setup

AI SDK

Developers

Build programmatic agents via Vercel AI SDK with Claude or OpenAI. Full control over agent behavior.

  • Vercel AI SDK integration
  • Claude and OpenAI support
  • Ready-to-run demos included
AI SDKAI SDK docs

Quick Start

Claude CodeClaude Code auto-detects .mcp.json and connects to 0G. Use built-in skills:

Architecture

The AI agent sees only your wallet address and tool results — never the private key. Signing always happens locally before the transaction is broadcast.

sign-tx (local)

Signs tx locallyKey in .env or keystore
unix

MCP Server (remote)

prepare_* transactionsbroadcast signed txquery blocks & tokensstake · DA · verify

AI Agent (ClaudeClaude/GPTGPT/ local)

✓ Sees: wallet address, tool results✗ Never sees: private key

You (chat or code)

Security

Key Principle

The private key never leaves your machine. MCP prepares unsigned transactions, signing happens locally, then the signed transaction is broadcast back through MCP.

Simple Mode

Default

Private key stored in .env, protected by guard hooks that block the AI agent from reading it. Tests cover 26+ attack vectors.

Secure Mode

Maximum security

Private key encrypted in keystore, decrypted only in a separate daemon process. The AI agent physically cannot access the key — it only receives the signed hash.

Docker Isolation

Supply chain protection

Run all npm installs and demos inside a container. Node modules are isolated — compromised packages can't reach your host filesystem or keys.

MCP Tools

88 tools total

The 0G MCP server at https://api.0g.exploreme.pro/mcp provides tools across 8 categories.

Transactions
  • prepare_native_transfer
  • prepare_erc20_transfer
  • prepare_transaction
  • broadcast_signed_raw_transaction
  • wait_for_transaction
Staking
  • prepare_delegate
  • prepare_undelegate
  • list_validators
  • validator_apr
  • account_delegations
Balances
  • rpc_native_balance
  • rpc_token_balance
  • balance_at_block
Blocks & Txns
  • list_blocks
  • get_block
  • list_transactions
  • get_transaction
Contracts
  • get_contract
  • contract_code
  • verify_contract_std_json
  • rpc_read_contract
Tokens
  • list_tokens
  • get_token
  • list_token_holders
  • token_approvals
DA & Storage
  • list_da_signers
  • list_da_events
  • list_storage_files
  • list_storage_miners
Explorer
  • search
  • get_account
  • stats_overview
  • gas_oracle