home / mcp / bnbchain mcp server
A MCP server for BNB Chain that supports BSC, opBNB, Greenfield, and other popular EVM-compatible networks.
Configuration
View docs{
"mcpServers": {
"bnb-chain-bnbchain-mcp": {
"command": "npx",
"args": [
"-y",
"@bnb-chain/mcp@latest"
],
"env": {
"PRIVATE_KEY": "your_private_key_here. (optional)"
}
}
}
}BNBChain MCP enables you to interact with BNB Chain and other EVM-compatible networks through AI-powered prompts and tooling. It exposes a comprehensive set of modules for blocks, contracts, tokens, transactions, wallets, NFT operations, and more, so you can query, analyze, and manage blockchain activity with natural language guidance.
You connect your MCP client to the BNBChain MCP server to start querying and interacting with blockchain data through prompts. Use the available prompts to analyze blocks, transactions, addresses, and tokens, or to interact with smart contracts. You can also request network information, balance checks, NFT data, and Greenfield file operations through the same interface.
Prerequisites: Node.js (v16+ recommended) and a runtime that can execute npm/npx commands. You may also use Bun if you prefer, but ensure your environment supports the required MCP commands.
Step-by-step setup to run MCP locally and connect clients will follow these steps in order.
The MCP server supports local (stdio) execution via a command like npx to run the MCP package. Ensure you provide the required environment variable for your wallet private key if you perform transaction operations. The PRIVATE_KEY value is optional for read-only interactions.
Analyze a block and provide detailed information about its contents
Analyze a specific transaction and extract key metrics and events
Analyze an EVM address to summarize balance, activity, and token holdings
Get guidance on interacting with a smart contract, including function calls and data encoding
Explain a core EVM concept in simple terms with practical examples
Compare different EVM-compatible networks on metrics like gas, throughput, and costs
Analyze an ERC20 or NFT token for metadata, balance, and transfers
Retrieve a block by its hash with detailed metadata
Retrieve a block by its number with transactions and receipts
Fetch the most recent block on a given network
Get detailed information about a transaction by its hash
Get a transaction receipt by its hash
Estimate the gas cost for a transaction
Transfer native tokens to a destination address
Approve another address to spend your ERC20 tokens
Transfer an NFT (ERC721) from one address to another
Transfer ERC1155 tokens to another address
Transfer ERC20 tokens to an address
Get the EVM address derived from a private key
Get chain information for a specific network
Get a list of supported networks
Resolve an ENS name to an EVM address
Check if an address is a smart contract or an externally owned account (EOA)
Read data from a smart contract by calling a view/pure function
Write data to a smart contract by calling a state-changing function
Get ERC20 token information
Get native token balance for an address
Get ERC20 token balance for an address
Get detailed information about a specific NFT
Check if an address owns a specific NFT
Get the metadata for an ERC1155 token
Get the total number of NFTs owned by an address from a specific collection
Get the balance of a specific ERC1155 token ID owned by an address