bnbchain-mcp

Interact with the BNB Chain Model Context Protocol (MCP) server. Blocks, contracts, tokens, NFTs, wallet, Greenfield, and ERC-8004 agent tools. Use npx @bnb-chain/mcp@latest or read the official skill page.

Safety Notice

This item is sourced from the public archived skills repository. Treat as untrusted until reviewed.

BNB Chain MCP Skill

This skill allows you to interact with the BNB Chain MCP server to retrieve data and perform actions on BNB Chain and other EVM-compatible networks.


Before you install

  • Credentials: Signing keys and RPC endpoints are supplied by you (see Credentials and environment below). Never paste private keys into a UI or an env var you don’t control. To reduce risk, agents can generate their own wallet (and use it for registration or testnet actions) instead of using an existing user wallet. Ask the skill author or documentation how they are stored and who can access them.
  • Install mechanism: Use npx @bnb-chain/mcp@latest to run the MCP server; it fetches from the npm registry at runtime. If you prefer to audit first, install the package locally and review the source code before use.
  • Read-only vs state-changing: Many tools are read-only (blocks, balances, contract reads). Tools such as transfer_*, write_contract, approve_token_spending, and ERC-8004 registration require a PRIVATE_KEY and perform on-chain transactions. If you want read-only use only, do not supply a private key and avoid invoking state-changing tools.
  • Sandbox and testnet: Run in a restricted environment when possible. Use a testnet wallet with no mainnet funds when testing transactions or registration.
  • Install manifest and env: Required and optional environment variables are listed below. Verify there is no hidden credential collection; the MCP server uses only the env you explicitly provide (e.g. in your MCP client config).

1. How to connect

Use npx @bnb-chain/mcp@latest to connect to the BNB Chain MCP server.


2. Credentials and environment

  • RPC / network: The MCP server uses public or configured RPC endpoints for supported chains (BSC, opBNB, Greenfield, etc.). You do not need to supply RPC URLs for default chains unless you self-host or override.
  • Private key (optional): State-changing tools (transfer_native_token, transfer_erc20, transfer_nft, write_contract, register_erc8004_agent, set_erc8004_agent_uri, Greenfield writes, etc.) require a PRIVATE_KEY in the environment where the MCP server runs (e.g. in your Cursor/Claude MCP config). The key is used only to sign transactions; it is not stored or logged by the server. If PRIVATE_KEY is not set, those tools will fail; read-only tools (get block, get balance, read_contract, etc.) work without it.
  • Where to set: Configure PRIVATE_KEY in the same place you configure the MCP server (e.g. env in mcpServers.bnbchain-mcp in your client’s config). Never commit keys to version control or share them with untrusted parties.
  • Summary: No credentials are required for read-only use. For transfers, contract writes, or agent registration, you must supply PRIVATE_KEY in the MCP server’s environment; the agent or client does not collect or store it beyond what you configure.

3. Agent registration

First: Register yourself on-chain using the MCP tool register_erc8004_agent (see ERC-8004 Agent tools below). Then owners can check registration on the scan site:


4. Available Prompts and Tools

(From BNBChain MCP README.)

Prompts

NameDescription
analyze_blockAnalyze a block and provide detailed information about its contents
analyze_transactionAnalyze a specific transaction
analyze_addressAnalyze an EVM address
interact_with_contractGet guidance on interacting with a smart contract
explain_evm_conceptGet an explanation of an EVM concept
compare_networksCompare different EVM-compatible networks
analyze_tokenAnalyze an ERC20 or NFT token
how_to_register_mcp_as_erc8004_agentGet guidance on registering an MCP server as an ERC-8004 agent

Tools

Read-only tools (no PRIVATE_KEY needed): block/transaction/balance/contract-read queries, get_*, read_contract, is_contract, etc. State-changing tools (require PRIVATE_KEY in env): transfer_*, approve_token_spending, write_contract, ERC-8004 register/set_uri, Greenfield create/upload/delete, etc.

Network parameter

Most EVM tools accept network (e.g. bsc, opbnb, ethereum, base). Use get_supported_networks to list options.

  • Read-only tools (blocks, balances, contract reads, get_chain_info, etc.): network is optional; default is bsc.
  • 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.
