βββββββ ββββ ββββββββββ ββββββββββ βββ ββββββ βββββββ βββ
βββββββββββββ βββββββββββ βββββββββββ βββββββββββββββββββ βββ
ββββββββββββββ βββββββββββ βββ βββββββββββββββββββββββββ βββ
ββββββββββββββββββββββββββ βββ βββββββββββββββββββββββββββββ
βββββββββββ ββββββββββββββ βββββββββββ ββββββ βββββββββ ββββββ
βββββββ βββ ββββββββββββ ββββββββββ ββββββ βββββββββ βββββ
ββββββ βββ βββββββββ βββββββ βββββββ βββ βββ βββββββββββββββ
βββββββββββ ββββββββββββββββββββββββββββββ βββ ββββββββββββββββ
βββββββββββ βββ βββ ββββββ ββββββ βββββββ βββ βββ
βββββββββββ βββ βββ ββββββ ββββββ βββββββ βββ βββ
βββ ββββββ βββ βββββββββββββββββββββββββββββ ββββββ βββ
βββ ββββββ βββ βββββββ βββββββ βββββββββββ ββββββ βββ
Live Demo Β· Quick Start Β· What Is This? Β· Components Β· Docs Β· Examples Β· FAQ
BNB Chain AI Toolkit gives AI assistants superpowers on the blockchain.
It's a single repository with everything you need to build AI-powered applications on BNB Chain β agents, blockchain connectors, market data, DeFi tools, wallets, and Web3 standards. All open source.
In plain English: Imagine giving Claude or ChatGPT a crypto wallet, a trading terminal, and 78 expert advisors. That's what this toolkit does.
New to crypto or AI? Start with our What Is This? guide β written for non-technical people.
| Problem | Solution |
|---|---|
| Fragmented BNB Chain tooling | Single repo with everything integrated |
| AI can't interact with blockchains | 6 MCP servers give AI direct chain access |
| Complex DeFi interactions | 78 specialized agents for every protocol |
| Multi-chain complexity | Multi-chain support with unified interfaces |
| No accessibility standards | W3AG + ERC-8004 for inclusive Web3 |
# Clone
git clone https://github.com/nirholas/bnb-chain-toolkit.git
cd bnb-chain-toolkit
# Install & build
bun install && bun run build
# Start any MCP server
cd mcp-servers/bnbchain-mcp && bun install && bun startAdd to your claude_desktop_config.json:
{
"mcpServers": {
"bnbchain": {
"command": "npx",
"args": ["-y", "@nirholas/bnbchain-mcp"],
"env": {
"BSC_RPC_URL": "https://bsc-dataseed.binance.org"
}
}
}
}π Full setup guide: Getting Started
ERC-8004 contracts are deployed and verified on BSC Mainnet, BSC Testnet.
| Contract | Address | Explorer |
|---|---|---|
| IdentityRegistry | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 |
BscScan β |
| ReputationRegistry | 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 |
BscScan β |
| Contract | Address | Explorer |
|---|---|---|
| IdentityRegistry | 0x8004A818BFB912233c491871b3d84c89A494BD9e |
BscScan β |
| ReputationRegistry | 0x8004B663056A597Dffe9eCcC1965A193B7388713 |
BscScan β |
| ValidationRegistry | 0x8004Cb1BF31DAf7788923b405b754f57acEB4272 |
BscScan β |
| Contract | Address | Explorer |
|---|---|---|
| IdentityRegistry | 0x8004A818BFB912233c491871b3d84c89A494BD9e |
opBNBScan β |
| ReputationRegistry | 0x8004B663056A597Dffe9eCcC1965A193B7388713 |
opBNBScan β |
| ValidationRegistry | 0x8004Cb1BF31DAf7788923b405b754f57acEB4272 |
opBNBScan β |
| Contract | Address | Explorer |
|---|---|---|
| IdentityRegistry | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 |
opBNBScan β |
| ReputationRegistry | 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 |
opBNBScan β |
π First deployment TX:
0xfc55d83d...dc1962on BSC Testnet
β οΈ Note: Smart contracts instandards/erc-8004/contracts/are reference implementations and have not been formally audited. Do not deploy to mainnet without an independent security audit.
bnb-chain-toolkit/
βββ agents/ # π€ 78 AI Agent definitions
β βββ bnb-chain-agents/ # 36 BNB Chain-specific agents
β βββ defi-agents/ # 42 general DeFi agents (30+ languages)
β
βββ mcp-servers/ # π 6 Model Context Protocol servers
β βββ bnbchain-mcp/ # BNB Chain + EVM (466+ tools)
β βββ binance-mcp/ # Binance.com (554+ tools)
β βββ binance-us-mcp/ # Binance.US (US compliance)
β βββ universal-crypto-mcp/ # Multi-network (59+ tools)
β βββ agenti/ # Universal EVM + Solana (58+ tools)
β βββ ucai/ # ABI-to-MCP generator (Python)
β
βββ market-data/ # π Market data & news
β βββ crypto-market-data/ # CoinGecko, DeFiLlama, Fear & Greed
β βββ crypto-news/ # 200+ sources, 150+ endpoints
β
βββ defi-tools/ # π§Ή DeFi utilities
β βββ sweep/ # Multi-chain dust sweeper
β
βββ wallets/ # π Wallet tooling
β βββ ethereum-wallet-toolkit/# Offline-capable, BSC compatible
β
βββ standards/ # π Web3 standards
β βββ erc-8004/ # Agent discovery & trust protocol
β βββ w3ag/ # Web3 Accessibility Guidelines
β
βββ docs/ # π Comprehensive documentation
π Deep dive: Architecture Guide
Pre-built agent definitions for every major BNB Chain protocol and DeFi use case.
BNB Chain Agents (36) β Click to expand
| Agent | Description |
|---|---|
| PancakeSwap Trader | DEX trading, liquidity, yield farming on PancakeSwap v3 |
| Venus Protocol Expert | Lending, borrowing, liquidation on Venus |
| BNB Staking Advisor | Liquid staking optimization across validators |
| Binance Earn Specialist | Savings, staking, Launchpool yields |
| BSC Bridge Navigator | Cross-chain bridging (BSC β opBNB β L2s) |
| BEP-20 Token Analyst | Token security, smart money tracking |
| Binance Copy Trading | Mirror top performers' strategies |
| opBNB Scaling Expert | L2 gas optimization |
| Greenfield Storage | Decentralized storage on BNB Greenfield |
| Thena DEX Expert | ve(3,3) DEX trading on Thena |
| + 26 more... | Full ecosystem coverage |
DeFi Agents (42) β Click to expand
| Category | Count | Examples |
|---|---|---|
| Portfolio Management | 8 | Tracking, rebalancing, tax optimization |
| Trading Automation | 7 | Grid trading, DCA, arbitrage, signals |
| Yield Optimization | 6 | Auto-compounding, IL protection |
| Risk & Security | 5 | Auditing, rug detection |
| Market Intelligence | 5 | Sentiment, whale tracking |
| DeFi Protocols | 6 | Lending, DEX, derivatives |
| Infrastructure | 5 | Bridge, gas, RPC, indexing |
π Full guide: Agents Documentation
Model Context Protocol servers that give AI assistants direct blockchain access.
| Server | Tools | What It Does |
|---|---|---|
| BNB Chain MCP | 466+ | BSC, opBNB, Greenfield β swaps, transfers, contracts |
| Binance MCP | 554+ | Spot, futures, margin trading on Binance.com |
| Binance US MCP | β | US regulatory-compliant Binance access |
| Universal Crypto MCP | 59+ | Multi-network, cross-chain DeFi |
| Agenti | β | EVM + Solana, AI-to-AI payments (x402) |
| UCAI | Dynamic | Turn any smart contract ABI into an MCP server |
# One-command ABI-to-MCP conversion
ucai generate --abi ./Contract.json --chain bsc --output ./my-serverπ Full guide: MCP Servers Documentation
| Component | Sources | Features |
|---|---|---|
| Crypto Market Data | CoinGecko, DeFiLlama, Fear & Greed | Zero-dependency, Edge Runtime compatible |
| Crypto News | 200+ sources | 150+ endpoints, sentiment analysis, MCP server |
// Quick example
const btc = await CoinGecko.getPrice('bitcoin');
const fear = await FearAndGreed.getIndex();
console.log(`BTC: $${btc.usd} | Sentiment: ${fear.classification}`);π Full guide: Market Data Documentation
Dust Sweeper β Scan 8 chains for tiny token balances, batch-swap them into stablecoins.
bun run scan --wallet 0xYourAddress --chain bsc # Preview (safe)
bun run sweep --wallet 0xYourAddress --target USDC # Executeπ Full guide: DeFi Tools Documentation
Ethereum Wallet Toolkit β Offline-capable, BSC-compatible wallet operations.
- HD wallet generation (BIP-39/44)
- Vanity address generation
- Message signing (EIP-191, EIP-712)
- Transaction signing (legacy + EIP-1559)
- Keystore V3 import/export
π Full guide: Wallets Documentation
| Standard | Description |
|---|---|
| ERC-8004 | On-chain AI agent discovery, reputation, and trust protocol |
| W3AG | Web3 Accessibility Guidelines β making DeFi accessible to all |
π Full guide: Standards Documentation
| Network | Type | Status |
|---|---|---|
| BNB Smart Chain (BSC) | L1 | β |
| opBNB | L2 | β |
| BNB Greenfield | Storage | β |
| Category | Count | Source |
|---|---|---|
| BNB Chain + EVM on-chain tools | 466+ | bnbchain-mcp |
| Binance exchange tools | 554+ | binance-mcp |
| Cross-chain DeFi tools | 59+ | universal-crypto-mcp |
| EVM chain tools | 58+ | agenti |
| ABI-to-MCP generation | Dynamic | ucai |
| Market data endpoints | 150+ | crypto-news + crypto-market-data |
| Wallet operations | 20+ | ethereum-wallet-toolkit |
| Total | 1,100+ |
bun install # Install dependencies
bun run build # Build agent index
bun run format # Format agent JSONs
bun run lint # Lint TypeScript
bun run test # Run tests
bun run type-check # Type checkingcp agents/bnb-chain-agents/agent-template.json agents/bnb-chain-agents/my-agent.json
# Edit the file, then:
bun run buildπ Full guide: Creating Agents
| Guide | For | Description |
|---|---|---|
| What Is This? | Everyone | Simple explanation, no jargon |
| Glossary | Everyone | terms explained in plain English |
| Getting Started | Beginners | Step-by-step setup guide |
| Architecture | Developers | System design & data flows |
| Agents | Users | Complete agent catalog |
| MCP Servers | Developers | Server setup & configuration |
| Market Data | Developers | Price feeds & news APIs |
| DeFi Tools | Users | Dust sweeping & utilities |
| Wallets | Users | Wallet generation & signing |
| Standards | Researchers | ERC-8004 & W3AG specs |
| Examples | Everyone | Real-world usage patterns |
| FAQ | Everyone | Common questions |
| Troubleshooting | Everyone | Problem solving |
| Awesome List | Everyone | Curated resources |
Contributions are welcome! Whether it's a new agent, a bug fix, documentation improvement, or a new MCP server.
- Fork the repo
- Create your branch:
git checkout -b feat/my-improvement - Commit:
git commit -m "β¨ feat: add amazing feature" - Push:
git push origin feat/my-improvement - Open a Pull Request
π Full guide: CONTRIBUTING.md
MIT Β© nirholas
Built with πΆ for BNB Chain
78 agents Β· 6 MCP servers Β· 1,100+ tools Β· 30+ languages
β Found this useful? Star the repo! β
It helps others discover this project and keeps development active