BNB Chain MCP Server Guide
Developer tools for AI crypto agents on BNB Smart Chain (BSC) and opBNB. Build apps with DeFi trading, DEX swaps, smart contract deployment, token operations, staking, bridging, wallet automation, honeypot detection, security analysis, price oracles, market data, and protocol analytics.
Capabilities
| Category |
Tools |
Description |
| DeFi Trading |
Swap, LP management |
Trade on PancakeSwap, Venus, and more |
| DEX Swaps |
Best-route aggregation |
Find optimal swap routes across BSC DEXs |
| Smart Contracts |
Deploy, verify, interact |
Deploy BEP-20 tokens, verify on BscScan |
| Token Operations |
Transfer, approve, mint |
Manage BEP-20/BEP-721 tokens |
| Staking |
BNB staking, liquid staking |
Stake BNB, manage stkBNB positions |
| Bridging |
Cross-chain transfers |
Bridge between BSC, Ethereum, Arbitrum, etc. |
| Wallet Automation |
Batch operations |
Multi-wallet management and automation |
| Honeypot Detection |
Token safety checks |
Detect honeypots, rugs, and scam tokens |
| Security Analysis |
Contract auditing |
Analyze contract source code for vulnerabilities |
| Price Oracles |
On-chain prices |
Read Chainlink/Band feeds on BSC |
| Market Data |
Token/protocol stats |
Volume, TVL, price history |
| Protocol Analytics |
DeFi metrics |
Lending rates, pool depths, yield data |
Quick Start
npx @nirholas/bnbchain-mcp
Claude Desktop Config
{
"mcpServers": {
"bnbchain": {
"command": "npx",
"args": ["@nirholas/bnbchain-mcp"],
"env": {
"BSC_RPC_URL": "https://bsc-dataseed.binance.org",
"PRIVATE_KEY": "your-private-key"
}
}
}
}
Key DeFi Protocols on BSC
| Protocol |
Type |
TVL |
| PancakeSwap |
DEX/AMM |
Top BSC DEX |
| Venus |
Lending |
Compound-style lending |
| Alpaca Finance |
Leveraged yield |
Up to 6x leverage farming |
| Radiant |
Cross-chain lending |
Multi-chain liquid DeFi |
| Thena |
ve(3,3) DEX |
Vote-escrowed tokenomics |
Security Tools
Honeypot Detection
Tool: detectHoneypot
Input: { "tokenAddress": "0x..." }
Output: {
"isHoneypot": false,
"buyTax": 0.5,
"sellTax": 0.5,
"isOpenSource": true,
"hasProxyContract": false
}
Contract Analysis
The MCP server can analyze contract source code for:
- Ownership renouncement status
- Hidden mint functions
- Blacklist/whitelist mechanisms
- Max transaction limits
- Anti-whale mechanisms
- Proxy upgrade patterns
opBNB Layer 2
opBNB is BNB Chain's L2 based on OP Stack:
- Gas: ~$0.001 per transaction
- Speed: 1-second block time
- Compatibility: Full EVM compatibility
- Use case: High-frequency trading, gaming, micropayments
Agent Use Cases
BSC Portfolio Manager
Agent monitors holdings across PancakeSwap, Venus, and other BSC protocols, providing yield optimization recommendations.
Token Screener
AI agent scans new token launches on BSC, runs honeypot detection, and flags safe opportunities.
Cross-Chain Arbitrage
Agent detects price differences between BSC and Arbitrum DEXs, recommending bridge + swap strategies.
Sperax on BNB Chain
Sperax has expanded to BNB Chain:
- SPA token is available on BSC
- Plutus vaults operate on BNB Chain (plvHEDGE, plvLOOP, plvDOLO)
- Bridge SPA between Arbitrum and BSC
Links
1---2name: bnbchain-mcp-guide3description: Guide to the BNB Chain MCP server — developer tools for AI crypto agents including DeFi trading, DEX swaps, smart contract deployment, token operations, staking, bridging, wallet automation, honeypot detection, security analysis, price oracles, market data, and protocol analytics on BSC and opBNB.4license: MIT5---67# BNB Chain MCP Server Guide89Developer tools for AI crypto agents on BNB Smart Chain (BSC) and opBNB. Build apps with DeFi trading, DEX swaps, smart contract deployment, token operations, staking, bridging, wallet automation, honeypot detection, security analysis, price oracles, market data, and protocol analytics.1011## Capabilities1213| Category | Tools | Description |14|----------|-------|-------------|15| **DeFi Trading** | Swap, LP management | Trade on PancakeSwap, Venus, and more |16| **DEX Swaps** | Best-route aggregation | Find optimal swap routes across BSC DEXs |17| **Smart Contracts** | Deploy, verify, interact | Deploy BEP-20 tokens, verify on BscScan |18| **Token Operations** | Transfer, approve, mint | Manage BEP-20/BEP-721 tokens |19| **Staking** | BNB staking, liquid staking | Stake BNB, manage stkBNB positions |20| **Bridging** | Cross-chain transfers | Bridge between BSC, Ethereum, Arbitrum, etc. |21| **Wallet Automation** | Batch operations | Multi-wallet management and automation |22| **Honeypot Detection** | Token safety checks | Detect honeypots, rugs, and scam tokens |23| **Security Analysis** | Contract auditing | Analyze contract source code for vulnerabilities |24| **Price Oracles** | On-chain prices | Read Chainlink/Band feeds on BSC |25| **Market Data** | Token/protocol stats | Volume, TVL, price history |26| **Protocol Analytics** | DeFi metrics | Lending rates, pool depths, yield data |2728## Quick Start2930```bash31npx @nirholas/bnbchain-mcp32```3334### Claude Desktop Config3536```json37{38 "mcpServers": {39 "bnbchain": {40 "command": "npx",41 "args": ["@nirholas/bnbchain-mcp"],42 "env": {43 "BSC_RPC_URL": "https://bsc-dataseed.binance.org",44 "PRIVATE_KEY": "your-private-key"45 }46 }47 }48}49```5051## Key DeFi Protocols on BSC5253| Protocol | Type | TVL |54|----------|------|-----|55| **PancakeSwap** | DEX/AMM | Top BSC DEX |56| **Venus** | Lending | Compound-style lending |57| **Alpaca Finance** | Leveraged yield | Up to 6x leverage farming |58| **Radiant** | Cross-chain lending | Multi-chain liquid DeFi |59| **Thena** | ve(3,3) DEX | Vote-escrowed tokenomics |6061## Security Tools6263### Honeypot Detection6465```66Tool: detectHoneypot67Input: { "tokenAddress": "0x..." }68Output: {69 "isHoneypot": false,70 "buyTax": 0.5,71 "sellTax": 0.5,72 "isOpenSource": true,73 "hasProxyContract": false74}75```7677### Contract Analysis7879The MCP server can analyze contract source code for:80- Ownership renouncement status81- Hidden mint functions82- Blacklist/whitelist mechanisms83- Max transaction limits84- Anti-whale mechanisms85- Proxy upgrade patterns8687## opBNB Layer 28889opBNB is BNB Chain's L2 based on OP Stack:90- **Gas**: ~$0.001 per transaction91- **Speed**: 1-second block time92- **Compatibility**: Full EVM compatibility93- **Use case**: High-frequency trading, gaming, micropayments9495## Agent Use Cases9697### BSC Portfolio Manager98Agent monitors holdings across PancakeSwap, Venus, and other BSC protocols, providing yield optimization recommendations.99100### Token Screener101AI agent scans new token launches on BSC, runs honeypot detection, and flags safe opportunities.102103### Cross-Chain Arbitrage104Agent detects price differences between BSC and Arbitrum DEXs, recommending bridge + swap strategies.105106## Sperax on BNB Chain107108Sperax has expanded to BNB Chain:109- **SPA token** is available on BSC110- **Plutus vaults** operate on BNB Chain (plvHEDGE, plvLOOP, plvDOLO)111- Bridge SPA between Arbitrum and BSC112113## Links114115- GitHub: https://github.com/nirholas/bnbchain-mcp116- BNB Chain Docs: https://docs.bnbchain.org117- Sperax: https://app.sperax.io