Skip to main content
Glama

BNB Chain MCP

A comprehensive Model Context Protocol (MCP) server for BNB Chain ecosystem - BSC EVM, BNB Greenfield storage, and Sperax Protocol (USDs stablecoin).

Features

๐Ÿ”— BNB Smart Chain (BSC EVM)

  • Blocks - Query block data, latest blocks, block by number/hash

  • Tokens - ERC20/BEP20 token operations, balances, transfers

  • NFTs - NFT minting, transfers, metadata queries

  • Transactions - Send transactions, get receipts, estimate gas

  • Contracts - Deploy and interact with smart contracts

  • Wallet - Wallet management and balance queries

๐Ÿ’พ BNB Greenfield (Decentralized Storage)

  • Storage - Create buckets, upload/download objects

  • Payment - Manage storage payments and billing

  • Account - Account management and permissions

  • Storage Providers - Query and select SPs

๐Ÿ’ฐ Sperax Protocol (USDs Stablecoin)

  • USDs - Auto-yield stablecoin operations, mint/redeem

  • SPA - SPA token staking, veSPA governance

  • Vault - Vault operations, collateral management

  • Demeter - Yield farming on Demeter DEX

  • Oracle - Price feeds and oracle data

  • Governance - Protocol governance and voting

  • Analytics - Protocol metrics and analytics

  • Portfolio - Track holdings and yields

  • Swap - Token swaps via Sperax DEX

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

{ "mcpServers": { "bnbchain-mcp": { "command": "npx", "args": ["-y", "@nirholas/bnbchain-mcp@latest"], "env": { "PRIVATE_KEY": "your_private_key_here" } } } }

Cursor / VS Code

Add to your MCP settings:

{ "mcpServers": { "bnbchain-mcp": { "command": "npx", "args": ["-y", "@nirholas/bnbchain-mcp@latest"], "env": { "PRIVATE_KEY": "your_private_key_here" } } } }

Server Modes

Mode

Command

Use Case

stdio

npx @nirholas/bnbchain-mcp

Claude Desktop, Cursor

HTTP

npx @nirholas/bnbchain-mcp --http

ChatGPT Developer Mode

SSE

npx @nirholas/bnbchain-mcp --sse

Legacy HTTP clients

Example Prompts

BSC EVM Operations

Get my BNB balance on BSC mainnet
Transfer 0.1 BNB to 0x742d35Cc6634C0532925a3b844Bc9e7595f5eB1

Greenfield Storage

Create a new bucket called "my-ai-data" on Greenfield
Upload this file to my Greenfield bucket

Sperax Protocol

What is the current USDs APY?
Mint 100 USDs using USDC as collateral
Show my SPA staking rewards
What's the TVL in the Sperax vault?
Stake my SPA tokens for veSPA

Supported Networks

  • BSC Mainnet (Chain ID: 56)

  • BSC Testnet (Chain ID: 97)

  • opBNB Mainnet (Chain ID: 204)

  • opBNB Testnet (Chain ID: 5611)

  • Greenfield Mainnet

  • Greenfield Testnet

  • Arbitrum One (Chain ID: 42161) - Sperax

  • Arbitrum Sepolia (Chain ID: 421614) - Sperax Testnet

Development

# Clone the repo git clone https://github.com/nirholas/bnbchain-mcp cd bnbchain-mcp # Install dependencies npm install # Run in development mode npm run dev # Build npm run build # Run tests npm test

License

Apache 2.0 - see LICENSE

Author

nirholas

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

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/nirholas/bnbchain-mcp'

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