1. Conduid
  2. Finance
  3. Moomoo API MCP
MCP server · Finance

Moomoo API MCP

MCP Server for AI Agents to use Moomoo OpenAPI (https://www.moomoo.com/OpenAPI)

Unclaimed Apache-2.0 last commit 7 months ago financetradingbotmcp-servertrading
58Fair

Scored 20 hours ago · breakdown

About Moomoo API MCP

Moomoo API MCP is an MCP server published by Litash in the Finance category: mCP Server for AI Agents to use Moomoo OpenAPI (https://www.moomoo.com/OpenAPI). Conduid read 22 tools from its source: cancel_order, check_health, get_account_summary, get_accounts, get_assets, get_cash_flow and 16 more. It is published to PyPI as moomoo-api-mcp and runs with uvx.

The repository has 42 stars and 10 forks, is licensed Apache-2.0, and its last commit was on 3 May 2026. The latest release is v0.1.8 (12 Apr 2026). It follows v0.1.7 (20 Jan 2026), and the 5 most recent releases go back to v0.1.4 (17 Jan 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include finance, tradingbot and trading.

Install

Claude Code
claude mcp add moomoo-api-mcp -- uvx --refresh moomoo-api-mcp
Run
uvx --refresh moomoo-api-mcp
uvx
uvx moomoo-api-mcp
pip
pip install moomoo-api-mcp
From source
git clone https://github.com/Litash/moomoo-api-mcp

Tools (22)

cancel_orderCancel an existing order.
ParameterTypeDescription
acc_idstringAccount ID from get_accounts().
order_id *stringOrder ID to cancel. Get from get_orders().
trd_envstringTrading environment - 'REAL' or 'SIMULATE'. Default REAL.
check_healthCheck connectivity to Moomoo and MCP server health.
get_account_summaryGet complete account summary including assets and positions in one call.
ParameterTypeDescription
acc_idstringAccount ID. Must be obtained from get_accounts().
trd_envstringTrading environment. 'REAL' (default, requires unlock_trade first) or 'SIMULATE' (no unlock needed, for testing).
get_accountsGet list of trading accounts.
get_assetsGet account assets including cash, market value, buying power.
ParameterTypeDescription
acc_idstringAccount ID. Must be obtained from get_accounts().
currencystringFilter by currency (e.g., 'HKD', 'USD'). Leave None for default.
refresh_cachebooleanWhether to refresh the cache.
trd_envstringTrading environment. 'REAL' (default, requires unlock_trade first) or 'SIMULATE' (no unlock needed, for testing).
get_cash_flowGet account cash flow history.
ParameterTypeDescription
acc_idstringAccount ID. Must be obtained from get_accounts().
clearing_datestringFilter by clearing date (YYYY-MM-DD format).
trd_envstringTrading environment. 'REAL' (default, requires unlock_trade first) or 'SIMULATE' (no unlock needed, for testing).
get_dealsGet list of today's deals (executed trades).
ParameterTypeDescription
acc_idstringAccount ID from get_accounts().
codestringFilter by stock code (e.g., 'US.AAPL'). Empty string for all.
refresh_cachebooleanWhether to refresh the cache. Default False.
trd_envstringTrading environment - 'REAL' or 'SIMULATE'. Default REAL.
get_historical_klinesGet historical candlestick (K-line) data for a stock.
ParameterTypeDescription
autypestringAdjustment type for splits/dividends: - QFQ: Forward adjustment (default) - HFQ: Backward adjustment - NONE: No adjustment
code *stringStock code (e.g., 'US.AAPL').
endstringEnd date in YYYY-MM-DD format. Defaults to today.
ktypestringK-line type. Options: - K_1M: 1 minute - K_3M: 3 minutes - K_5M: 5 minutes - K_15M: 15 minutes - K_30M: 30 minutes - K_60M: 60 minutes - K_DAY: Daily (default) - K_WEEK: Weekly - K_MON: Monthly - K_QUARTER: Quarterly - K_YEAR: Yearly
max_countintegerMaximum number of candles to return (default 100, max 1000).
startstringStart date in YYYY-MM-DD format. Defaults to 365 days before end.
get_history_dealsGet historical deals (executed trades).
ParameterTypeDescription
acc_idstringAccount ID from get_accounts().
codestringFilter by stock code (e.g., 'US.AAPL'). Empty string for all.
endstringEnd date in 'YYYY-MM-DD' format. Empty for today.
startstringStart date in 'YYYY-MM-DD' format. Empty for max range.
trd_envstringTrading environment - 'REAL' or 'SIMULATE'. Default REAL.
get_history_ordersGet historical orders.
ParameterTypeDescription
acc_idstringAccount ID from get_accounts().
codestringFilter by stock code (e.g., 'US.AAPL'). Empty string for all.
endstringEnd date in 'YYYY-MM-DD' format. Empty for today.
startstringStart date in 'YYYY-MM-DD' format. Empty for max range.
status_filter_listarrayFilter by order statuses (see get_orders for options).
trd_envstringTrading environment - 'REAL' or 'SIMULATE'. Default REAL.
get_margin_ratioGet margin ratio for stocks.
ParameterTypeDescription
code_list *arrayList of stock codes (e.g., ['US.AAPL', 'US.TSLA']).
get_market_snapshotGet market snapshot for multiple stocks efficiently.
ParameterTypeDescription
codes *arrayList of stock codes (up to 400). E.g., ['US.AAPL', 'US.TSLA', 'HK.00700'].
get_max_tradableGet maximum tradable quantity for a stock.
ParameterTypeDescription
acc_idstringAccount ID. Must be obtained from get_accounts().
adjust_limitnumberAdjust limit percentage.
code *stringStock code (e.g., 'US.AAPL').
order_idstringOptional order ID for modification scenarios.
order_type *stringOrder type (e.g., 'NORMAL', 'LIMIT', 'MARKET').
price *numberTarget price for the order.
trd_envstringTrading environment. 'REAL' (default, requires unlock_trade first) or 'SIMULATE' (no unlock needed, for testing).
get_order_bookGet order book (market depth) showing bid/ask price levels.
ParameterTypeDescription
code *stringStock code (e.g., 'HK.00700', 'US.AAPL').
numintegerNumber of price levels to return (default 10).
get_ordersGet list of today's orders.
ParameterTypeDescription
acc_idstringAccount ID from get_accounts().
codestringFilter by stock code (e.g., 'US.AAPL'). Empty string for all.
refresh_cachebooleanWhether to refresh the cache. Default False.
status_filter_listarrayFilter by order statuses. Options: - 'UNSUBMITTED', 'WAITING_SUBMIT', 'SUBMITTING', 'SUBMIT_FAILED' - 'SUBMITTED', 'FILLED_PART', 'FILLED_ALL' - 'CANCELLING_PART', 'CANCELLING_ALL', 'CANCELLED_PART', 'CANCELLED_ALL' - 'REJECTED', 'DISABLED', 'DELETED', 'FAILED', 'NONE'
trd_envstringTrading environment - 'REAL' or 'SIMULATE'. Default REAL.
get_positionsGet current positions.
ParameterTypeDescription
acc_idstringAccount ID. Must be obtained from get_accounts().
codestringFilter by stock code (e.g., 'US.AAPL').
marketstringFilter by market (e.g., 'US', 'HK', 'CN', 'SG', 'JP').
pl_ratio_maxnumberMaximum profit/loss ratio filter.
pl_ratio_minnumberMinimum profit/loss ratio filter.
refresh_cachebooleanWhether to refresh cache.
trd_envstringTrading environment. 'REAL' (default, requires unlock_trade first) or 'SIMULATE' (no unlock needed, for testing).
get_stock_quoteGet real-time stock quotes for specified codes.
ParameterTypeDescription
codes *arrayList of stock codes (e.g., ['US.AAPL', 'HK.00700']).
get_user_securityGet list of securities in a specific user-defined group (watchlist).
ParameterTypeDescription
group_name *stringName of the security group (e.g., 'Favorites', 'Tech').
get_user_security_groupGet list of user-defined security groups (watchlists).
ParameterTypeDescription
group_typeintegerType of groups to return. Options: - 0: All groups (default) - 1: Custom groups only - 2: System groups only
modify_orderModify an existing order.
ParameterTypeDescription
acc_idstringAccount ID from get_accounts().
adjust_limitnumberAdjust limit percentage (0-100). Default 0.
modify_order_op *stringModification operation: - 'NORMAL': Modify price/quantity. - 'CANCEL': Cancel the order. - 'DISABLE': Disable the order. - 'ENABLE': Enable a disabled order. - 'DELETE': Delete the order.
order_id *stringOrder ID to modify. Get from get_orders().
pricenumberNew price (optional, for NORMAL operation).
qtyintegerNew quantity (optional, for NORMAL operation).
trd_envstringTrading environment - 'REAL' or 'SIMULATE'. Default REAL.
place_orderPlace a new trading order.
ParameterTypeDescription
acc_idstringAccount ID from get_accounts(). Required if multiple accounts exist.
adjust_limitnumberAdjust limit percentage (0-100). Default 0.
aux_pricenumberTrigger price for stop/if-touched order types (required for STOP, STOP_LIMIT, MARKET_IF_TOUCHED, LIMIT_IF_TOUCHED).
code *stringStock code (e.g., 'US.AAPL', 'HK.00700').
order_typestringOrder type. Supported values: - 'NORMAL': Enhanced limit order (HK), limit order (US/A-share). - 'MARKET': Market order. - 'ABSOLUTE_LIMIT': Limit order (HK only, exact price match required). - 'AUCTION': Auction order (HK). - 'AUCTION_LIMIT': Auction limit order (HK). - 'SPECIAL_LIMIT': Special limit / Market IOC (HK, partial fill then cancel). - 'SPECIAL_LIMIT_ALL': Special limit all-or-none (HK, fill all or cancel). - 'STOP': Stop market order. - 'STOP_LIMIT': Stop limit order. - 'MARKET_IF_TOUCHED': Market if touched (take profit). - 'LIMIT_IF_TOUCHED': Limit if touched (take profit). - 'TRAILING_STOP': Trailing stop market order. - 'TRAILING_STOP_LIMIT': Trailing stop limit order.
price *numberOrder price. For market orders, this is used as price limit.
qty *integerOrder quantity (number of shares).
remarkstringOptional order note/remark.
time_in_forcestringTime in force for the order. Default 'DAY'. - 'DAY': Order valid for current trading day only. - 'GTC': Good-Til-Cancelled, order remains active until filled or cancelled.
trail_spreadnumberOptional trailing spread for trailing stop limit types.
trail_typestringTrailing type for trailing stop orders (required for TRAILING_STOP, TRAILING_STOP_LIMIT). Values: 'RATIO' or 'AMOUNT'.
trail_valuenumberTrailing value (ratio or amount) for trailing stop types.
trd_envstringTrading environment - 'REAL' or 'SIMULATE'. Default REAL.
trd_side *stringTrade side - 'BUY' or 'SELL'.
unlock_tradeUnlock trade to access REAL account data.
ParameterTypeDescription
passwordstringPlain text trade password (the password you set in Moomoo app). If not provided, will look for MOOMOO_TRADE_PASSWORD env var.
password_md5stringMD5 hash of trade password (alternative to password). If not provided, will look for MOOMOO_TRADE_PASSWORD_MD5 env var. Provide either password or password_md5, not both.

Security checks

Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.1K words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by uv.lock.
  • ✓No dynamic code executionScanned 12 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiosrc/moomoo_mcp/server.py:120
Starts other programs
No calls that start other programs
Outbound network calls
No outbound network calls
Writes or deletes files
No file writes or deletes
Lockfile
uv.lock

Pattern matches on the source text of 12 files: places to read, not proof of what the code does at run time.

Releases

v0.1.8v0.1.8 · 12 Apr 2026What's Changed feat(server): read OpenD host/port from env and apply to services by @Litash in https://github.com/Litash/moomoo-api-mcp/pull/7 Full Changelog: https://github.com/Litash/moomoo-api-mcp/compare/v0.1.7...v0.1.8
v0.1.7v0.1.7 · 20 Jan 2026What's Changed fix(account): preserve account ID precision by using string type by @Litash in https://github.com/Litash/moomoo-api-mcp/pull/6 Full Changelog: https://github.com/Litash/moomoo-api-mcp/compare/v0.1.6...v0.1.7
v0.1.6v0.1.6 · 20 Jan 2026What's Changed Feat/auto select account for trades by @Litash in https://github.com/Litash/moomoo-api-mcp/pull/4 fix(trade): handle None status filter as empty list and make currency… by @Litash in…
v0.1.5v0.1.5 · 18 Jan 2026What's Changed feat(trade): add automatic account selection for trades by @Litash in https://github.com/Litash/moomoo-api-mcp/pull/3 Full Changelog: https://github.com/Litash/moomoo-api-mcp/compare/v0.1.4...v0.1.5
v0.1.4v0.1.4 · 17 Jan 2026Full Changelog: https://github.com/Litash/moomoo-api-mcp/compare/v0.1.3...v0.1.4

README

The repository's README runs to about 1.1K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Moomoo API MCP

How do I install Moomoo API MCP?

In Claude Code, run claude mcp add moomoo-api-mcp -- uvx --refresh moomoo-api-mcp. Other MCP clients take the command after "--" in their server configuration.

Is Moomoo API MCP safe to use with an AI agent?

Its trust score is 58 out of 100 (fair). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 12 source files found that it serves MCP over stdio. Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Moomoo API MCP still maintained?

The last commit was 7 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Moomoo API MCP provide?

Conduid read 22 tools from the source: cancel_order, check_health, get_account_summary, get_accounts, get_assets, get_cash_flow, get_deals, get_historical_klines and 14 more. 20 of them publish their parameters, listed under Tools above.

What license is Moomoo API MCP released under?

The repository declares the Apache-2.0 license. That applies to the latest release, v0.1.8, as well.