A ready-to-use template that combines BNBChain's Model Context Protocol (MCP) with Anthropic's Claude AI to create an intelligent blockchain interaction interface. This template enables natural language conversations for blockchain operations, making it easier for developers and users to interact with BNB Smart Chain and BNB Greenfield.
- 🤖 AI-powered blockchain interactions using Claude-3
- 🔗 Direct integration with BNB Smart Chain
- 📦 Built-in support for common blockchain operations
- 🔒 Secure private key management
- 💬 Interactive chat interface
- 📊 Real-time blockchain data access
This directory contains the integration code for using BNBChain MCP with Anthropic's Claude models. This is a Replit template for playground use; for more stable integration, we recommend using Cursor or Claude desktop. You can configure it by referring to the integration guide.
- Node.js (v16 or higher)
- pnpm (v7 or higher)
- An Anthropic API key from console.anthropic.com
- Your private key (optional)
pnpm install- Copy the example environment file:
cp .env.example .env- Update the following variables in
.env:ANTHROPIC_API_KEY: Your Anthropic API keyPRIVATE_KEY: Your blockchain private key (optional)
pnpm startWait for the initialization to complete - you'll see "MCP Client Started!" in the console.
Once the client is running, you can enter queries in the console. Here are some example prompts:
- Check BNB balance:
What's my BNB balance?- Get network status:
What's the current status of the BNB Smart Chain?- Token information:
Show me information about the CAKE token- Transaction analysis:
Can you analyze the latest transactions on PancakeSwap?- Smart contract interaction:
What's the current TVL in Venus Protocol?To exit the application, simply type quit or exit.
- Real-time blockchain data access
- Natural language interaction with Claude AI
- Secure handling of private keys
- Support for multiple blockchain operations
- Interactive chat interface
If you encounter any issues:
- Make sure your Anthropic API key is valid and has sufficient credits
- Check your internet connection
- Verify that you're using the correct Node.js version
- Ensure all dependencies are properly installed
- Check the console for any error messages
- Verify your
.envfile is properly configured
Make sure to keep your API keys and private keys secure and never share them with others. The secrets tool in Replit ensures your sensitive information remains encrypted and safe.