Developer tools for AI crypto agents π οΈ Build apps with DeFi trading, DEX swaps, smart contract deployment, token operations, staking, bridging, wallet automation, honeypot detection, security analysis, price oracles, market data & protocol analytics on BSC and opBNB
βββββββ ββββ ββββββββββ ββββββββββ βββ ββββββ βββββββ βββ
βββββββββββββ βββββββββββ βββββββββββ βββββββββββββββββββ βββ
ββββββββββββββ βββββββββββ βββ βββββββββββββββββββββββββ βββ
ββββββββββββββββββββββββββ βββ βββββββββββββββββββββββββββββ
βββββββββββ ββββββββββββββ βββββββββββ ββββββ βββββββββ ββββββ
βββββββ βββ ββββββββββββ ββββββββββ ββββββ βββββββββ βββββ
ββββ ββββ ββββββββββββββ βββββββββββββββββββββββ βββ ββββββββββββββββββ
βββββ βββββββββββββββββββββ βββββββββββββββββββββββββββ βββββββββββββββββββ
ββββββββββββββ ββββββββ ββββββββββββββ βββββββββββ βββββββββ ββββββββ
ββββββββββββββ βββββββ ββββββββββββββ ββββββββββββ ββββββββββ ββββββββ
βββ βββ ββββββββββββββ βββββββββββββββββββ βββ βββββββ βββββββββββ βββ
βββ βββ ββββββββββ βββββββββββββββββββ βββ βββββ βββββββββββ βββ
BNB Chain MCP Server
The most comprehensive Model Context Protocol server for BNB Chain & EVM blockchains
Enable AI agents to interact with BNB Chain, opBNB, and other EVM networks through natural language
β If you find this useful, please star the repo! It helps others discover this project.
π Documentation β’ π Quick Start β’ π οΈ Features β’ π Roadmap β’ π€ Contributing
π Table of Contents
- What is BNB Chain MCP?
- Quick Start
- Features Overview
- Supported Networks
- Installation
- Configuration
- Data Sources
- Example Conversations
- Architecture
- Roadmap
- Related MCP Servers
- Troubleshooting
- Contributing
- License
π What is BNB Chain MCP?
BNB Chain MCP is a Model Context Protocol (MCP) server optimized for BNB Chain and opBNB, while also supporting other EVM-compatible blockchains. It enables AI assistants like Claude, ChatGPT, and Cursor to interact with blockchain networks through natural language.
Why BNB Chain MCP?
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β User: "What's the current price of ETH and show me the best DEX pools" β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β AI Assistant (Claude/ChatGPT) β β
β β β β
β β "Let me check that for you..." β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β BNB Chain MCP Server β β
β β β β
β β ββββββββββββ ββββββββββββ ββββββββββββ β β
β β βCoinGecko β βGeckoTerm β βDefiLlama β ... β β
β β ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ β β
β ββββββββββΌββββββββββββββΌββββββββββββββΌβββββββββββββββββββ β
β β β β β
β βΌ βΌ βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Blockchain Networks β β
β β BNB Chain β Ethereum β Arbitrum β Polygon β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Key Benefits
| Benefit | Description | |---------|-------------| | Natural Language | Ask questions in plain English, get blockchain data instantly | | Multi-Chain | One server supports 10+ EVM networks simultaneously | | Read + Write | Query data or execute transactions (with wallet) | | Security Built-In | GoPlus integration for token/contract safety checks | | Rich Data | Prices, DEX pools, TVL, social sentiment, news & more | | AI-Native | Built specifically for LLMs with structured responses |
Use Cases
π Research & Analysis
- Check token prices and historical data
- Analyze DEX liquidity pools
- Monitor protocol TVL and metrics
- Research new tokens before investing
- Track whale wallets and movements
πΉ Trading & DeFi
- Get swap quotes across DEX aggregators
- Find best yield farming opportunities
- Monitor lending rates on Aave/Compound
- Execute token swaps and transfers
- Bridge tokens across chains
π‘οΈ Security & Compliance
- Detect honeypot tokens
- Check for rug pull risks
- Verify smart contract safety
- Screen wallet addresses
- Check token holder distribution
π¨βπ» Development
- Deploy and verify smart contracts
- Query contract state and events
- Test transactions before execution
- Manage multi-sig operations
- Debug failed transactions
DeFi tools in action: swap quotes, TVL tracking, and more
π Quick Start
Get up and running in under 60 seconds!
Option 1: Claude Desktop (Recommended)
Add to your claude_desktop_config.json:
{
"mcpServers": {
"bnb-chain-mcp": {
"command": "npx",
"args": ["-y", "@nirholas/bnb-chain-mcp@latest"]
}
}
}
π Config file locations
| OS | Path |
|----|------|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/claude/claude_desktop_config.json |
Option 2: Cursor / VS Code
Add to your MCP settings:
{
"mcpServers": {
"bnb-chain-mcp": {
"command": "npx",
"args": ["-y", "@nirholas/bnb-chain-mcp@latest"]
}
}
}
Option 3: ChatGPT Developer Mode
- Enable Developer Mode in ChatGPT settings
- Start the HTTP server:
npx @nirholas/bnb-chain-mcp@latest --http - In ChatGPT Settings β Apps, click Create app
- Enter your server URL:
http://localhost:3001/mcp - Select the app in conversations via Developer mode menu
Option 4: npx Instant Start
# stdio mode (Claude, Cursor)
npx @nirholas/bnb-chain-mcp@latest
# HTTP mode (ChatGPT Developer Mode)
npx @nirholas/bnb-chain-mcp@latest --http
# SSE mode (legacy clients)
npx @nirholas/bnb-chain-mcp@latest --sse
π οΈ Features Overview
Feature Matrix
| Category | Features | Status | |----------|----------|--------| | Swap/DEX | Token swaps via 1inch, 0x, ParaSwap | β | | Bridge | Cross-chain transfers via LayerZero, Stargate | β | | Gas | Gas prices across chains, EIP-1559 suggestions | β | | Multicall | Batch read/write operations | β | | Events/Logs | Query historical events, decode logs | β | | Security | Rug pull detection, honeypot check, GoPlus integration | β | | Staking | Liquid staking (Lido), LP farming | β | | Signatures | Sign messages, verify signatures, EIP-712 | β | | Lending | Aave/Compound positions, borrow rates | β | | Price Feeds | Historical prices, TWAP, oracle aggregation | β | | Portfolio | Track holdings across chains | β | | Governance | Snapshot votes, on-chain proposals | β | | Deployment | Deploy contracts, CREATE2, upgradeable proxies | β | | MEV Protection | Flashbots Protect, private transactions | β | | ENS/Domains | Register, transfer, renew, set records | β | | Market Data | CoinGecko prices, OHLCV, trending | β | | DeFi Analytics | DefiLlama TVL, yields, fees, protocols | β | | Social Sentiment | LunarCrush metrics, influencers, trending | β | | DEX Analytics | GeckoTerminal pools, trades, OHLCV | β |
Tool Categories
π Core Blockchain (45+ tools)
| Tool | Description |
|------|-------------|
| get_chain_info | Get chain ID, block number, gas price |
| get_block | Get block by number or hash |
| get_transaction | Get transaction details and receipt |
| send_transaction | Send native token transfer |
| estimate_gas | Estimate gas for transaction |
| get_balance | Get native/token balance |
| call_contract | Call view/pure contract functions |
| ... | See full list β |
π° Token Operations (30+ tools)
| Tool | Description |
|------|-------------|
| get_token_info | Get name, symbol, decimals, supply |
| get_token_balance | Get token balance for address |
| transfer_token | Transfer ERC-20 tokens |
| approve_token | Approve spending allowance |
| get_nft_metadata | Get NFT metadata and traits |
| transfer_nft | Transfer ERC-721 NFT |
| ... | See full list β |
π¦ DeFi (50+ tools)
| Tool | Description |
|------|-------------|
| get_swap_quote | Get swap quote from DEX aggregators |
| execute_swap | Execute token swap |
| add_liquidity | Add liquidity to DEX pools |
| get_lending_rates | Get Aave/Compound rates |
| supply_to_lending | Supply assets to lending protocol |
| get_farming_apy | Get yield farming APY |
| ... | See full list β |
π Security (15+ tools)
| Tool | Description |
|------|-------------|
| check_token_security | GoPlus token security analysis |
| detect_honeypot | Check if token is honeypot |
| check_rug_pull | Assess rug pull risk |
| get_holder_distribution | Get top holder breakdown |
| check_contract_verified | Verify contract source |
| screen_address | Check address risk score |
| ... | See full list β |
π Market Data (25+ tools)
| Tool | Description |
|------|-------------|
| get_price | Get current token price |
| get_price_history | Get historical OHLCV data |
| get_trending_coins | Get trending tokens |
| get_tvl | Get protocol TVL from DefiLlama |
| get_dex_pools | Get DEX pool data |
| get_social_metrics | Get LunarCrush sentiment |
| ... | See full list β |
π Supported Networks
| Network | Chain ID | Native Token | Status | |---------|----------|--------------|--------| | BNB Smart Chain | 56 | BNB | β Full Support | | opBNB | 204 | BNB | β Full Support | | Arbitrum One | 42161 | ETH | β Full Support | | Ethereum | 1 | ETH | β Full Support | | Polygon | 137 | MATIC | β Full Support | | Base | 8453 | ETH | β Full Support | | Optimism | 10 | ETH | β Full Support | | Avalanche C-Chain | 43114 | AVAX | β Full Support | | Fantom | 250 | FTM | β Full Support | | Gnosis | 100 | xDAI | β Full Support | | BSC Testnet | 97 | tBNB | β Testnet | | Sepolia | 11155111 | SepoliaETH | β Testnet | | Goerli | 5 | GoerliETH | β Testnet |
Adding Custom Networks
{
"mcpServers": {
"bnb-chain-mcp": {
"command": "npx",
"args": ["-y", "@nirholas/bnb-chain-mcp@latest"],
"env": {
"CUSTOM_RPC_56": "https://your-bnb-rpc.com",
"CUSTOM_RPC_1": "https://your-eth-rpc.com"
}
}
}
}
π¦ Installation
Server Modes
| Mode | Command | Use Case |
|------|---------|----------|
| stdio | npx @nirholas/bnb-chain-mcp | Claude Desktop, Cursor |
| HTTP | npx @nirholas/bnb-chain-mcp --http | ChatGPT Developer Mode |
| SSE | npx @nirholas/bnb-chain-mcp --sse | Legacy HTTP clients |
From npm (Recommended)
# Run directly with npx (no install required)
npx @nirholas/bnb-chain-mcp@latest
# Or install globally
npm install -g @nirholas/bnb-chain-mcp
# Then run
bnb-chain-mcp
From Source
# Clone
git clone https://github.com/nirholas/bnb-chain-mcp
cd bnb-chain-mcp
# Install dependencies
bun install
# Build
bun run build
# Run dev server (stdio - Claude)
bun dev
# Run dev server (HTTP - ChatGPT)
bun dev:http
# Run dev server (SSE - legacy)
bun dev:sse
Docker
# Build
docker build -t bnb-chain-mcp .
# Run stdio mode
docker run -it bnb-chain-mcp
# Run HTTP mode
docker run -p 3001:3001 bnb-chain-mcp --http
βοΈ Configuration
Environment Variables
| Variable | Description | Default | Required |
|----------|-------------|---------|----------|
| PRIVATE_KEY | Wallet private key for transactions | - | No (read-only without) |
| COINGECKO_API_KEY | CoinGecko Pro API key | - | No |
| COINSTATS_API_KEY | CoinStats API key | - | No |
| LUNARCRUSH_API_KEY | LunarCrush API key | - | No |
| CRYPTOPANIC_API_KEY | CryptoPanic news API key | - | No |
| CUSTOM_RPC_<CHAIN_ID> | Custom RPC for specific chain | - | No |
| PORT | HTTP server port | 3001 | No |
| LOG_LEVEL | Logging level | info | No |
Full Configuration Example
{
"mcpServers": {
"bnb-chain-mcp": {
"command": "npx",
"args": ["-y", "@nirholas/bnb-chain-mcp@latest"],
"env": {
"PRIVATE_KEY": "0x...",
"COINGECKO_API_KEY": "CG-xxx",
"LUNARCRUSH_API_KEY": "xxx",
"CUSTOM_RPC_56": "https://bsc-rpc.publicnode.com",
"CUSTOM_RPC_1": "https://eth-rpc.publicnode.com",
"LOG_LEVEL": "debug"
}
}
}
}
Claude Desktop Configuration
macOS
# Open config file
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows
# Open config file
notepad %APPDATA%\Claude\claude_desktop_config.json
Linux
# Open config file
nano ~/.config/claude/claude_desktop_config.json
π Data Sources
This MCP server integrates with the following APIs:
| Provider | Data Type | API Key | Rate Limits | |----------|-----------|---------|-------------| | CoinGecko | Market data, prices, OHLCV | Optional | 10-50 req/min | | CoinStats | Portfolio, prices, wallets | Required | Varies | | DefiLlama | TVL, yields, fees, protocols | No | Generous | | LunarCrush | Social sentiment, influencers | Required | Varies | | GoPlus | Security analysis, honeypot | No | Generous | | GeckoTerminal | DEX pools, trades, OHLCV | No | Generous | | DexPaprika | DEX analytics, pools | No | Generous | | CryptoPanic | Crypto news | Required | Varies | | Alternative.me | Fear & Greed Index | No | Generous |
π¬ Example Conversations
Price Queries
User: "What's the current price of BNB?"
AI: Uses
get_pricetool β "BNB is currently trading at $XXX.XX, up 2.5% in the last 24 hours."
Security Checks
User: "Is this token safe? 0x..."
AI: Uses
check_token_securityanddetect_honeypotβ "β οΈ Warning: This token has several red flags..."
DEX Analysis
User: "Show me the best BNB liquidity pools"
AI: Uses
get_dex_poolsβ "Here are the top pools on BNB Chain by TVL..."
Multi-Chain Portfolio
User: "Check my wallet across all chains: 0x..."
AI: Uses
get_portfolioβ "Your total portfolio value is $X across 5 chains..."
DeFi Research
User: "What are the best yield farming opportunities on BNB Chain?"
AI: Uses
get_yield_farmsandget_tvlβ "Here are the top yield opportunities..."
ποΈ Architecture
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β BNB Chain MCP Server β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β stdio β β HTTP β β SSE β Transport Layer β
β β (Claude) β β (ChatGPT) β β (Legacy) β β
β ββββββββ¬ββββββββ ββββββββ¬ββββββββ ββββββββ¬ββββββββ β
β β β β β
β βββββββββββββββββββΌββββββββββββββββββ β
β β β
β βΌ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β MCP Protocol Handler β β
β β Tools Registration | Resource Management | Prompt Templates β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βββββββββββββββββββΌββββββββββββββββββ β
β βΌ βΌ βΌ β
β ββββββββββββββ ββββββββββββββ ββββββββββββββ β
β β Blockchain β β Market β β Security β Tool Categories β
β β Tools β β Data β β Tools β β
β βββββββ¬βββββββ βββββββ¬βββββββ βββββββ¬βββββββ β
β β β β β
β βΌ βΌ βΌ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Provider Integrations β β
β β viem | CoinGecko | DefiLlama | GoPlus | LunarCrush | GeckoTerminal β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β EVM Networks β β
β β BNB Chain | Ethereum | Arbitrum | Polygon | Base | Optimism | ... β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Module Organization
src/
βββ index.ts # Entry point
βββ server/
β βββ stdio.ts # stdio transport
β βββ http.ts # HTTP transport
β βββ sse.ts # SSE transport
βββ tools/
β βββ blockchain/ # Core chain operations
β βββ tokens/ # Token operations
β βββ defi/ # DeFi protocols
β βββ security/ # Security checks
β βββ market/ # Market data
β βββ social/ # Social sentiment
βββ providers/
β βββ coingecko.ts # CoinGecko API
β βββ defillama.ts # DefiLlama API
β βββ goplus.ts # GoPlus Security
β βββ ...
βββ utils/
βββ chains.ts # Chain configurations
βββ abi.ts # Common ABIs
βββ format.ts # Formatters
π Security
Security Model
| Feature | Description |
|---------|-------------|
| Read-Only Mode | Without PRIVATE_KEY, server only reads blockchain state |
| No Key Storage | Private keys are never stored, only used in memory |
| Input Validation | All inputs validated with Zod schemas |
| Rate Limiting | Built-in rate limiting prevents API abuse |
| Verified Sources | Only uses reputable data providers |
Best Practices
- β οΈ Never share your
PRIVATE_KEYin public configs - β Use environment variables or secrets management
- β Use read-only mode when possible
- β Always verify token safety before interacting
- β Review transaction simulations before executing
β Troubleshooting
Server won't start
- Check Node.js version (requires 18+):
node --version - Clear npx cache:
npx clear-npx-cache - Try installing globally:
npm install -g @nirholas/bnb-chain-mcp
Claude Desktop doesn't see the server
- Verify config file location and JSON syntax
- Restart Claude Desktop completely
- Check logs:
- macOS:
~/Library/Logs/Claude/mcp*.log - Windows:
%APPDATA%\Claude\logs\mcp*.log
- macOS:
RPC errors / Rate limiting
- Use a dedicated RPC provider (Alchemy, QuickNode, etc.)
- Configure custom RPC:
"env": { "CUSTOM_RPC_56": "https://your-dedicated-rpc.com" }
API key errors
- Verify API key is correct (no extra spaces)
- Check API key has required permissions
- Verify rate limits haven't been exceeded
πΊοΈ Roadmap
A comprehensive roadmap of all crypto/blockchain/DeFi/Web3 features to be implemented.
Legend
- β Implemented
- π§ In Progress
- π Planned
π Core Blockchain Operations
Network & Chain
| Feature | Status | |---------|--------| | Get chain ID, block number, gas price | β | | Get network status/health | β | | Switch networks/chains | β | | Get supported networks list | β | | Get RPC endpoints | β | | Estimate block time | β | | Get chain metadata (name, symbol, explorers) | β | | Get finality status | β | | Get mempool/pending transactions | β | | Get network peers/nodes | β | | Get gas oracle | β |
Blocks
| Feature | Status | |---------|--------| | Get block by number/hash | β | | Get latest block | β | | Get block transactions | β | | Get block receipts | β | | Get uncle blocks | β | | Subscribe to new blocks | π | | Get block rewards | β | | Get block gas used/limit | β | | Get block range | β | | Get blocks by miner | β |
Transactions
| Feature | Status | |---------|--------| | Send transaction | β | | Get transaction by hash | β | | Get transaction receipt | β | | Get transaction status | β | | Estimate gas | β | | Speed up transaction (replace with higher gas) | β | | Cancel transaction | β | | Decode transaction input | β | | Simulate transaction | β | | Get transaction trace | π | | Get internal transactions | π | | Batch transactions | β | | Get pending transactions | β | | Get transaction history by address | β |
Accounts/Wallets
| Feature | Status | |---------|--------| | Get balance (native/token) | β | | Get nonce | β | | Get transaction count | β | | Create wallet | β | | Import wallet (private key/mnemonic) | β | | Export private key | π | | Sign message | β | | Verify signature | β | | Get address from private key | β | | Generate mnemonic | β | | Derive addresses (HD wallet) | β | | Multi-sig wallet operations | π | | Get wallet permissions | π | | Revoke approvals | β | | Account abstraction (ERC-4337) | π | | Social recovery | π | | Hardware wallet integration | π | | Get wallet portfolio | β | | Get token approvals | β |
π° Token Operations
Native Tokens
| Feature | Status | |---------|--------| | Get native balance | β | | Transfer native tokens | β | | Wrap/unwrap native tokens (WETH, WBNB) | β |
ERC-20 (Fungible Tokens)
| Feature | Status | |---------|--------| | Get token info (name, symbol, decimals, total supply) | β | | Get token balance | β | | Transfer tokens | β | | Approve spending | β | | Get allowance | β | | Transfer from (delegated) | β | | Burn tokens | β | | Mint tokens | β | | Get token holders | β | | Get token transfers | β | | Permit (gasless approvals - EIP-2612) | β | | Batch transfers | β | | Token snapshots | π | | Get token supply info | β | | Check/revoke token approval | β |
ERC-721 (NFTs)
| Feature | Status | |---------|--------| | Get NFT metadata | β | | Get NFT owner | β | | Transfer NFT | β | | Approve NFT | β | | Set approval for all | β | | Get NFTs by owner | β | | Get NFT collection info | β | | Mint NFT | π | | Burn NFT | π | | Get NFT transfer history | π | | Get NFT traits/attributes | β | | Get NFT rarity | π | | Verify NFT authenticity | π | | Batch transfer NFTs | β | | Check NFT approval | β | | Revoke NFT approval | β | | Approve for marketplace | β | | Fetch NFT metadata from URI | β |
ERC-1155 (Multi-Token)
| Feature | Status | |---------|--------| | Get token balance (fungible + NFT) | β | | Batch transfers | π | | Batch balance queries | π | | Safe transfer | β | | Get URI | β |
Other Token Standards
| Feature | Status | |---------|--------| | ERC-777 (advanced fungible) | π | | ERC-3525 (semi-fungible) | π | | ERC-4626 (tokenized vaults) | π | | ERC-6551 (token-bound accounts) | π | | ERC-404 (hybrid tokens) | π | | Soulbound tokens (SBTs) | π |
π¦ DeFi - Decentralized Exchanges (DEX)
Swaps
| Feature | Status | |---------|--------| | Get quote/price | β | | Swap exact tokens for tokens | β | | Swap tokens for exact tokens | β | | Multi-hop swaps | β | | Split route swaps | π | | Cross-DEX aggregation | β | | Limit orders | π | | TWAP orders (time-weighted) | π | | Stop-loss orders | π | | Get slippage estimate | β | | Get price impact | β | | MEV protection (private transactions) | π |
DEX Analytics
| Feature | Status | |---------|--------| | Get trending pools | β | | Get new pools | β | | Get top pools by volume | β | | Get pool OHLCV data | β | | Get pool trades | β | | Get token pools | β | | Get DEX list | β | | Search pools cross-chain | β | | Get token price by contract | β | | Get pool transactions | β | | Multi-token price lookup | β |
Liquidity Provision
| Feature | Status | |---------|--------| | Add liquidity | β | | Remove liquidity | β | | Get LP token balance | β | | Get pool reserves | β | | Get pool APY/APR | π | | Get impermanent loss estimate | π | | Concentrated liquidity (Uniswap V3) | π | | Set price range | π | | Collect fees | π | | Rebalance position | π | | Add liquidity with native token | β | | Calculate arbitrage opportunities | β |
AMM Types Support
| Feature | Status | |---------|--------| | Constant product (x*y=k) | β | | Stable swap (Curve) | π | | Concentrated liquidity | π | | Order book hybrid | π | | Virtual AMM (perpetuals) | π |
π¦ DeFi - Lending & Borrowing
Lending
| Feature | Status | |---------|--------| | Supply/deposit assets | β | | Withdraw assets | β | | Get supply APY | β | | Get supplied balance | β | | Get utilization rate | π | | Enable/disable as collateral | π |
Borrowing
| Feature | Status | |---------|--------| | Borrow assets | β | | Repay debt | β | | Get borrow APY | β | | Get borrowed balance | β | | Get health factor | β | | Get liquidation threshold | β | | Get max borrowable amount | π | | Flash loans | β | | Get borrow limit | π | | Get flash loan info | β |
Liquidations
| Feature | Status | |---------|--------| | Liquidate unhealthy positions | π | | Get liquidatable positions | β | | Get liquidation bonus | π | | Partial liquidations | π |
Isolated Markets
| Feature | Status | |---------|--------| | Supply to isolated pool | π | | Borrow from isolated pool | π | | Get isolation mode debt ceiling | π |
π₯© DeFi - Staking
Native Staking
| Feature | Status | |---------|--------| | Stake native tokens | β | | Unstake/withdraw | β | | Claim rewards | β | | Get staking APY | β | | Get validator list | π | | Delegate to validator | π | | Redelegate | π | | Get unbonding period | π |
Liquid Staking
| Feature | Status | |---------|--------| | Stake for liquid staking tokens (stETH, rETH) | β | | Unwrap liquid staking tokens | β | | Get exchange rate | β | | Get staking rewards rate | β |
LP Staking/Farming
| Feature | Status | |---------|--------| | Stake LP tokens | β | | Unstake LP tokens | β | | Claim farming rewards | β | | Get farming APY | β | | Compound rewards | π | | Get pending rewards | β | | Boost rewards (veTokens) | π |
Restaking
| Feature | Status | |---------|--------| | Restake assets (EigenLayer) | π | | Get restaking points | π | | Choose operators | π | | Withdraw from restaking | π |
π DeFi - Derivatives
Perpetual Futures
| Feature | Status | |---------|--------| | Open long/short position | π | | Close position | π | | Add/remove margin | π | | Set leverage | π | | Get funding rate | π | | Get open interest | π | | Get liquidation price | π | | Set stop-loss/take-profit | π | | Get PnL | π | | Partial close | π |
Options
| Feature | Status | |---------|--------| | Buy call/put options | π | | Sell/write options | π | | Exercise options | π | | Get option greeks | π | | Get implied volatility | π | | Get option chain | π | | Spread strategies | π |
Synthetics
| Feature | Status | |---------|--------| | Mint synthetic assets | π | | Burn synthetic assets | π | | Get collateral ratio | π | | Get synthetic price feed | π | | Liquidate synthetic positions | π |
π Cross-Chain & Bridges
Bridging
| Feature | Status | |---------|--------| | Bridge tokens cross-chain | β | | Get bridge quote | β | | Get bridge status | β | | Get supported chains | β | | Get supported tokens | β | | Claim bridged tokens | π | | Get bridge fees | β | | Get estimated time | β |
Cross-Chain Messaging
| Feature | Status | |---------|--------| | Send cross-chain message | π | | Receive cross-chain message | π | | LayerZero operations | π | | Axelar operations | π | | Wormhole operations | π | | CCIP (Chainlink) | π | | Hyperlane operations | π |
Atomic Swaps
| Feature | Status | |---------|--------| | Initiate atomic swap | π | | Complete atomic swap | π | | Refund atomic swap | π |
π³οΈ Governance
Voting
| Feature | Status | |---------|--------| | Create proposal | β | | Vote on proposal | β | | Delegate votes | β | | Get voting power | β | | Get proposal state | β | | Queue proposal | β | | Execute proposal | β | | Cancel proposal | β | | Get vote receipt | β |
Token Locking
| Feature | Status | |---------|--------| | Lock tokens for voting (veTokens) | π | | Extend lock period | π | | Increase locked amount | π | | Withdraw unlocked tokens | π | | Get lock info | π |
Snapshot (Off-chain)
| Feature | Status | |---------|--------| | Create space | π | | Create off-chain proposal | π | | Vote off-chain | π | | Get snapshot results | π |
π Security & Analysis
Contract Analysis
| Feature | Status | |---------|--------| | Verify contract source | β | | Get contract ABI | β | | Check if contract is proxy | β | | Get implementation address | β | | Detect honeypots | β | | Check for rug pull risks | β | | GoPlus token security check | β | | GoPlus rug pull detection | β | | Audit score | π | | Get contract creator | β | | Get contract age | β | | Detect malicious functions | β |
Token Security
| Feature | Status | |---------|--------| | Check token safety | β | | Get holder distribution | β | | Check if mintable | β | | Check if pausable | β | | Check for hidden fees | β | | Check liquidity locked | β | | Get top holders | β | | Check ownership renounced | β | | GoPlus NFT security | β | | GoPlus approval security | β |
Wallet Security
| Feature | Status | |---------|--------| | Get approval list | β | | Revoke approvals | β | | Check for drainers | β | | Simulate transaction safety | β | | Get wallet risk score | π | | GoPlus address security | β | | GoPlus dApp phishing check | β | | GoPlus signature decode | β |
π Price & Market Data
Price Feeds
| Feature | Status | |---------|--------| | Get current price | β | | Get historical prices | β | | Get OHLCV data | β | | Get price from DEX | β | | Get price from oracle (Chainlink, Pyth) | β | | Get TWAP price | β | | Get price across exchanges | β | | Get volume | β | | Get market cap | β | | Get trending coins | β | | Get token by contract address | β | | Get exchange rates | β | | Get coin categories | β | | Get derivatives data | β | | Get company BTC/ETH holdings | β |
Analytics
| Feature | Status | |---------|--------| | Get TVL (Total Value Locked) | β | | Get protocol metrics | β | | Get yield farming APYs | β | | Get gas tracker | β | | Get whale transactions | π | | Get token flow analysis | π | | Get DEX volume | β | | Get lending metrics | π | | Get DeFi fees & revenue | β | | Get stablecoin data | β | | Get bridge volumes | β | | Get liquidation data | β | | Get DeFi hacks history | β | | Get perpetuals data | β |
π Identity & Domains
ENS (Ethereum Name Service)
| Feature | Status | |---------|--------| | Register domain | β | | Resolve name to address | β | | Reverse resolve address to name | β | | Set primary name | π | | Set records (text, address, content hash) | β | | Transfer domain | β | | Renew domain | β | | Get expiry date | π | | Set subdomains | β |
Other Name Services
| Feature | Status | |---------|--------| | Unstoppable Domains | π | | Space ID (.bnb) | π | | Bonfida (.sol) | π | | ANS (.avax) | π |
DIDs & Verifiable Credentials
| Feature | Status | |---------|--------| | Create DID | π | | Resolve DID | π | | Issue verifiable credential | π | | Verify credential | π | | Revoke credential | π |
πΌοΈ NFT & Metaverse
NFT Marketplace
| Feature | Status | |---------|--------| | List NFT for sale | π | | Buy NFT | π | | Make offer | π | | Accept offer | π | | Cancel listing | π | | Auction NFT | π | | Bid on auction | π | | Get floor price | π | | Get collection stats | π |
NFT Creation
| Feature | Status | |---------|--------| | Deploy NFT collection | π | | Mint NFTs | π | | Set royalties | π | | Set metadata | π | | Reveal NFTs | π | | Whitelist management | π | | Airdrop NFTs | π |
NFT Finance
| Feature | Status | |---------|--------| | NFT collateralized loans | π | | NFT fractionalization | π | | NFT renting | π | | NFT staking | π |
Metaverse
| Feature | Status | |---------|--------| | Buy virtual land | π | | Sell virtual land | π | | Build on land | π | | Transfer assets between metaverses | π |
π Events & Subscriptions
Event Listening
| Feature | Status | |---------|--------| | Subscribe to contract events | π | | Subscribe to pending transactions | π | | Subscribe to new blocks | π | | Subscribe to logs | π | | Filter events by topic | β | | Get historical events | β | | Decode event logs | β |
Webhooks & Notifications
| Feature | Status | |---------|--------| | Set up webhook for events | π | | Get transaction notifications | π | | Get price alerts | π | | Get whale alerts | π | | Get governance notifications | π |
π Smart Contract Interaction
Read Operations
| Feature | Status | |---------|--------| | Call view/pure functions | β | | Get storage at slot | β | | Get contract bytecode | β | | Multicall (batch reads) | β | | Static call simulation | β |
Write Operations
| Feature | Status | |---------|--------| | Send transaction to contract | β | | Encode function call | β | | Decode function result | β | | Estimate gas for call | β | | Batch transactions | β |
Contract Deployment
| Feature | Status | |---------|--------| | Deploy contract | β | | Deploy with CREATE2 | β | | Deploy proxy contract | β | | Upgrade proxy | β | | Verify on explorer | β |
π€ Advanced Features
MEV & Flashbots
| Feature | Status | |---------|--------| | Submit private transaction | β | | Submit bundle | β | | Get MEV opportunities | β | | Backrun protection | β | | Frontrun protection | β | | Sandwich protection | β |
Account Abstraction (ERC-4337)
| Feature | Status | |---------|--------| | Create smart account | π | | Execute user operation | π | | Batch operations | π | | Sponsor gas (Paymaster) | π | | Session keys | π | | Social recovery | π |
Intents & Solvers
| Feature | Status | |---------|--------| | Submit intent | π | | Get solver quotes | π | | Execute via solver | π |
Oracles
| Feature | Status | |---------|--------| | Get Chainlink price | β | | Get Pyth price | π | | Get Band Protocol price | π | | Get API3 price | π | | Request randomness (VRF) | π | | Request external data | π |
π οΈ Utility Functions
Gas
| Feature | Status | |---------|--------| | Get gas price | β | | Get priority fee | β | | Get base fee | β | | Get gas history | β | | Estimate gas for transaction | β | | Get EIP-1559 fees | β |
Encoding/Decoding
| Feature | Status | |---------|--------| | ABI encode | β | | ABI decode | β | | Keccak256 hash | β | | Pack/unpack data | β | | Sign typed data (EIP-712) | β |
Address Utils
| Feature | Status | |---------|--------| | Validate address | β | | Checksum address | β | | Get address from ENS | β | | Check if contract | β | | Get contract type | π |
π° Data & Information
News & Social
| Feature | Status | |---------|--------| | Get crypto news | β | | Search crypto news | β | | Get DeFi news | β | | Get Bitcoin news | β | | Get breaking news | β | | Get social sentiment | β | | Get influencer rankings | β | | Get trending topics | β | | Get coin social metrics | β | | Get social feed | β | | Get market sentiment index | β | | Get Galaxy Score | β | | Get AltRank | β | | Get Twitter mentions | π | | Get Discord activity | π | | Get GitHub activity | π |
On-Chain Data
| Feature | Status | |---------|--------| | Get token holders | π | | Get whale wallets | π | | Get smart money movements | π | | Get protocol users | π | | Get daily active addresses | π | | Get network hash rate | π |
ποΈ Institutional & Compliance
KYC/AML
| Feature | Status | |---------|--------| | Wallet screening | π | | Transaction monitoring | π | | Risk scoring | π | | Sanctions checking | π |
Custody
| Feature | Status | |---------|--------| | Multi-sig operations | π | | Cold storage | π | | Hot wallet management | π | | Policy enforcement | π |
Reporting
| Feature | Status | |---------|--------| | Tax reporting | π | | Portfolio tracking | β | | P&L reporting | π | | Transaction history export | π |
Data Sources
This MCP server integrates with the following APIs:
| Provider | Data Type | API Key Required | |----------|-----------|------------------| | CoinGecko | Market data, prices, OHLCV | Optional (free tier) | | CoinStats | Portfolio, prices, wallets | Yes | | DefiLlama | TVL, yields, fees, protocols | No | | LunarCrush | Social sentiment, influencers | Yes | | GoPlus | Security analysis, honeypot detection | No | | GeckoTerminal | DEX pools, trades, OHLCV | No | | DexPaprika | DEX analytics, pools | No | | CryptoPanic | Crypto news | Yes | | Alternative.me | Fear & Greed Index | No |
π Related MCP Servers
Additional specialized MCP servers in this workspace:
| Server | Description | Tools | |--------|-------------|-------| | binance-mcp-server | Binance.com global exchange API | 156+ tools | | binance-us-mcp-server | Binance.US exchange API | 71+ tools |
Binance.com Server
Full Binance global API coverage including:
- Spot trading, wallet, staking, mining
- Convert, Simple Earn, Algo Trading (TWAP/VP)
- NFT, Pay, Copy Trading, Dual Investment
- VIP Loans, C2C/P2P, Fiat
{
"mcpServers": {
"binance": {
"command": "npx",
"args": ["ts-node", "binance-mcp-server/src/index.ts"],
"env": {
"BINANCE_API_KEY": "your_key",
"BINANCE_API_SECRET": "your_secret"
}
}
}
}
Binance.US Server
US-regulated exchange with:
- Market data, spot trading, wallet
- Staking, OTC, sub-accounts
- Custodial solutions (institutional)
{
"mcpServers": {
"binance-us": {
"command": "node",
"args": ["binance-us-mcp-server/build/index.js"],
"env": {
"BINANCE_US_API_KEY": "your_key",
"BINANCE_US_API_SECRET": "your_secret"
}
}
}
}
π€ Contributing
We welcome contributions! Here's how to get started:
Development Setup
# Fork and clone
git clone https://github.com/YOUR_USERNAME/bnb-chain-mcp
cd bnb-chain-mcp
# Install dependencies
bun install
# Create feature branch
git checkout -b feature/amazing-feature
# Make changes and test
bun dev
bun test
# Commit and push
git commit -m "feat: add amazing feature"
git push origin feature/amazing-feature
# Open Pull Request
Contribution Guidelines
- π Follow existing code style
- β Add tests for new features
- π Update documentation
- π Run linting before committing
Adding New Tools
- Create tool file in
src/tools/<category>/ - Export tool definition with Zod schema
- Add to tool index
- Document in README
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Credits
Built by nich (github.com/nirholas) and the Sperax Team (github.com/speraxos) (github.com/sperax)
Special Thanks
- Model Context Protocol team
- viem for excellent EVM tooling
- All the amazing Web3 API providers