Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bnb-chain avatar

Bnbchain Mcp

  • 317 installs
  • 62 repo stars
  • Updated March 4, 2026
  • bnb-chain/bnbchain-skills

bnbchain-mcp is a skill covering how to connect to and use the BNB Chain MCP server for blocks, transactions, contracts, token and NFT transfers, wallet queries, ERC-8004 agent registration, and Greenfield.

About

bnbchain-mcp is a skill that documents how to connect to the BNB Chain MCP server and use its tools for BNB Chain, opBNB, and other EVM chains plus Greenfield storage. A developer uses it to configure the server in Cursor or Claude Desktop and then query blocks, balances, and contracts, or run token and NFT transfers. Read-only tools work without credentials, while transfers and writes need PRIVATE_KEY set in the server environment. It also covers ERC-8004 agent registration.

  • Connects the BNB Chain MCP server (npx @bnb-chain/mcp) into agent clients
  • Covers EVM tools: blocks, transactions, contracts, ERC20/NFT/ERC1155 transfers, wallet
  • Requires PRIVATE_KEY only for state-changing writes; reads work key-free

Bnbchain Mcp by the numbers

  • 317 all-time installs (skills.sh)
  • Ranked #65 of 479 Web3 & Blockchain skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

bnbchain-mcp capabilities & compatibility

Server itself runs free via npx; state-changing tools require a wallet PRIVATE_KEY and on-chain gas.

Capabilities
blockchain query · token transfer · smart contract interaction · erc8004 registration
Works with
anthropic
Use cases
api development · orchestration
Runs
Runs locally
Pricing
Bring your own API key
From the docs

What bnbchain-mcp says it does

**Run the server:** `npx @bnb-chain/mcp@latest` (fetches from npm at runtime).
SKILL.md
**PRIVATE_KEY:** Omit or leave empty for read-only (blocks, balances, contract reads). Set in the MCP server `env` for state-changing tools
SKILL.md
**Write operations** (`transfer_native_token`, `transfer_erc20`, `transfer_nft`, `transfer_erc1155`, `approve_token_spending`, `write_contract`, `register_erc8004_agent`, `set_erc8004_agent_uri`, Gree
SKILL.md
npx skills add https://github.com/bnb-chain/bnbchain-skills --skill bnbchain-mcp

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs317
repo stars62
Last updatedMarch 4, 2026
Repositorybnb-chain/bnbchain-skills

What it does

Connect an agent to the BNB Chain MCP server to query or transact on BNB Chain, opBNB, and EVM chains and to register an ERC-8004 agent.

Who is it for?

Developers wiring the BNB Chain MCP into an agent to read chain data or execute EVM transactions and Greenfield storage operations.

Skip if: Non-EVM chains; the tools target BNB Chain, opBNB, and EVM-compatible networks.

When should I use this skill?

Connecting to bnbchain-mcp, querying or transacting on BNB Chain/opBNB/EVM, registering an ERC-8004 agent, or using Greenfield.

What you get

A configured MCP server whose read tools run key-free and whose write tools run only with an explicit network and PRIVATE_KEY.

  • configured bnbchain-mcp server
  • chain queries and analyses
  • EVM transactions

By the numbers

  • eight tool categories in the reference table
  • four reference files (evm, erc8004, greenfield, prompts)

Files

SKILL.mdMarkdownGitHub ↗

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

---

4. Quick reference — tools and prompts

Network parameter

  • Read-only tools (blocks, balances, contract reads, get_chain_info, etc.): `network` is optional; default is bsc. Use `get_supported_networks` to list options.
  • Write operations (transfer_native_token, transfer_erc20, transfer_nft, transfer_erc1155, approve_token_spending, write_contract, register_erc8004_agent, set_erc8004_agent_uri, Greenfield writes): `network` is REQUIRED. There is no default for writes. If the user does not specify the network, you MUST ask before calling the tool. Do not assume or default to mainnet (bsc); accidental mainnet execution causes irreversible financial loss.

Tool categories

CategoryExamplesNeeds PRIVATE_KEY?
Blocksget_latest_block, get_block_by_number, get_block_by_hashNo
Transactionsget_transaction, get_transaction_receipt, estimate_gasNo (estimate only)
Networkget_chain_info, get_supported_networksNo
Wallet / balanceget_native_balance, get_erc20_balance, get_address_from_private_keyBalance: optional address or privateKey
Transfers / writestransfer_native_token, transfer_erc20, transfer_nft, transfer_erc1155, approve_token_spending, write_contractYes
Contractsread_contract, is_contractNo for read
Tokens / NFTget_erc20_token_info, get_nft_info, get_erc1155_token_metadata, check_nft_ownership, get_nft_balance, get_erc1155_balanceNo for read
ERC-8004register_erc8004_agent, set_erc8004_agent_uri, get_erc8004_agent, get_erc8004_agent_walletRegister/set_uri: Yes
Greenfieldgnfd_* bucket/object/payment toolsWrites: Yes

Prompts (MCP prompts)

Use the MCP prompt names when the user wants analysis or guidance:

  • analyze_block — Analyze a block and its contents
  • analyze_transaction — Analyze a specific transaction
  • analyze_address — Analyze an EVM address
  • interact_with_contract — Guidance on interacting with a smart contract
  • explain_evm_concept — Explain an EVM concept
  • compare_networks — Compare EVM-compatible networks
  • analyze_token — Analyze an ERC20 or NFT token
  • how_to_register_mcp_as_erc8004_agent — Guidance on registering MCP as ERC-8004 agent

---

5. Reference files (per-tool usage)

For parameter names, examples, and detailed usage of each tool, use:

ReferenceContent
references/evm-tools-reference.mdBlocks, transactions, network, wallet, contracts, tokens, NFT — all EVM tools
references/erc8004-tools-reference.mdregister_erc8004_agent, set_erc8004_agent_uri, get_erc8004_agent, get_erc8004_agent_wallet
references/greenfield-tools-reference.mdBuckets, objects, folders, payment accounts — all Greenfield tools
references/prompts-reference.mdAll MCP prompts and when to use them

---

6. Safety and best practices

1. Confirm before sending transactions: For transfer_*, write_contract, or approve_token_spending, confirm recipient, amount, and network before calling the tool. 2. Network required for writes: For any write (transfers, write_contract, approve_token_spending, ERC-8004 register/set_uri), you MUST have an explicit network from the user. If not specified, ask — do not default to mainnet. Do not use advisory language like "prefer testnet" as a substitute; the constraint is: no network specified → do not call the write tool until the user confirms. 3. Private keys: Only in MCP server env; never in chat or logs. 4. ERC-8004 agentURI: JSON metadata per the Agent Metadata Profile (name, description, image, services e.g. MCP endpoint).

---

Documentation links

  • BNB Chain MCP repo: https://github.com/bnb-chain/bnbchain-mcp
  • npm: npx @bnb-chain/mcp@latest
  • ERC-8004 (Identity Registry); Agent Metadata Profile for agentURI format.

Related skills

How it compares

Use bnbchain-mcp for agent-driven BNB Chain MCP workflows; use direct viem/ethers SDK skills when building traditional dApps without MCP tooling.

FAQ

When do I need a PRIVATE_KEY?

Omit or leave it empty for read-only tools like blocks, balances, and contract reads; set it in the server env for transfers, write_contract, approve_token_spending, ERC-8004 register/set_uri, and Greenfield writes.

How do I run the server?

Run npx @bnb-chain/mcp@latest, which fetches from npm at runtime; add it to the MCP client config as a stdio command or use --sse for SSE mode.

Web3 & Blockchainintegrationsbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.