← MCP server and skill grades

Binance-MCP

nirholas/Binance-MCP

C
Type
MCP server
Scanned
Nov 17, 2026
Version
788eb87f1a58
Files read
1059

Binance MCP Server connects AI agents to a user's Binance exchange account to read market data, place spot and algorithmic trades, manage staking and loans, create gift cards, and withdraw funds. Its biggest risk is that its optional HTTP mode (--sse) opens an unauthenticated server on all network interfaces with wildcard CORS—letting any website the user visits or anyone on the same local network control the Binance account directly—and in default stdio mode a prompt-injected agent can still trade or move real funds up to the permissions granted to the API key.

What it can reach

Secrets
Reads BINANCE_API_KEY and BINANCE_API_SECRET from environment variables or a local .env file to sign Binance API requests.
Network
Sends public and authenticated HTTPS requests to api.binance.com to read account data, trade, manage earn/staking/loans/sub-accounts, create or redeem gift cards, and submit withdrawals; when started with --sse, also listens for HTTP connections on PORT (default 3002).
Files
Reads a local .env file on startup, and when the optional npm run init wizard is run, writes API credentials to .env and to Claude Desktop's claude_desktop_config.json or ./config.json.

Findings

1 high1 medium2 low
  1. HighUnauthenticated SSE server with wildcard CORS exposes Binance tools to websites and network peers

    src/server/sse.ts:17

    When started with --sse (or -s), the Express server exposes /sse and /message with no password or token check, enables wildcard CORS (Access-Control-Allow-Origin: *), and accepts caller-chosen session IDs via req.query.sessionId. Any website open in the user's browser or any host able to reach the port can connect directly with no AI involved and invoke tools using the user's Binance credentials, including reading balances, placing trades, generating redeemable gift card codes (BinanceGiftCardCreateCode), or submitting withdrawals (BinanceWalletWithdraw).

    Fix: Require a strong bearer token on /sse and /message, remove wildcard cors() and validate Origin and Host headers, and generate session IDs exclusively on the server instead of accepting req.query.sessionId.

  2. MediumSSE mode binds to all network interfaces (0.0.0.0) while logging localhost

    src/server/sse.ts:60

    In SSE mode, app.listen(PORT, ...) omits a host address, so Node.js binds to 0.0.0.0 / :: (every network interface) even though the startup log prints http://localhost:3002 and the documentation instructs users to connect via localhost. Anyone on the same Wi-Fi or local network can reach the MCP server over the network.

    Fix: Bind explicitly to 127.0.0.1 by default (for example, app.listen(Number(PORT), "127.0.0.1", ...)) and require an explicit opt-in setting to listen on external interfaces.

  3. LowSetup wizard writes plaintext Binance API secrets into git-tracked config.json

    src/init.ts:129

    Running npm run init on Linux (where configureClaude always returns false) or declining Claude Desktop setup writes the user's plaintext BINANCE_API_KEY and BINANCE_API_SECRET into config.json in the repository root. Unlike .env, config.json is tracked in git and missing from .gitignore, making it easy to accidentally commit live credentials; additionally, .env and config.json are written without restrictive 0600 file permissions.

    Fix: Add config.json to .gitignore, untrack config.json (or rename the template to config.example.json), and write .env and config files with mode 0o600.

  4. LowClaude plugin launches an unpinned npm package version at runtime

    plugins/binance-mcp/.mcp.json:1

    The bundled Claude Code plugin runs npx -y @nirholas/binance-mcp-server without pinning a package version. Each launch can automatically download and execute a newly published version from npm with access to the user's exported Binance API credentials.

    Fix: Pin the package to an exact version in plugins/binance-mcp/.mcp.json, such as @nirholas/binance-mcp-server@1.0.0.