Logo BNB Chain MCP Server

BNB Chain MCP Server

Cộng đồng
nirholas

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

Nhà phát hànhnirholas
Kho mãbnbchain-mcp
Ngôn ngữTypeScript
Bản fork
5
Sao
34
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    BNB Chain MCP Server cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    34 sao và 5 bản fork từ kho mã được liên kết.


                                                                                      
    ██████╗ ███╗   ██╗██████╗      ██████╗██╗  ██╗ █████╗ ██╗███╗   ██╗              
    ██╔══██╗████╗  ██║██╔══██╗    ██╔════╝██║  ██║██╔══██╗██║████╗  ██║              
    ██████╔╝██╔██╗ ██║██████╔╝    ██║     ███████║███████║██║██╔██╗ ██║              
    ██╔══██╗██║╚██╗██║██╔══██╗    ██║     ██╔══██║██╔══██║██║██║╚██╗██║              
    ██████╔╝██║ ╚████║██████╔╝    ╚██████╗██║  ██║██║  ██║██║██║ ╚████║              
    ╚═════╝ ╚═╝  ╚═══╝╚═════╝      ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝              
                                                                                      
              ███╗   ███╗ ██████╗██████╗     ███████╗███████╗██████╗ ██╗   ██╗███████╗██████╗  
              ████╗ ████║██╔════╝██╔══██╗    ██╔════╝██╔════╝██╔══██╗██║   ██║██╔════╝██╔══██╗ 
              ██╔████╔██║██║     ██████╔╝    ███████╗█████╗  ██████╔╝██║   ██║█████╗  ██████╔╝ 
              ██║╚██╔╝██║██║     ██╔═══╝     ╚════██║██╔══╝  ██╔══██╗╚██╗ ██╔╝██╔══╝  ██╔══██╗ 
              ██║ ╚═╝ ██║╚██████╗██║         ███████║███████╗██║  ██║ ╚████╔╝ ███████╗██║  ██║ 
              ╚═╝     ╚═╝ ╚═════╝╚═╝         ╚══════╝╚══════╝╚═╝  ╚═╝  ╚═══╝  ╚══════╝╚═╝  ╚═╝ 
                                                                                       

BNB Chain opBNB

⭐ 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?

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

BenefitDescription
Natural LanguageAsk questions in plain English, get blockchain data instantly
Multi-ChainOne server supports 10+ EVM networks simultaneously
Read + WriteQuery data or execute transactions (with wallet)
Security Built-InGoPlus integration for token/contract safety checks
Rich DataPrices, DEX pools, TVL, social sentiment, news & more
AI-NativeBuilt specifically for LLMs with structured responses

Use Cases

  • 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
  • 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
  • Detect honeypot tokens
  • Check for rug pull risks
  • Verify smart contract safety
  • Screen wallet addresses
  • Check token holder distribution
  • Deploy and verify smart contracts
  • Query contract state and events
  • Test transactions before execution
  • Manage multi-sig operations
  • Debug failed transactions

🚀 Quick Start

Get up and running in under 60 seconds!

Option 1: Claude Desktop (Recommended)

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "bnb-chain-mcp": {
      "command": "npx",
      "args": ["-y", "@nirholas/bnbchain-mcp@latest"]
    }
  }
}
OSPath
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:

json
{
  "mcpServers": {
    "bnb-chain-mcp": {
      "command": "npx",
      "args": ["-y", "@nirholas/bnbchain-mcp@latest"]
    }
  }
}

Option 3: ChatGPT Developer Mode

  1. Enable Developer Mode in ChatGPT settings
  2. Start the HTTP server:
    bash
    npx @nirholas/bnbchain-mcp@latest --http
  3. In ChatGPT Settings → Apps, click Create app
  4. Enter your server URL: http://localhost:3001/mcp
  5. Select the app in conversations via Developer mode menu

📖 Full ChatGPT Setup Guide

Option 4: npx Instant Start

bash
# stdio mode (Claude, Cursor)
npx @nirholas/bnbchain-mcp@latest

# HTTP mode (ChatGPT Developer Mode)
npx @nirholas/bnbchain-mcp@latest --http

# SSE mode (legacy clients)
npx @nirholas/bnbchain-mcp@latest --sse

