bnbchain-mcp

bnbchain-mcp is a skill for Claude Code, Codex from bnb-chain/bnbchain-skills. It costs 97 tokens per session (1,757 once invoked), scanned A, original, MIT.

A connection guide for using coding-agent tools with BNB Chain, a blockchain network compatible with Ethereum-style applications. It covers reading blockchain data and, when a private key is configured, sending transactions or changing records.

In plain words
What is it for?
Use it to inspect blocks, transactions, contracts, token and NFT balances, transfer assets, manage wallets, register ERC-8004 agents, or work with BNB Greenfield storage.
Why use it?
It explains how to connect to the network, which operations are read-only, and which require a wallet key. This reduces setup mistakes and helps avoid exposing sensitive credentials.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect blocks, transactions, contracts, token and NFT balances, transfer assets, manage wallets, register ERC-8004 agents, or work with BNB Greenfield storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bnb-chain/bnbchain-skills/bnbchain-mcp-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bnb-chain/bnbchain-skills --skill bnbchain-mcp-skill
Clone the repo
git clone --depth 1 https://github.com/bnb-chain/bnbchain-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bnbchain-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/bnb-chain/bnbchain-skills/bnbchain-mcp-skill/github.svg)](https://agentmods.dev/skills/bnb-chain/bnbchain-skills/bnbchain-mcp-skill)
Your own site
<a href="https://agentmods.dev/skills/bnb-chain/bnbchain-skills/bnbchain-mcp-skill"><img src="https://agentmods.dev/badge/skills/bnb-chain/bnbchain-skills/bnbchain-mcp-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bnbchain-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/bnb-chain/bnbchain-skills/bnbchain-mcp-skill"><img src="https://agentmods.dev/badge/skills/bnb-chain/bnbchain-skills/bnbchain-mcp-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,757 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.01757
Opus 5 $0.00048 $0.00879
Sonnet 5 $0.00019 $0.00351
Haiku 4.5 $0.00010 $0.00176

Measured 12d ago against content hash 4d609d55c1a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

bnbchain-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bnbchain-mcp-skill/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

BNB Chain MCP Skill

How to connect to the BNB Chain MCP server and use its tools: blocks, transactions, contracts, tokens, NFTs, wallet, ERC-8004 agents, and Greenfield. Use this skill when working with BNB Chain / opBNB / EVM or Greenfield via MCP.


Connection and credentials

  • Run the server: npx @bnb-chain/mcp@latest (fetches from npm at runtime). Source: github.com/bnb-chain/bnbchain-mcp.
  • RPC: Default chains use built-in RPC; no config unless self-hosting or custom RPC.
  • PRIVATE_KEY: Omit or leave empty for read-only (blocks, balances, contract reads). Set in the MCP server env for state-changing tools (transfers, write_contract, approve_token_spending, ERC-8004 register/set_uri, Greenfield writes). Never log or expose private keys.
  • Read-only vs state-changing: Block/balance/contract-read tools work without a key; transfers and writes require PRIVATE_KEY in the server environment.

1. MCP server config

Add the bnbchain-mcp server to the MCP client config (e.g. Cursor MCP settings, Claude Desktop claude_desktop_config.json).

Default (stdio):

{
  "mcpServers": {
    "bnbchain-mcp": {
      "command": "npx",
      "args": ["-y", "@bnb-chain/mcp@latest"],
      "env": {
        "PRIVATE_KEY": ""
      }
    }
  }
}

SSE mode: "args": ["-y", "@bnb-chain/mcp@latest", "--sse"] (and client SSE URL if required). Local dev server (e.g. bun dev:sse in bnbchain-mcp): "url": "http://localhost:3001/sse" with the same env.

Restart or reload the MCP client after changing config so the server starts.


2. Credentials and environment

  • RPC: Built-in for default chains.
  • PRIVATE_KEY: Set in the server’s env when state-changing tools are needed; leave empty for read-only. Do not commit or echo keys.

3. Agent registration (ERC-8004)

  1. Register the agent on-chain with the MCP tool register_erc8004_agent (see references/erc8004-tools-reference.md).
  2. Owners can then check registration on 8004scan (mainnet) or 8004scan (testnet).

Read the full file on GitHub · 126 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 126 lines · 97 tokens per session scan A 4d609d55c1a1

Subscribe to this mod's changes

bnbchain-mcp is a skill published in the GitHub repository bnb-chain/bnbchain-skills (63 stars, last pushed 6mo ago), licensed MIT. It adds 97 tokens to every session and 1,757 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.