bnbchain-mcp
What it does
This skill shows how to connect an AI tool to the BNB Chain MCP server, which gives the agent tools for BNB Chain, opBNB and other EVM networks. It covers read-only blockchain lookups and state-changing actions that need a private key.
When to use it
- ✓When you want your AI tool to look up blocks, balances or contract data on BNB Chain.
- ✓When you need the agent to send tokens or write to a contract on BNB Chain.
- ✓When you want to register an agent identity or use BNB Greenfield through MCP.
Skill link
https://github.com/internet-court/internet-court-skill/blob/main/vendored/bnb-chain/bnbchain-mcp/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want to connect my AI tool to BNB Chain so it can check a wallet balance.”
5 new skills a week. 1 minute to read.
How it works
You add the server to your AI tool's settings file. Lookups work without a key, while sending tokens or writing to contracts needs a private key stored in the server's environment settings. The agent then uses the server's tools to read or write.
Technical content (original SKILL.md)
Original text by the author, straight from 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
envfor 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_KEYin 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
envwhen state-changing tools are needed; leave empty for read-only. Do not commit or echo keys.
3. Agent registration (ERC-8004)
- Register the agent on-chain with the MCP tool
register_erc8004_agent(see references/erc8004-tools-reference.md). - 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.):
networkis optional; default isbsc. Useget_supported_networksto 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):networkis 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
| Category | Examples | Needs PRIVATE_KEY? |
|---|---|---|
| Blocks | get_latest_block, get_block_by_number, get_block_by_hash |
No |
| Transactions | get_transaction, get_transaction_receipt, estimate_gas |
No (estimate only) |
| Network | get_chain_info, get_supported_networks |
No |
| Wallet / balance | get_native_balance, get_erc20_balance, get_address_from_private_key |
Balance: optional address or privateKey |
| Transfers / writes | transfer_native_token, transfer_erc20, transfer_nft, transfer_erc1155, approve_token_spending, write_contract |
Yes |
| Contracts | read_contract, is_contract |
No for read |
| Tokens / NFT | get_erc20_token_info, get_nft_info, get_erc1155_token_metadata, check_nft_ownership, get_nft_balance, get_erc1155_balance |
No for read |
| ERC-8004 | register_erc8004_agent, set_erc8004_agent_uri, get_erc8004_agent, get_erc8004_agent_wallet |
Register/set_uri: Yes |
| Greenfield | gnfd_* bucket/object/payment tools |
Writes: 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 — Gui
FAQ
Do I need a private key just to look things up?
No. Blocks, balances and contract reads work without one.
Where should the private key go?
The skill says to set it only in the server's environment settings, and never to log or share it.
How is the server started?
The skill's setup runs the BNB Chain MCP package through npx, with a settings block for the tool.
Details
Original description by the author
BNB Chain MCP server connection and tool usage. Covers npx @bnb-chain/mcp@latest, PRIVATE_KEY and RPC, and every MCP tool — blocks, transactions, contracts, ERC20/NFT transfers, wallet, ERC-8004 agent registration, Greenfield. Use when connecting to bnbchain-mcp, querying or transacting on BNB Chain/opBNB/EVM, registering as ERC-8004 agent, or using Greenfield.
Popularity
- GitHub stars
- 7.0k
- Ranking position
- #13617
- License
- —
- Updated
- 10/26/2026
Comments
- …
More skills from this repository
internet-court
7.0kHelps your agent pay, hire, or deal safely with another AI agent or paid service, and points it to the right specialized guide.
genlayer-erc7710-connector
7.0kHelps your agent connect an AI review result to a permission system, so a bad review can limit or cancel an agent's permissions.
genlayer-intelligent-contracts
7.0kHelps your agent define the rules, evidence and outputs of an AI judge that checks whether another agent followed its mandate.
x402-erc7710
7.0kHelps your agent pay for web services one request at a time, and set up ongoing spending that stays within a permission budget.
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.