🛠️ Features Overview

Feature Matrix

CategoryFeaturesStatus
Swap/DEXToken swaps via 1inch, 0x, ParaSwap✅
BridgeCross-chain transfers via LayerZero, Stargate✅
GasGas prices across chains, EIP-1559 suggestions✅
MulticallBatch read/write operations✅
Events/LogsQuery historical events, decode logs✅
SecurityRug pull detection, honeypot check, GoPlus integration✅
StakingLiquid staking (Lido), LP farming✅
SignaturesSign messages, verify signatures, EIP-712✅
LendingAave/Compound positions, borrow rates✅
Price FeedsHistorical prices, TWAP, oracle aggregation✅
PortfolioTrack holdings across chains✅
GovernanceSnapshot votes, on-chain proposals✅
DeploymentDeploy contracts, CREATE2, upgradeable proxies✅
MEV ProtectionFlashbots Protect, private transactions✅
ENS/DomainsRegister, transfer, renew, set records✅
Market DataCoinGecko prices, OHLCV, trending✅
DeFi AnalyticsDefiLlama TVL, yields, fees, protocols✅
Social SentimentLunarCrush metrics, influencers, trending✅
DEX AnalyticsGeckoTerminal pools, trades, OHLCV✅

Tool Categories

ToolDescription
get_chain_infoGet chain ID, block number, gas price
get_blockGet block by number or hash
get_transactionGet transaction details and receipt
send_transactionSend native token transfer
estimate_gasEstimate gas for transaction
get_balanceGet native/token balance
call_contractCall view/pure contract functions
...See full list →
ToolDescription
get_token_infoGet name, symbol, decimals, supply
get_token_balanceGet token balance for address
transfer_tokenTransfer ERC-20 tokens
approve_tokenApprove spending allowance
get_nft_metadataGet NFT metadata and traits
transfer_nftTransfer ERC-721 NFT
...See full list →
ToolDescription
get_swap_quoteGet swap quote from DEX aggregators
execute_swapExecute token swap
add_liquidityAdd liquidity to DEX pools
get_lending_ratesGet Aave/Compound rates
supply_to_lendingSupply assets to lending protocol
get_farming_apyGet yield farming APY
...See full list →
ToolDescription
check_token_securityGoPlus token security analysis
detect_honeypotCheck if token is honeypot
check_rug_pullAssess rug pull risk
get_holder_distributionGet top holder breakdown
check_contract_verifiedVerify contract source
screen_addressCheck address risk score
...See full list →
ToolDescription
get_priceGet current token price
get_price_historyGet historical OHLCV data
get_trending_coinsGet trending tokens
get_tvlGet protocol TVL from DefiLlama
get_dex_poolsGet DEX pool data
get_social_metricsGet LunarCrush sentiment
...See full list →

🌐 Supported Networks

NetworkChain IDNative TokenStatus
BNB Smart Chain56BNB✅ Full Support
opBNB204BNB✅ Full Support
Arbitrum One42161ETH✅ Full Support
Ethereum1ETH✅ Full Support
Polygon137MATIC✅ Full Support
Base8453ETH✅ Full Support
Optimism10ETH✅ Full Support
Avalanche C-Chain43114AVAX✅ Full Support
Fantom250FTM✅ Full Support
Gnosis100xDAI✅ Full Support
BSC Testnet97tBNB✅ Testnet
Sepolia11155111SepoliaETH✅ Testnet
Goerli5GoerliETH✅ Testnet

Adding Custom Networks

json
{
  "mcpServers": {
    "bnb-chain-mcp": {
      "command": "npx",
      "args": ["-y", "@nirholas/bnbchain-mcp@latest"],
      "env": {
        "CUSTOM_RPC_56": "https://your-bnb-rpc.com",
        "CUSTOM_RPC_1": "https://your-eth-rpc.com"
      }
    }
  }
}

📦 Installation

Server Modes

ModeCommandUse Case
stdionpx @nirholas/bnbchain-mcpClaude Desktop, Cursor
HTTPnpx @nirholas/bnbchain-mcp --httpChatGPT Developer Mode
SSEnpx @nirholas/bnbchain-mcp --sseLegacy HTTP clients

From npm (Recommended)