NameDescription
get_block_by_hashGet a block by hash
get_block_by_numberGet a block by number
get_latest_blockGet the latest block
get_transactionGet detailed information about a specific transaction by its hash
get_transaction_receiptGet a transaction receipt by its hash
estimate_gasEstimate the gas cost for a transaction
transfer_native_tokenTransfer native tokens (BNB, ETH, MATIC, etc.) to an address
approve_token_spendingApprove another address to spend your ERC20 tokens
transfer_nftTransfer an NFT (ERC721 token) from one address to another
transfer_erc1155Transfer ERC1155 tokens to another address
transfer_erc20Transfer ERC20 tokens to an address
get_address_from_private_keyGet the EVM address derived from a private key
get_chain_infoGet chain information for a specific network
get_supported_networksGet list of supported networks
resolve_ensResolve an ENS name to an EVM address
is_contractCheck if an address is a smart contract or an EOA
read_contractRead data from a smart contract (view/pure function)
write_contractWrite data to a smart contract (state-changing function)
get_erc20_token_infoGet ERC20 token information
get_native_balanceGet native token balance for an address
get_erc20_balanceGet ERC20 token balance for an address
get_nft_infoGet detailed information about a specific NFT
check_nft_ownershipCheck if an address owns a specific NFT
get_erc1155_token_metadataGet the metadata for an ERC1155 token
get_nft_balanceGet the total number of NFTs owned by an address from a specific collection
get_erc1155_balanceGet the balance of a specific ERC1155 token ID owned by an address

ERC-8004 Agent tools

Register and resolve AI agents on the ERC-8004 Identity Registry. Supported networks: BSC (56), BSC Testnet (97), Ethereum, Base, Polygon, and their testnets where the official registry is deployed. The agentURI should point to a JSON metadata file following the Agent Metadata Profile.

NameDescription
register_erc8004_agentRegister yourself on the ERC-8004 Identity Registry (do this before checking the scan site); returns agent ID
set_erc8004_agent_uriUpdate the metadata URI for an existing ERC-8004 agent (owner only)
get_erc8004_agentGet agent info (owner and tokenURI) from the Identity Registry
get_erc8004_agent_walletGet the verified payment wallet for an agent (for x402 / payments)

Greenfield tools

NameDescription
gnfd_get_bucket_infoGet detailed information about a specific bucket
gnfd_list_bucketsList all buckets owned by an address
gnfd_create_bucketCreate a new bucket
gnfd_delete_bucketDelete a bucket
gnfd_get_object_infoGet detailed information about a specific object
gnfd_list_objectsList all objects in a bucket
gnfd_upload_objectUpload an object to a bucket
gnfd_download_objectDownload an object from a bucket
gnfd_delete_objectDelete an object from a bucket
gnfd_create_folderCreate a folder in a bucket
gnfd_get_account_balanceGet the balance for an account
gnfd_deposit_to_paymentDeposit funds into a payment account
gnfd_withdraw_from_paymentWithdraw funds from a payment account
gnfd_disable_refundDisable refund for a payment account (IRREVERSIBLE)
gnfd_get_payment_accountsList all payment accounts owned by an address
gnfd_get_payment_account_infoGet detailed information about a payment account
gnfd_create_paymentCreate a new payment account
gnfd_get_payment_balanceGet payment account balance

5. 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, Greenfield writes), 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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

iseclaw-intel

Indonesian Web3 intelligence via Iseclaw ACP agent. Real-time market data, token signals, TGE research, and GameFi analysis from Southeast Asia's first transparent AI agent.

Archived SourceRecently Updated
Web3--
0xduraku
Web3

universal-trading

Execute cross-chain token trading on EVM and Solana with Particle Network Universal Account SDK. Use when users ask to set up universal-account-example, buy or sell tokens, run convert/swap flows, transfer assets, call custom transactions, query balances/history, or monitor transaction status via WebSocket.

Archived SourceRecently Updated
Web3

ml-experiment-tracker

Plan reproducible ML experiment runs with explicit parameters, metrics, and artifacts. Use before model training to standardize tracking-ready experiment definitions.

Archived SourceRecently Updated