BSC MCP Server logo

BSC MCP Server

by ArcReactor9

A Model Context Protocol (MCP) server for interacting with the Binance Smart Chain (BSC) network. This server enables LLMs to access blockchain data and perform queries on the BSC network.

View on GitHub

Last updated: N/A

What is BSC MCP Server?

The BSC MCP Server is a Model Context Protocol server designed to facilitate interaction with the Binance Smart Chain (BSC) network. It allows Large Language Models (LLMs) to access and query blockchain data, enabling them to integrate real-time blockchain information into their responses and actions.

How to use BSC MCP Server?

To use the server, first clone the repository, install the dependencies, and build the project. Configure the BSC RPC URL and private key (if needed for token creation) using environment variables. You can then run the STDIO server for integration with LLM clients or the HTTP/SSE server for HTTP connections. Client examples are provided to demonstrate how to interact with the server's API endpoints.

Key features of BSC MCP Server

  • Get current block number

  • Retrieve block details by number or hash

  • Fetch transaction details and receipts

  • Check wallet BNB and BEP-20 token balances

  • Create Four.meme tokens on BSC

  • Supports STDIO and HTTP/SSE connections

  • Provides client examples for easy integration

Use cases of BSC MCP Server

  • Providing LLMs with real-time BSC blockchain data

  • Enabling LLMs to verify transaction status

  • Allowing LLMs to check wallet balances

  • Facilitating the creation of meme tokens via LLM commands

FAQ from BSC MCP Server

How do I set the BSC RPC URL?

Set the BSC_RPC_URL environment variable to your desired RPC endpoint.

Why do I need a private key?

A private key is required only for creating Four.meme tokens, as it's needed to sign the deployment transaction.

What is the default port for the HTTP server?

The default port is 3000. You can change it using the PORT environment variable.

How do I troubleshoot token creation issues?

Ensure the BSC_PRIVATE_KEY is set correctly, you have enough BNB for gas fees, and the owner address is valid.

Where can I get support?

Open an issue on the GitHub repository for questions or support.