bash
# Run directly with npx (no install required)
npx @nirholas/bnbchain-mcp@latest

# Or install globally
npm install -g @nirholas/bnbchain-mcp

# Then run
bnbchain-mcp

From Source

bash
# Clone
git clone https://github.com/nirholas/bnbchain-mcp
cd bnbchain-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

bash
# 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

VariableDescriptionDefaultRequired
PRIVATE_KEYWallet private key for transactions-No (read-only without)
COINGECKO_API_KEYCoinGecko Pro API key-No
COINSTATS_API_KEYCoinStats API key-No
LUNARCRUSH_API_KEYLunarCrush API key-No
CRYPTOPANIC_API_KEYCryptoPanic news API key-No
CUSTOM_RPC_<CHAIN_ID>Custom RPC for specific chain-No
PORTHTTP server port3001No
LOG_LEVELLogging levelinfoNo

Full Configuration Example

json
{
  "mcpServers": {
    "bnb-chain-mcp": {
      "command": "npx",
      "args": ["-y", "@nirholas/bnbchain-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

bash
# Open config file
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
powershell
# Open config file
notepad %APPDATA%\Claude\claude_desktop_config.json
bash
# Open config file
nano ~/.config/claude/claude_desktop_config.json

📊 Data Sources

This MCP server integrates with the following APIs:

ProviderData TypeAPI KeyRate Limits
CoinGeckoMarket data, prices, OHLCVOptional10-50 req/min
CoinStatsPortfolio, prices, walletsRequiredVaries
DefiLlamaTVL, yields, fees, protocolsNoGenerous
LunarCrushSocial sentiment, influencersRequiredVaries
GoPlusSecurity analysis, honeypotNoGenerous
GeckoTerminalDEX pools, trades, OHLCVNoGenerous
DexPaprikaDEX analytics, poolsNoGenerous
CryptoPanicCrypto newsRequiredVaries
Alternative.meFear & Greed IndexNoGenerous

💬 Example Conversations

Price Queries

User: "What's the current price of BNB?"

AI: Uses get_price tool → "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_security and detect_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_farms and get_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

FeatureDescription
Read-Only ModeWithout PRIVATE_KEY, server only reads blockchain state
No Key StoragePrivate keys are never stored, only used in memory
Input ValidationAll inputs validated with Zod schemas
Rate LimitingBuilt-in rate limiting prevents API abuse
Verified SourcesOnly uses reputable data providers

Best Practices

  • ⚠️ Never share your PRIVATE_KEY in 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

  1. Check Node.js version (requires 18+):
    bash
    node --version
  2. Clear npx cache:
    bash
    npx clear-npx-cache
  3. Try installing globally:
    bash
    npm install -g @nirholas/bnbchain-mcp
  1. Verify config file location and JSON syntax
  2. Restart Claude Desktop completely
  3. Check logs:
    • macOS: ~/Library/Logs/Claude/mcp*.log
    • Windows: %APPDATA%\Claude\logs\mcp*.log
  1. Use a dedicated RPC provider (Alchemy, QuickNode, etc.)
  2. Configure custom RPC:
    json
    "env": {
      "CUSTOM_RPC_56": "https://your-dedicated-rpc.com"
    }
  1. Verify API key is correct (no extra spaces)
  2. Check API key has required permissions
  3. 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

FeatureStatus
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

FeatureStatus
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

FeatureStatus
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

FeatureStatus
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

FeatureStatus
Get native balance✅
Transfer native tokens✅
Wrap/unwrap native tokens (WETH, WBNB)✅

ERC-20 (Fungible Tokens)

FeatureStatus
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)

FeatureStatus
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)

FeatureStatus
Get token balance (fungible + NFT)✅
Batch transfers📋
Batch balance queries📋
Safe transfer✅
Get URI✅

Other Token Standards

FeatureStatus
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

FeatureStatus
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

FeatureStatus
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

FeatureStatus
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

FeatureStatus
Constant product (x*y=k)✅
Stable swap (Curve)📋
Concentrated liquidity📋
Order book hybrid📋
Virtual AMM (perpetuals)📋

🏦 DeFi - Lending & Borrowing

Lending

FeatureStatus
Supply/deposit assets✅
Withdraw assets✅
Get supply APY✅
Get supplied balance✅
Get utilization rate📋
Enable/disable as collateral📋

Borrowing

FeatureStatus
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

FeatureStatus
Liquidate unhealthy positions📋
Get liquidatable positions✅
Get liquidation bonus📋
Partial liquidations📋

Isolated Markets

FeatureStatus
Supply to isolated pool📋
Borrow from isolated pool📋
Get isolation mode debt ceiling📋

🥩 DeFi - Staking

Native Staking

FeatureStatus
Stake native tokens✅
Unstake/withdraw✅
Claim rewards✅
Get staking APY✅
Get validator list📋
Delegate to validator📋
Redelegate📋
Get unbonding period📋

Liquid Staking

FeatureStatus
Stake for liquid staking tokens (stETH, rETH)✅
Unwrap liquid staking tokens✅
Get exchange rate✅
Get staking rewards rate✅

LP Staking/Farming

FeatureStatus
Stake LP tokens✅
Unstake LP tokens✅
Claim farming rewards✅
Get farming APY✅
Compound rewards📋
Get pending rewards✅
Boost rewards (veTokens)📋

Restaking

FeatureStatus
Restake assets (EigenLayer)📋
Get restaking points📋
Choose operators📋
Withdraw from restaking📋

📊 DeFi - Derivatives

Perpetual Futures

FeatureStatus
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

FeatureStatus
Buy call/put options📋
Sell/write options📋
Exercise options📋
Get option greeks📋
Get implied volatility📋
Get option chain📋
Spread strategies📋

Synthetics

FeatureStatus
Mint synthetic assets📋
Burn synthetic assets📋
Get collateral ratio📋
Get synthetic price feed📋
Liquidate synthetic positions📋

🌉 Cross-Chain & Bridges

Bridging

FeatureStatus
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

FeatureStatus
Send cross-chain message📋
Receive cross-chain message📋
LayerZero operations📋
Axelar operations📋
Wormhole operations📋
CCIP (Chainlink)📋
Hyperlane operations📋

Atomic Swaps

FeatureStatus
Initiate atomic swap📋
Complete atomic swap📋
Refund atomic swap📋

🗳️ Governance

Voting

FeatureStatus
Create proposal✅
Vote on proposal✅
Delegate votes✅
Get voting power✅
Get proposal state✅
Queue proposal✅
Execute proposal✅
Cancel proposal✅
Get vote receipt✅

Token Locking

FeatureStatus
Lock tokens for voting (veTokens)📋
Extend lock period📋
Increase locked amount📋
Withdraw unlocked tokens📋
Get lock info📋

Snapshot (Off-chain)

FeatureStatus
Create space📋
Create off-chain proposal📋
Vote off-chain📋
Get snapshot results📋

🔐 Security & Analysis

Contract Analysis

FeatureStatus
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

FeatureStatus
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

FeatureStatus
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

FeatureStatus
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

FeatureStatus
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)

FeatureStatus
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

FeatureStatus
Unstoppable Domains📋
Space ID (.bnb)📋
Bonfida (.sol)📋
ANS (.avax)📋

DIDs & Verifiable Credentials

FeatureStatus
Create DID📋
Resolve DID📋
Issue verifiable credential📋
Verify credential📋
Revoke credential📋

🖼️ NFT & Metaverse

NFT Marketplace

FeatureStatus
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

FeatureStatus
Deploy NFT collection📋
Mint NFTs📋
Set royalties📋
Set metadata📋
Reveal NFTs📋
Whitelist management📋
Airdrop NFTs📋

NFT Finance

FeatureStatus
NFT collateralized loans📋
NFT fractionalization📋
NFT renting📋
NFT staking📋

Metaverse

FeatureStatus
Buy virtual land📋
Sell virtual land📋
Build on land📋
Transfer assets between metaverses📋

🔔 Events & Subscriptions

Event Listening

FeatureStatus
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

FeatureStatus
Set up webhook for events📋
Get transaction notifications📋
Get price alerts📋
Get whale alerts📋
Get governance notifications📋

📜 Smart Contract Interaction

Read Operations

FeatureStatus
Call view/pure functions✅
Get storage at slot✅
Get contract bytecode✅
Multicall (batch reads)✅
Static call simulation✅

Write Operations

FeatureStatus
Send transaction to contract✅
Encode function call✅
Decode function result✅
Estimate gas for call✅
Batch transactions✅

Contract Deployment

FeatureStatus
Deploy contract✅
Deploy with CREATE2✅
Deploy proxy contract✅
Upgrade proxy✅
Verify on explorer✅

🤖 Advanced Features

MEV & Flashbots

FeatureStatus
Submit private transaction✅
Submit bundle✅
Get MEV opportunities✅
Backrun protection✅
Frontrun protection✅
Sandwich protection✅

Account Abstraction (ERC-4337)

FeatureStatus
Create smart account📋
Execute user operation📋
Batch operations📋
Sponsor gas (Paymaster)📋
Session keys📋
Social recovery📋

Intents & Solvers

FeatureStatus
Submit intent📋
Get solver quotes📋
Execute via solver📋

Oracles

FeatureStatus
Get Chainlink price✅
Get Pyth price📋
Get Band Protocol price📋
Get API3 price📋
Request randomness (VRF)📋
Request external data📋

🛠️ Utility Functions

Gas

FeatureStatus
Get gas price✅
Get priority fee✅
Get base fee✅
Get gas history✅
Estimate gas for transaction✅
Get EIP-1559 fees✅

Encoding/Decoding

FeatureStatus
ABI encode✅
ABI decode✅
Keccak256 hash✅
Pack/unpack data✅
Sign typed data (EIP-712)✅

Address Utils

FeatureStatus
Validate address✅
Checksum address✅
Get address from ENS✅
Check if contract✅
Get contract type📋

📰 Data & Information

News & Social

FeatureStatus
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

FeatureStatus
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

FeatureStatus
Wallet screening📋
Transaction monitoring📋
Risk scoring📋
Sanctions checking📋

Custody

FeatureStatus
Multi-sig operations📋
Cold storage📋
Hot wallet management📋
Policy enforcement📋

Reporting

FeatureStatus
Tax reporting📋
Portfolio tracking✅
P&L reporting📋
Transaction history export📋

Data Sources

This MCP server integrates with the following APIs:

ProviderData TypeAPI Key Required
CoinGeckoMarket data, prices, OHLCVOptional (free tier)
CoinStatsPortfolio, prices, walletsYes
DefiLlamaTVL, yields, fees, protocolsNo
LunarCrushSocial sentiment, influencersYes
GoPlusSecurity analysis, honeypot detectionNo
GeckoTerminalDEX pools, trades, OHLCVNo
DexPaprikaDEX analytics, poolsNo
CryptoPanicCrypto newsYes
Alternative.meFear & Greed IndexNo

🔗 Related MCP Servers

Related MCP servers, each maintained in its own repository:

ServerDescriptionTools
Binance-MCPBinance.com global exchange API156+ tools
Binance-US-MCPBinance.US exchange API71+ 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
json
{
  "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)
json
{
  "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

bash
# Fork and clone
git clone https://github.com/nirholas/bnbchain-mcp
cd bnbchain-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

  1. Create tool file in src/tools/<category>/
  2. Export tool definition with Zod schema
  3. Add to tool index
  4. 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


🌟 Star us on GitHub!

If you find this project useful, please consider giving it a ⭐️

GitHub stars

Empowering AI agents to interact with blockchains

Comprehensive keyword list for ERC-8004 Trustless Agents ecosystem


Core Protocol Keywords

ERC-8004, ERC8004, EIP-8004, EIP8004, Trustless Agents, trustless agent, trustless AI, trustless AI agents, agent protocol, agent standard, Ethereum agent standard, blockchain agent protocol, on-chain agents, onchain agents, on-chain AI, onchain AI, decentralized agents, decentralized AI agents, autonomous agents, autonomous AI agents, AI agent protocol, AI agent standard, agent discovery, agent trust, agent reputation, agent validation, agent identity, agent registry, identity registry, reputation registry, validation registry, agent NFT, ERC-721 agent, agent tokenId, agentId, agentURI, agentWallet, agent registration, agent registration file, agent-registration.json, agent card, agent metadata, agent endpoints, agent discovery protocol, agent trust protocol, open agent protocol, open agent standard, permissionless agents, permissionless AI, censorship-resistant agents, portable agent identity, portable AI identity, verifiable agents, verifiable AI agents, accountable agents, accountable AI, agent accountability

Blockchain & Web3 Keywords

Ethereum, Ethereum mainnet, ETH, EVM, Ethereum Virtual Machine, smart contracts, Solidity, blockchain, decentralized, permissionless, trustless, on-chain, onchain, L2, Layer 2, Base, Optimism, Polygon, Linea, Arbitrum, Scroll, Monad, Gnosis, Celo, Sepolia, testnet, mainnet, singleton contracts, singleton deployment, ERC-721, NFT, non-fungible token, tokenURI, URIStorage, EIP-712, ERC-1271, wallet signature, EOA, smart contract wallet, gas fees, gas sponsorship, EIP-7702, subgraph, The Graph, indexer, blockchain indexing, IPFS, decentralized storage, content-addressed, immutable data, public registry, public good, credibly neutral, credibly neutral infrastructure, open protocol, open standard, Web3, crypto, cryptocurrency, DeFi, decentralized finance

AI & Agent Technology Keywords

AI agents, artificial intelligence agents, autonomous AI, AI autonomy, LLM agents, large language model agents, machine learning agents, ML agents, AI assistant, AI chatbot, intelligent agents, software agents, digital agents, virtual agents, AI automation, automated agents, agent-to-agent, A2A, A2A protocol, Google A2A, Agent2Agent, MCP, Model Context Protocol, agent communication, agent interoperability, agent orchestration, agent collaboration, multi-agent, multi-agent systems, agent capabilities, agent skills, agent tools, agent prompts, agent resources, agent completions, AgentCard, agent card, agent endpoint, agent service, AI service, AI API, agent API, AI infrastructure, agent infrastructure, agentic, agentic web, agentic economy, agentic commerce, agent economy, agent marketplace, AI marketplace, agent platform, AI platform

Trust & Reputation Keywords

trust, trustless, reputation, reputation system, reputation protocol, reputation registry, feedback, client feedback, user feedback, on-chain feedback, on-chain reputation, verifiable reputation, portable reputation, reputation aggregation, reputation scoring, reputation algorithm, trust signals, trust model, trust verification, trust layer, recursive reputation, reviewer reputation, spam prevention, Sybil attack, Sybil resistance, anti-spam, feedback filtering, trusted reviewers, rating, rating system, quality rating, starred rating, uptime rating, success rate, response time, performance history, track record, audit trail, immutable feedback, permanent feedback, feedback response, appendResponse, giveFeedback, revokeFeedback, feedback tags, feedback value, valueDecimals, feedbackURI, feedbackHash, clientAddress, reviewer address

Validation & Verification Keywords

validation, validation registry, validator, validator contract, cryptographic validation, cryptographic proof, cryptographic attestation, zero-knowledge, ZK, zkML, zero-knowledge machine learning, ZK proofs, trusted execution environment, TEE, TEE attestation, TEE oracle, stake-secured, staking validators, crypto-economic security, inference re-execution, output validation, work verification, third-party validation, independent validation, validation request, validation response, validationRequest, validationResponse, requestHash, responseHash, verifiable computation, verified agents, verified behavior, behavioral validation, agent verification

Payment & Commerce Keywords

x402, x402 protocol, x402 payments, programmable payment

Cài đặt

TypingMind
{
  "mcpServers": {
    "bnbchain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@nirholas/bnb-chain-mcp@latest"
      ]
    }
  }
}

Dùng MCP BNB Chain MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối BNB Chain MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm BNB Chain MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của BNB Chain MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "bnbchain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@nirholas/bnbchain-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của BNB Chain MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của BNB Chain MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng BNB Chain MCP Server giúp tôi làm việc này không?
BNB Chain MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng BNB Chain MCP Server.

Câu hỏi thường gặp

Máy chủ MCP BNB Chain MCP Server dùng để làm gì?

BNB Chain MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP BNB Chain MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng BNB Chain MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP BNB Chain MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối BNB Chain MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP BNB Chain MCP Server với TypingMind?

BNB Chain MCP Server hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP BNB Chain MCP Server cung cấp những công cụ nào trong TypingMind?

BNB Chain MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP BNB Chain MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu BNB Chain MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