BSC MCP Server
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Integrations
Facilitates transactions on the Binance Smart Chain (BSC), including sending native BNB, managing BEP-20 tokens, creating memecoins, and interacting with BSC smart contracts like PancakeSwap for token swaps.
Built as a Node.js application for executing blockchain transactions and smart contract interactions on the Binance Smart Chain.
Supports the creation of meme tokens with Telegram URLs, enabling users to link their token projects to Telegram channels or groups.
https://github.com/user-attachments/assets/b3ed768a-6fd9-4b09-bcdd-dd122965f46e
BSC MCP Server
Overview
BSC MCP Server is a backend service designed to execute transactions on the Binance Smart Chain (BSC). It facilitates seamless interaction with the blockchain, including sending native BNB and BEP-20 token transfers. The server utilizes the Model Context Protocol (MCP) framework to ensure secure, structured, and efficient transactions.
Key Functionalities:
- Retrieve and manage wallet addresses
- Fetch and list wallet balances
- Execute native BNB transfers
- Transfer BEP-20 tokens using contract addresses or symbols
- Call and interact with smart contract functions
- Securely manage BEP-20 tokens
- create bsc memecoin
- create bep20 token
Features
- Secure Transactions: Supports both native BNB and BEP-20 token transfers.
- Private Key Management: Uses environment variables to protect sensitive data.
- Smart Contract Interaction: Supports function calls to BSC smart contracts.
- Blockchain Integration: Built on Viem for reliable BSC blockchain interaction.
- Customizable RPC Support: Allows configuration of RPC URLs for optimized performance.
- Standardized MCP Integration: Enables structured data interaction for AI-driven automation.
Requirements
Before setting up the BSC MCP Server, ensure you have the following installed:
- Node.js (v16 or later)
- npm or yarn
- A valid Binance Smart Chain (BSC) wallet private key
Installation
Clone the repository and install dependencies:
Configuration
To configure the server, create a .env
file in the root directory and specify the following variables:
Integration with Claude Desktop
Before integrating this MCP server with Claude Desktop, ensure you have the following installed:
- Claude Desktop
Then Build the server using the following command:
To add this MCP server to Claude Desktop:
Create or edit the Claude Desktop configuration file at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
Add the following configuration:
Make sure to pass the correct location of the index.js
file in the command
and args
fields.
Restart Claude Desktop for the changes to take effect.
Usage ( For Connecting MCP HOST other than Claude )
Start the Server
To start the MCP server, run:
Transfer BEP-20 Tokens
Use the transferBEP20Token
tool to send tokens by specifying the contract address or symbol:
Functions
- Transfer Native Token (BNB) -
transferNativeToken
Copy - Transfer BEP-20 Token by Symbol or Address -
transferBEP20Token
Copy - Swap Tokens via PancakeSwap -
pancakeSwap
Copy - Fetch Native and Token Balances -
getBalance
Copy - Call a Contract Function -
callContractFunction
Copy - Create a Meme Token on Four.Meme -
createFourMeme
Copy - Create a BEP-20 Token -
createBEP20Token
Copy
Model Context Protocol (MCP)
The Model Context Protocol (MCP) is an open standard designed to enhance the way applications interact with AI models and blockchain-based computational systems. MCP establishes structured context that improves the efficiency of automated transactions and decentralized applications.
Benefits of MCP:
- Standardization: Defines a unified approach for application interactions.
- Efficiency: Reduces computational overhead and improves transaction speed.
- Interoperability: Supports integration across multiple platforms and blockchain ecosystems.
Error Handling
When a transaction fails, the server returns an error message with details. Check the console logs for more debugging information. Common error scenarios include:
- Insufficient funds in the wallet
- Invalid recipient address
- Network congestion or RPC issues
Security Considerations
- Private Key Protection: Never expose or hardcode your private key. Use environment variables.
- RPC Provider Selection: Choose a trusted and reliable BSC RPC provider to prevent network issues.
- Transaction Limits: Implement checks to avoid unintended large transfers.
License
This project is open-source under the MIT License.
For contributions, bug reports, or feature requests, submit an issue on GitHub.
This server cannot be installed
A backend service for executing transactions on Binance Smart Chain, enabling secure transfers of BNB and BEP-20 tokens, smart contract interactions, and token creation through structured MCP integration.
- Overview
- Features
- Requirements
- Installation
- Configuration
- Integration with Claude Desktop
- Usage ( For Connecting MCP HOST other than Claude )
- Functions
- Model Context Protocol (MCP)
- Error Handling
- Security Considerations
- License