Skip to main content
Glama

bnbchain-mcp

Official
by bnb-chain

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoServer port number3001
LOG_LEVELNoSet logging level (DEBUG, INFO, WARN, ERROR)
PRIVATE_KEYNoYour wallet private key (required for transaction operations)

Schema

Prompts

Interactive templates invoked by user choice

NameDescription
analyze_blockAnalyze a block and provide detailed information about its contents
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
analyze_transactionAnalyze a specific transaction
analyze_addressAnalyze an EVM address

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_block_by_hash

Get a block by hash

get_block_by_number

Get a block by number

get_latest_block

Get the latest block

is_contract

Check if an address is a smart contract or an externally owned account (EOA)

read_contract

Read data from a smart contract by calling a view/pure function

write_contract

Write data to a smart contract by calling a state-changing function

get_chain_info

Get chain information for a specific network

get_supported_networks

Get list of supported networks

resolve_ens

Resolve an ENS name to an EVM address (not supported on BSC)

get_erc20_token_info

Get ERC20 token information

get_native_balance

Get native token balance for an address

get_erc20_balance

Get ERC20 token balance for an address

get_transaction

Get detailed information about a specific transaction by its hash. Includes sender, recipient, value, data, and more.

get_transaction_receipt

Get a transaction receipt by its hash

estimate_gas

Estimate the gas cost for a transaction

transfer_native_token

Transfer native tokens (BNB, ETH, MATIC, etc.) to an address

approve_token_spending

Approve another address (like a DeFi protocol or exchange) to spend your ERC20 tokens. This is often required before interacting with DeFi protocols.

transfer_nft

Transfer an NFT (ERC721 token) from one address to another. Requires the private key of the current owner for signing the transaction.

transfer_erc1155

Transfer ERC1155 tokens to another address. ERC1155 is a multi-token standard that can represent both fungible and non-fungible tokens in a single contract.

transfer_erc20

Transfer ERC20 tokens to an address

get_address_from_private_key

Get the EVM address derived from a private key

get_nft_info

Get detailed information about a specific NFT (ERC721 token), including collection name, symbol, token URI, and current owner if available.

check_nft_ownership

Check if an address owns a specific NFT

get_erc1155_token_uri

Get the metadata URI for an ERC1155 token (multi-token standard used for both fungible and non-fungible tokens). The URI typically points to JSON metadata about the token.

get_nft_balance

Get the total number of NFTs owned by an address from a specific collection. This returns the count of NFTs, not individual token IDs.

get_erc1155_balance

Get the balance of a specific ERC1155 token ID owned by an address. ERC1155 allows multiple tokens of the same ID, so the balance can be greater than 1.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bnb-chain/bnbchain-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server