Skip to content
0G Mainnet

Connect an agent to 0G

MCPChecking MCPGitHub

Discover native-current read-only tools for 0G Mainnet, chain ID 16661. A configured endpoint does not establish service availability.

Two ways to use

Subscription

Free

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

  • Native HTTP setup for Claude Code, Cursor and Codex
  • Read-only explorer and staking requests
  • Confirm 0G Mainnet · chain ID 16661

AI SDK

Developers

Use the 0G Agent Kit TypeScript client for explorer, account, validator and staking reads. The kit is a client, not the remote service.

  • Node.js 20 or newer
  • Read-only demos included
  • No wallet or AI API key needed for these demos
AI SDK docs

Quick Start

Claude Code · .mcp.json

{
  "mcpServers": {
    "zerog": {
      "type": "http",
      "url": "https://dev.0g.exploreme.pro/api/v1/mcp"
    }
  }
}

Cursor · .cursor/mcp.json

{
  "mcpServers": {
    "zerog": {
      "url": "https://dev.0g.exploreme.pro/api/v1/mcp"
    }
  }
}

Codex · .codex/config.toml

[mcp_servers.zerog]
url = "https://dev.0g.exploreme.pro/api/v1/mcp"
codex mcp add zerog --url https://dev.0g.exploreme.pro/api/v1/mcp

Reconnect your client, discover tools/list, then request the latest block. Confirm 0G Mainnet, chain ID 16661.

Architecture

The client reads the native-current MCP service. It does not prepare, sign, broadcast, provide a faucet, deploy or verify contracts, or expose legacy DA/storage tools.

Agent Kit (client)

Read-only explorer and staking requestsPublic WALLET_ADDRESS only
HTTP

MCP Server (remote)

tools/list discoveryavailable deployment tools

You (chat or code)

Security

Key Principle

No wallet or private key is required for native-current read-only requests. Never send private keys or mnemonics to a client or server.

Read-only setup

Default

Install the client using its lockfile. Check the actual service before running examples; source availability is not deployment.

git clone https://github.com/stakeme-team/0g-agent-kit
cd 0g-agent-kit
npm ci

Confirm connectivity

Public reads

Confirm 0G Mainnet, chain ID 16661. Unavailable measurements must remain unavailable, not invented zeros or complete-history claims.

npm run smoke:mcp

Service boundaries

Native-current

The service exposes reads only. Historical coverage can be unavailable; staking shares and token amounts are separate measurements. Consult the kit README for client and AI SDK instructions.

npm run demo:explorer
npm run demo:staking

MCP Tools

The 0G MCP server at https://dev.0g.exploreme.pro/api/v1/mcp. The catalogue comes from tools/list.

Loading catalogue…