Binance Trading Agent Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Binance Trading Agent Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A safety-first Model Context Protocol (MCP) server that connects any LLM client (Claude, Cursor, custom agents) to the Binance Spot API — with a hard focus on guardrails, testnet-first development, and auditable order flow.
<p> <img alt="status" src="https://img.shields.io/badge/status-Phase%201--done-brightgreen"> <img alt="protocol" src="https://img.shields.io/badge/protocol-MCP-blue"> <img alt="exchange" src="https://img.shields.io/badge/exchange-Binance%20Spot-f0b90b"> <img alt="safety" src="https://img.shields.io/badge/mode-testnet--first-green"> <img alt="license" src="https://img.shields.io/badge/license-MIT-lightgrey"> </p>
7 read-only MCP tools for reading market data and account info on Binance Spot Testnet.
| Tool | Type | Input | Purpose |
|---|---|---|---|
get_spot_price | public | symbol | price, 24h change, bid/ask, high/low, volume |
get_klines | public | symbol, interval, limit | candlestick data |
get_order_book | public | symbol, limit | order book depth |
get_symbol_rules | public | symbol | minQty, stepSize, tickSize, minNotional |
get_account_balances | private | hideZero | free/locked balances, canTrade |
get_open_orders | private | symbol? | open orders |
get_trade_history | private | symbol, limit | recent trades |
Not in Phase 1: order placement/cancellation, futures, margin, OCO, websockets, autonomous actions.
src/
binance/ Layer 1 — Binance HTTP client
client.ts signedRequest / publicRequest, retry, timeout
signing.ts HMAC SHA256
errors.ts typed error classes
rateLimiter.ts weight tracking + backoff
types.ts response types
services/ Layer 2 — domain services (normalization)
marketDataService.ts
accountService.ts
tools/ Layer 3 — MCP tools (1 file = 1 tool)
getSpotPrice.ts ... getTradeHistory.ts
config.ts .env validation (zod)
logger.ts structured JSON logging
server.ts MCP server registration
tests/
unit/ signing, errors, rateLimiter, services, client# 1. Install
npm install
# 2. Configure (Binance Spot TESTNET keys)
cp .env.example .env
# Edit .env with your testnet keys
# 3. Run the MCP server
npm run devAdd to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"binance": {
"command": "npx",
"args": ["tsx", "/path/to/binance-trading-agent-mcp/src/server.ts"]
}
}
}Add to .cursor/mcp.json:
{
"mcpServers": {
"binance": {
"command": "npx",
"args": ["tsx", "/path/to/binance-trading-agent-mcp/src/server.ts"]
}
}
}Get BTC price:
tool: get_spot_price
args: { "symbol": "BTCUSDT" }Get 1h klines (last 100 candles):
tool: get_klines
args: { "symbol": "BTCUSDT", "interval": "1h", "limit": 100 }Get order book (top 20 levels):
tool: get_order_book
args: { "symbol": "ETHUSDT", "limit": 20 }Get symbol trading rules:
tool: get_symbol_rules
args: { "symbol": "BTCUSDT" }Get account balances:
tool: get_account_balances
args: { "hideZero": true }Get open orders:
tool: get_open_orders
args: { "symbol": "BTCUSDT" }Get trade history:
tool: get_trade_history
args: { "symbol": "BTCUSDT", "limit": 50 }# Run all unit tests
npm test
# Watch mode
npm run test:watchpreview/place/cancel, full loggingThis is engineering infrastructure, not financial advice. Automated trading with real funds carries real risk of loss. Use the Binance Testnet and dry_run mode by default. You are solely responsible for any keys, funds, strategy, and regulatory compliance in your jurisdiction.
MIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.