MCP server for Binance cryptocurrency exchange based on ccxt library, providing trading operations, account queries, and market data tools for AI agents
Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
This server has critical definition quality issues that make it unsuitable for production use. While all 31 tools have names and basic descriptions, the schema documentation is severely incomplete, descriptions are mostly generic Chinese text without actionable guidance, and there is no error handling documentation. The server lacks input validation hints, parameter constraints, output schema documentation, and per-parameter type specifications in the actual tool registration (visible in tools.py excerpt shows decorator-based registration without explicit schema objects). Many parameters are marked nullable without explanation of what happens when omitted. The codebase shows schemas are passed to fastmcp but the actual schema objects are not visible in the provided source, suggesting inferred rather than explicit tool definitions. Per the hard rules, if actual tool definitions cannot be seen, per-tool scores must be capped at 50; across 31 tools with mostly missing/generic descriptions and no visible explicit schemas, the average is severely penalized.
Descriptions are generic Chinese phrases without actionable guidance. Examples: '创建现货订单' (create spot order), '查询账户余额' (query account balance). These provide ZERO guidance to LLMs about WHEN to use the tool, WHAT it returns, or HOW it affects state. When to use it instead of similar tools? What does it return?'
Rewrite ALL tool descriptions in English (not Chinese) as 50 - 150 character LLM-optimized summaries. Format: '[VERB] [WHAT] [WHEN/WHY].' Example for create_spot_order: 'Create a market or limit buy/sell order on Binance spot market. Specify amount, price (for limit), and side. Returns order ID and status.'
Add output schema documentation for every tool. Use a structured block in each description or a separate schema field. Example for get_balance: 'Returns {account_id: string, balances: {[currency: string]: {free: number, used: number, total: number}}, timestamp: ISO8601}.'
Add per-parameter usage guidance. For each parameter, explain: (a) what it controls, (b) valid values or range, (c) what happens if omitted. Example for order_type in create_spot_order: 'Order type: "limit" (default, requires price), "market" (ignores price), or "stop_limit" (requires stop_price and limit_price). Determines how the order executes.'
Convert all nullable parameters to explicit required/optional fields with clear semantics. If price is nullable only for market orders, state: 'price (required if order_type is limit, omit for market).'
Add enum constraints to fastmcp tool schemas for side, order_type, margin_mode, and account_type. Example: side: {type: 'string', enum: ['buy', 'sell'], description: 'Buy or sell side of the order.'}
Provide numeric bounds for leverage, amount, and price parameters. Example for set_leverage: 'leverage (number, 1 - 125): Leverage multiplier. Higher leverage increases risk. Binance futures supports up to 125x.'
Spec posture evidence
Inferred effective spec: <=2025-11-25.
Relies on Logging (deprecated) - log to stderr or use OpenTelemetry
No output schema documentation visible. Tools return data but there is no specification of what fields agents should expect. LLMs need to know what fields to expect so they can plan downstream tool calls.' Example: what fields does get_balance return? Is it {balance: {BTC: 1.5, USDT: 100}}? What type are the values? Without this, agents cannot chain calls reliably.
No parameter-level descriptions in tool definitions. While schema JSON shows param descriptions (e.g., '账户ID', '交易对'), these are single Chinese words or phrases offering minimal guidance. Example: 'account_type' with description '账户类型 ("spot" | "future" | "option")' does not explain WHEN to use each type or what happens if omitted.
No error handling guidance. The handle_ccxt_error decorator in tools.py logs errors but tool descriptions do not explain what errors agents should expect or how to recover. A raw error or stack trace gives the agent nothing to act on.' Example: if create_spot_order fails due to insufficient balance, what should the agent do? Call get_balance first? Reduce amount? This is undocumented.
Nullable parameters lack explanation. Many params are marked nullable but descriptions do not explain: (a) what happens when omitted? (b) is it optional or required? Example: 'price' in create_spot_order is nullable with note '(市价单可为None)' (price can be None for market orders) but 'order_type' default is 'limit', so an agent passing no order_type and no price gets unclear behavior.
account_id parameter appears to be an opaque system ID. Accept usernames, emails, and display names, resolve them to system IDs inside the tool.' There is no evidence that account_id can be resolved from a human-friendly alias (e.g., email, account name). An agent must know how to obtain or compute account_id before calling any WRITE or READ tool that requires it.
No tool annotations present (readOnlyHint, destructiveHint, idempotentHint). Per current spec (2026-07-28), tools should be annotated to help agents understand consequences. Example: create_spot_order is destructive (irreversible), get_balance is read-only, and cancel_order has side effects. Tools lack these hints, forcing agents to infer intent from names and descriptions alone.
Multiple tools perform similar actions on different asset classes (spot, futures, options) without clear guidance on when to use each. Example: create_spot_order, create_futures_order, create_option_order, and create_contract_order all create orders. For futures, use create_futures_order instead.').
No validation constraints visible for enums or numeric ranges. Example: 'side' parameter expects 'buy' or 'sell' but no enum constraint is visible in tool definitions. 'order_type' accepts 'limit', 'market', 'stop_limit' but LLMs may hallucinate other values. Free-form strings invite hallucinated values.' Leverage values (in set_leverage) should have min/max bounds (e.g., 1 - 125x for Binance futures).
Pagination not visible for list tools. get_orders, get_trades, get_my_trades all accept 'limit' but there is no documented 'offset', 'page', or 'next_cursor' for pagination. Without pagination, large results blow the context window.' If a user has 10,000 trades, agents cannot retrieve them all in one call.
No confirmation/dry-run for destructive operations. Irreversible operations like create_spot_order, cancel_order, close_position should support a confirmation step or dry-run. Agents make mistakes, a confirm_before_execute pattern prevents catastrophic errors.' No tool supports this pattern.
Add recovery guidance to error scenarios. Example in create_spot_order description: 'Fails if insufficient balance (call get_balance first), invalid symbol (call get_ticker to validate), or order parameters violate exchange rules. Returns descriptive error message with invalid constraint.'
Distinguish between asset classes in tool names and descriptions. Enhance create_contract_order with: 'Generic contract order creation. Specify contract_type ("future" for perpetuals, "option" for options). For spot orders, use create_spot_order. For dedicated futures, use create_futures_order.'
Add tool annotations via fastmcp. Mark all GET/LIST tools with readOnlyHint=true. Mark WRITE/DELETE tools with destructiveHint=true. Mark operations that are safe to retry (idempotent=true if applicable). This requires fastmcp annotation support or equivalent metadata.
Implement pagination explicitly for list tools. Add offset and page_size parameters. Return total_count or next_token in response. Document: 'Limits list output to page_size items (default 50, max 500). Pass offset to fetch next page.'
Add confirmation/dry-run support for all WRITE tools. Example: create_spot_order should accept dry_run=true parameter. When true, return proposed order details without executing. This lets agents verify before committing.
Document account_id resolution. Add a tool like get_accounts() that returns human-friendly account aliases or names mapped to account_ids. Or enhance tool descriptions with: 'account_id: Your Binance account UUID (obtain via get_accounts or configuration).'
Add time zone and date format clarification. Many tools accept since (Unix timestamp) but do not specify timezone. Document: 'since: Unix timestamp in milliseconds (use current time minus duration in ms for relative queries). Or use ISO8601 dates like 2024-01-15T00:00:00Z (converted to timestamp internally).'
Reduce parameter overloading. Example: close_position has optional side parameter. Document clearly: 'side (optional): "buy" or "sell". If omitted, closes all open positions for the symbol. If specified, closes only that side.'
Create a summary/discovery tool. Example: get_market_info(symbol) returns available order types, min/max amounts, precision, trading fees, margin limits, leverage ranges. This helps agents auto-validate inputs before calling WRITE tools.
Add request/response examples to the README or documentation. For each tool, show a sample call and expected response. This guides agent developers and reduces guesswork.