bnbchain-mcp
하는 일
이 스킬은 AI 도구를 BNB Chain MCP 서버에 연결하는 방법을 보여 줍니다. 이 서버는 BNB Chain, opBNB, 기타 EVM 네트워크용 도구를 에이전트에게 제공합니다. 읽기 전용 블록체인 조회와 개인 키가 필요한 상태 변경 작업을 다룹니다.
사용하는 경우
- ✓AI 도구가 BNB Chain의 블록, 잔액, 컨트랙트 데이터를 조회하게 하고 싶을 때.
- ✓에이전트가 BNB Chain에서 토큰을 보내거나 컨트랙트에 기록해야 할 때.
- ✓MCP를 통해 에이전트 신원을 등록하거나 BNB Greenfield를 사용하고 싶을 때.
스킬 링크
https://github.com/internet-court/internet-court-skill/blob/main/vendored/bnb-chain/bnbchain-mcp/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“AI 도구를 BNB Chain에 연결해 지갑 잔액을 확인하게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI 도구의 설정 파일에 서버를 추가합니다. 조회는 키 없이 작동하지만, 토큰 전송이나 컨트랙트 기록에는 서버 환경 설정에 저장된 개인 키가 필요합니다. 그다음 에이전트는 서버의 도구로 읽거나 씁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
BNB Chain MCP Skill
How to connect to the BNB Chain MCP server and use its tools: blocks, transactions, contracts, tokens, NFTs, wallet, ERC-8004 agents, and Greenfield. Use this skill when working with BNB Chain / opBNB / EVM or Greenfield via MCP.
Connection and credentials
- Run the server:
npx @bnb-chain/mcp@latest(fetches from npm at runtime). Source: github.com/bnb-chain/bnbchain-mcp. - RPC: Default chains use built-in RPC; no config unless self-hosting or custom RPC.
- PRIVATE_KEY: Omit or leave empty for read-only (blocks, balances, contract reads). Set in the MCP server
envfor state-changing tools (transfers,write_contract,approve_token_spending, ERC-8004 register/set_uri, Greenfield writes). Never log or expose private keys. - Read-only vs state-changing: Block/balance/contract-read tools work without a key; transfers and writes require
PRIVATE_KEYin the server environment.
1. MCP server config
Add the bnbchain-mcp server to the MCP client config (e.g. Cursor MCP settings, Claude Desktop claude_desktop_config.json).
Default (stdio):
{
"mcpServers": {
"bnbchain-mcp": {
"command": "npx",
"args": ["-y", "@bnb-chain/mcp@latest"],
"env": {
"PRIVATE_KEY": ""
}
}
}
}
SSE mode: "args": ["-y", "@bnb-chain/mcp@latest", "--sse"] (and client SSE URL if required). Local dev server (e.g. bun dev:sse in bnbchain-mcp): "url": "http://localhost:3001/sse" with the same env.
Restart or reload the MCP client after changing config so the server starts.
2. Credentials and environment
- RPC: Built-in for default chains.
- PRIVATE_KEY: Set in the server’s
envwhen state-changing tools are needed; leave empty for read-only. Do not commit or echo keys.
3. Agent registration (ERC-8004)
- Register the agent on-chain with the MCP tool
register_erc8004_agent(see references/erc8004-tools-reference.md). - Owners can then check registration on 8004scan (mainnet) or 8004scan (testnet).
4. Quick reference — tools and prompts
Network parameter
- Read-only tools (blocks, balances, contract reads, get_chain_info, etc.):
networkis optional; default isbsc. Useget_supported_networksto list options. - Write operations (
transfer_native_token,transfer_erc20,transfer_nft,transfer_erc1155,approve_token_spending,write_contract,register_erc8004_agent,set_erc8004_agent_uri, Greenfield writes):networkis REQUIRED. There is no default for writes. If the user does not specify the network, you MUST ask before calling the tool. Do not assume or default to mainnet (bsc); accidental mainnet execution causes irreversible financial loss.
Tool categories
| Category | Examples | Needs PRIVATE_KEY? |
|---|---|---|
| Blocks | get_latest_block, get_block_by_number, get_block_by_hash |
No |
| Transactions | get_transaction, get_transaction_receipt, estimate_gas |
No (estimate only) |
| Network | get_chain_info, get_supported_networks |
No |
| Wallet / balance | get_native_balance, get_erc20_balance, get_address_from_private_key |
Balance: optional address or privateKey |
| Transfers / writes | transfer_native_token, transfer_erc20, transfer_nft, transfer_erc1155, approve_token_spending, write_contract |
Yes |
| Contracts | read_contract, is_contract |
No for read |
| Tokens / NFT | get_erc20_token_info, get_nft_info, get_erc1155_token_metadata, check_nft_ownership, get_nft_balance, get_erc1155_balance |
No for read |
| ERC-8004 | register_erc8004_agent, set_erc8004_agent_uri, get_erc8004_agent, get_erc8004_agent_wallet |
Register/set_uri: Yes |
| Greenfield | gnfd_* bucket/object/payment tools |
Writes: Yes |
Prompts (MCP prompts)
Use the MCP prompt names when the user wants analysis or guidance:
- analyze_block — Analyze a block and its contents
- analyze_transaction — Analyze a specific transaction
- analyze_address — Analyze an EVM address
- interact_with_contract — Guidance on interacting with a smart contract
- explain_evm_concept — Explain an EVM concept
- compare_networks — Compare EVM-compatible networks
- analyze_token — Analyze an ERC20 or NFT token
- how_to_register_mcp_as_erc8004_agent — Gui
자주 묻는 질문
조회만 하는 데도 개인 키가 필요한가요?
아니요. 블록, 잔액, 컨트랙트 읽기는 키 없이 작동합니다.
개인 키는 어디에 넣어야 하나요?
서버의 환경 설정에만 넣고, 기록하거나 공유하지 말라고 스킬은 말합니다.
서버는 어떻게 시작되나요?
스킬의 설정은 npx로 BNB Chain MCP 패키지를 실행하며, 도구용 설정 블록을 포함합니다.
상세 정보
작성자의 원본 설명
BNB Chain MCP server connection and tool usage. Covers npx @bnb-chain/mcp@latest, PRIVATE_KEY and RPC, and every MCP tool — blocks, transactions, contracts, ERC20/NFT transfers, wallet, ERC-8004 agent registration, Greenfield. Use when connecting to bnbchain-mcp, querying or transacting on BNB Chain/opBNB/EVM, registering as ERC-8004 agent, or using Greenfield.
인기도
- GitHub 스타
- 7.0k
- 순위
- #13617
- 라이선스
- —
- 업데이트
- 2026. 10. 26.
댓글
- …
이 저장소의 다른 스킬
internet-court
7.0k에이전트가 다른 AI 에이전트나 유료 서비스와 안전하게 결제하거나 거래하도록 돕고, 적합한 전문 가이드를 알려 줍니다.
genlayer-erc7710-connector
7.0k에이전트가 GenLayer 검토 결과를 권한 시스템에 연결하도록 돕습니다. 나쁜 검토는 에이전트의 권한을 제한하거나 취소할 수 있습니다.
genlayer-intelligent-contracts
7.0k에이전트가 다른 에이전트가 위임받은 범위를 지켰는지 확인하는 AI 심판의 규칙, 증거, 결과를 정하도록 돕습니다.
x402-erc7710
7.0k에이전트가 웹 서비스 요금을 요청 한 건마다 결제하고, 권한 예산 안에서 지속적인 지출을 설정하도록 돕습니다.
비슷한 스킬
mcporter
394k에이전트가 HTTP나 stdio로 MCP 서버와 그 도구를 목록화하고, 호출하고, 점검하며, 로그인 설정을 관리하도록 돕습니다.
fastmcp
260kAPI, 데이터베이스, 파일에 AI 어시스턴트가 도구로 접근할 수 있도록 Python MCP 서버를 만들고 테스트하고 배포하도록 돕습니다.
mcp-oauth-remote-gateway
260kHermes가 서버에서 실행될 때 일반 브라우저 로그인이 닿지 않는 경우를 위해, 원격 MCP 서버의 OAuth 로그인을 단계별로 안내합니다.