BinanceSAFE
A Model Context Protocol (MCP) server for integrating AI assistants with Binance cryptocurrency exchange APIs, enabling automated trading, market data access, and account management.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Multi-language Documentation - English (current) - 中文 - 日本語
A Model Context Protocol (MCP) server that provides Claude Code with Binance exchange API functionality.
Quick Start
📹 Video Tutorial
Watch our comprehensive MCP usage tutorial to get started quickly:
Installation
npm install -g binance-mcp-server
Configuration
This MCP server can be used with various AI tools that support MCP:
[](https://claude.ai) [](https://cursor.com) [](https://trae.ai)
MCP Configuration
Add the following configuration to your MCP settings file:
{
"mcpServers": {
"binance": {
"command": "npx",
"args": ["binance-mcp-server"],
"env": {
"BINANCE_API_KEY": "your_api_key",
"BINANCE_API_SECRET": "your_api_secret",
"BINANCE_TESTNET": "false"
}
}
}
}Note: SetBINANCE_TESTNETto"true"if you want to use the Binance testnet for development and testing.
One-Click Setup with Claude Code
claude mcp add binance --env BINANCE_API_KEY=YOUR_API_KEY --env BINANCE_API_SECRET=YOUR_API_SECRET --env BINANCE_TESTNET=false -- npx -y binance-mcp-server
Environment Setup
Getting API Keys
For Testnet (Recommended for Development):
- Visit Binance Testnet
- Create a testnet account (no real verificati
0739e4d294f0OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add binance-mcp-server --env BINANCE_API_KEY=${BINANCE_API_KEY} --env BINANCE_API_SECRET=${BINANCE_API_SECRET} -- npx -y [email protected]{
"mcpServers": {
"binance-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"BINANCE_API_KEY": "${BINANCE_API_KEY}",
"BINANCE_API_SECRET": "${BINANCE_API_SECRET}"
}
}
}
}Exposed tools (10)
7 read · 3 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
cancel_all_orders | read | 取消指定交易对所有挂单 - 支持主网和测试网 |
cancel_order | write | 取消指定订单 - 支持主网和测试网 |
get_24hr_ticker | read | 获取24小时价格变动统计 |
get_account_info | read | 获取账户信息和余额 |
get_klines | read | 获取K线历史数据 |
get_open_orders | read | 获取当前挂单 |
get_order_history | write | 获取历史订单记录 |
get_orderbook | read | 获取订单簿深度数据 |
get_price | read | 获取指定交易对的当前价格 |
place_order | write | 下单交易 - 支持主网和测试网(主网将使用真实资金) |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (4)
.eslintrc.js
@modelcontextprotocol/sdk, binance-api-node, dotenv, zod, @types/node, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint
docs/mcp-usage-tutorial.gif
Gates applied: no_behavioural_pass, no_license.
0739e4d294f0full audit observations/trust-audit/mcp-server/ethancod1ng__binance-7.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 0739e4d294f0 | SAFE | B | 89 | first audit |
Questions
What is the Binance MCP server?
A Model Context Protocol (MCP) server for integrating AI assistants with Binance cryptocurrency exchange APIs, enabling automated trading, market data access, and account management.
What tools does Binance expose?
10 in total: 7 read-only, 3 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Binance safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Binance need?
It reads BINANCE_API_KEY and BINANCE_API_SECRET from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Binance run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as binance-mcp-server at 1.1.2.
How current is this page?
The grade is for one exact copy of the source (0739e4d294f0), read on 2026-10-08. The repository is watched and re-audited when it changes.