BC

bnb-chain/bnbchain-mcp

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

61 stars 28 forks 质量 79 趋势 28MIT

bnb-chain/bnbchain-mcp 是从 https://github.com/bnb-chain/bnbchain-mcp. 导入的 MCP 服务器候选

概览

bnb-chain/bnbchain-mcp 是从 https://github.com/bnb-chain/bnbchain-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一套强大的工具包,通过自然语言处理和人工智能辅助,与BNB链及其他兼容EVM的网络交互。

描述

BNBChain MCP 是一个模型上下文协议实现,通过 AI 驱动的接口实现与区块链网络的无缝交互。它为区块链开发、智能合约交互和网络管理提供了全面的工具和资源。

核心模块

该项目分为若干核心模块:

  • 区块:查询和管理区块链区块
  • 合约:与智能合约互动
  • Network:网络信息与管理
  • NFT:NFT(ERC721/ERC1155)操作
  • 令牌:令牌(ERC20)操作
  • 事务:事务管理
  • 钱包:钱包运营与管理
  • Common:共享公用事业和类型
  • Greenfield:支持Greenfield网络上的文件管理操作,包括上传、下载和管理文件和桶
  • 即将推出的额外功能(绿地、交换、桥梁等)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

BNBChain MCP (Model Context Protocol)

A powerful toolkit for interacting with BNB Chain and other EVM-compatible networks through natural language processing and AI assistance.

Description

BNBChain MCP is a Model Context Protocol implementation that enables seamless interaction with blockchain networks through AI-powered interfaces. It provides a comprehensive set of tools and resources for blockchain development, smart contract interaction, and network management.

Core Modules

The project is organized into several core modules:

  • Blocks: Query and manage blockchain blocks
  • Contracts: Interact with smart contracts
  • Network: Network information and management
  • NFT: NFT (ERC721/ERC1155) operations
  • Tokens: Token (ERC20) operations
  • Transactions: Transaction management
  • Wallet: Wallet operations and management
  • Common: Shared utilities and types
  • Greenfield: Support file management operations on Greenfield network including, uploading, downloading, and managing files and buckets
  • Additional features coming soon (Greenfield, Swap, Bridge, etc.)
  • Agents (ERC-8004): Register and resolve on-chain AI agent identities (ERC-8004 Trustless Agents) on BSC and BSC Testnet

Important Notes

We do not recommend deploying this MCP Server on the public internet. (1) The SSE endpoint has no authentication—anyone who can reach it can use the server. (2) There is no centralized service that custodies private keys or funds; keys and signing are the responsibility of the client. If you still need to deploy it publicly, add an authentication layer in front (e.g. API keys, JWT, or a reverse proxy with auth), or deploy a keyless version that only exposes read-only or non-sensitive tools.

Credentials: Prefer setting PRIVATE_KEY in the MCP server environment. Do not pass the private key in tool parameters when avoidable, as it may be stored in conversation history, client logs, or request logs and lead to exposure.

Transfer and payment confirmation

Transfer and payment tools (e.g. transfer_native_token, transfer_erc20, approve_token_spending, transfer_nft, transfer_erc1155, gnfd_deposit_to_payment, gnfd_withdraw_from_payment, gnfd_create_payment_account) use a preview-then-confirm flow by default so that no funds move until the user explicitly confirms.

  • Default behavior: Calling a transfer or payment tool returns a preview (recipient, amount, network, etc.) and a short-lived confirmToken. No transaction is sent. To execute, call the confirm_transfer tool with that confirmToken and your privateKey. The token expires after 5 minutes.
在 GitHub 查看完整 README

安装

npx -y @bnb-chain/mcp@latest
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "bnbchain-mcp": { "command": "npx", "args": ["-y", "@bnb-chain/mcp@latest"], "env": { "PRIVATE_KEY": "your_private_key_here. (optional)", "BNBCHAIN_MCP_SKIP_TRANSFER_CONFIRMATION": "false" } } } }