BC

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

61 stars 28 forks Качество 79 Тренд 28MIT

bnb-chain/bnbchain-mcp - это кандидат на сервер MCP, импортированный из https://github.com/bnb-chain/bnbchain-mcp.

Обзор

bnb-chain/bnbchain-mcp - это кандидат на сервер MCP, импортированный из https://github.com/bnb-chain/bnbchain-mcp.

Обзор (машинный перевод)

Мощный инструментарий для взаимодействия с BNB Chain и другими EVM-совместимыми сетями посредством обработки естественного языка и помощи ИИ.

Описание

BNBChain MCP - это реализация протокола Model Context, которая обеспечивает бесшовное взаимодействие с блокчейн-сетями через интерфейсы на базе ИИ. Он предоставляет полный набор инструментов и ресурсов для разработки блокчейна, взаимодействия смарт-контрактов и управления сетью.

Основные модули

Проект организован в несколько основных модулей:

  • Блоки: Запрос и управление блокчейн-блоками Контракты: Взаимодействие со смарт-контрактами Сеть: Сетевая информация и управление NFT: операции NFT (ERC721/ERC1155) ** Токены**: Токены (ERC20) Транзакции: Управление операциями Кошелек: Операции и управление кошельком Общие: Общие утилиты и типы
  • Гринфилд: Поддержка операций управления файлами в сети Greenfield, включая загрузку, загрузку и управление файлами и ведрами
  • Скоро появятся дополнительные функции (Greenfield, Swap, Bridge и т.д.)

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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.
Открыть полный README на GitHub

Установка

npx -y @bnb-chain/mcp@latest
Новичок в MCP? Начните с руководства на 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" } } } }