moomoo-market-data-mcp
moomoo Market Data MCP
공식 Futu OpenAPI(futu-api)의 실시간 시장 데이터를 Codex 및 기타 MCP 클라이언트에 제공하는 읽기 전용 Model Context Protocol 서버입니다.
이 프로젝트는 시장 데이터 도구만 제공합니다. 주문, 계정, 포지션 또는 자금 이체 기능은 포함되어 있지 않습니다.
도구
moomoo_connection_status— Futu OpenD 연결 확인moomoo_snapshot— 하나 이상의 심볼에 대한 시장 스냅샷moomoo_quote— 구독한 실시간 호가moomoo_candles— 현재 K-라인/캔들스틱 데이터moomoo_order_book— 실시간 호가창(오더북)moomoo_ticker— 최근 체결 내역moomoo_search_securities— 코드 또는 이름으로 증권 검색
심볼은 Futu 형식을 사용합니다. 예: US.AAPL, HK.00700, SH.600519.
Related MCP server: TickDB MCP
요구 사항
Python 3.10+
Futu OpenD 설치, 로그인, 실행 상태
moomoo/Futu 계정에 필요한 실시간 호가 권한
기본 OpenD 엔드포인트는 127.0.0.1:11111입니다. 이 서버는 moomoo 비밀번호가 필요하지 않습니다.
설치 및 실행
git clone https://github.com/amao69904/moomoo-market-data-mcp.git
cd moomoo-market-data-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e .
moomoo-market-data-mcp선택적 환경 변수:
export FUTU_OPEND_HOST=127.0.0.1
export FUTU_OPEND_PORT=11111Codex MCP 구성
설치된 Python 환경을 사용하여 서버를 추가합니다:
[mcp_servers.moomoo-market-data]
command = "/absolute/path/to/moomoo-market-data-mcp/.venv/bin/moomoo-market-data-mcp"
[mcp_servers.moomoo-market-data.env]
FUTU_OPEND_HOST = "127.0.0.1"
FUTU_OPEND_PORT = "11111"MCP 구성을 변경한 후 Codex를 다시 시작하고 moomoo_connection_status를 호출하세요.
데이터 및 안전 참고 사항
가용성, 지연 시간, 깊이 및 범위는 OpenD, 계정 지역, 거래소 운영 시간 및 호가 권한에 따라 달라집니다.
구독 할당량은 Futu가 적용합니다.
반환된 데이터는 정보 제공용이며 투자 조언이 아닙니다.
OpenD를 공개 인터넷에 노출하지 마세요. localhost 또는 신뢰할 수 있는 사설 네트워크에 유지하세요.
개발
pip install -e ".[dev]"
pytest라이선스
MIT
Available Tools
7 toolsmoomoo_candlesC
Return current candles. ktype examples: K_1M, K_5M, K_DAY.
Inputs: code (required), count, ktype, autype. Returns: result
moomoo_connection_statusA
Check whether the configured Futu OpenD endpoint is reachable.
Inputs: no named parameters. Returns: object
moomoo_order_bookB
Return the real-time bid/ask order book for one symbol.
Inputs: code (required), depth. Returns: object
moomoo_quoteC
Subscribe and return the latest real-time quote for each symbol.
Inputs: codes (required). Returns: result
moomoo_search_securitiesB
Search securities in a market such as US, HK, SH, or SZ.
Inputs: query (required), market (required), limit, security_type. Returns: result
moomoo_snapshotB
Get market snapshots. Symbols must look like US.AAPL or HK.00700.
Inputs: codes (required). Returns: result
moomoo_tickerC
Return recent real-time time-and-sales records for one symbol.
Inputs: code (required), count. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools target clearly distinct market data products (candles, order book, ticker, search, connection status). Snapshot and quote could be somewhat confusable since both return current market state, but their descriptions generally clarify the difference.
All tools share a consistent moomoo_ prefix and snake_case convention. Most are noun-like resource names (snapshot, quote, candles, order_book, ticker), while search_securities is the only verb_noun form, which is a minor deviation.
Seven tools is well-scoped for a market data server. Each tool covers a major data type or operation without unnecessary bloat or noticeable redundancy.
The toolset covers the core market data surface: search, current snapshots, quotes, candles, order book, and time-and-sales. Historical candle retrieval and additional market-data products like options or index constituents are absent, but these are reasonable gaps.
Maintenance
Related MCP Connectors
Unofficial Market Data App MCP — wraps the Market Data App API (marketdata.app)
Public Gate market data MCP for spot, futures, margin, options, delivery, earn, and alpha.
Historical tick, order book and settlement data for Polymarket and Predict.fun crypto up/down markets, plus smart-money lists and backtest quotes, over a read-only MCP server.
Real-time crypto market data: candles, tickers, orderbooks across 13+ exchanges via MCP.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables querying real-time and historical financial market data for stocks, options, forex, and crypto, including quotes, trades, technical indicators, and reference data through a set of MCP tools.713MIT

TickDB MCPofficial
AlicenseNot gradedqualityBmaintenanceUnified real-time & historical market data API for Forex, stocks (US/HK/A-share), crypto, indices & precious metals. Tick, order book depth & K-line via REST + WebSocket. AI-native: MCP server, Skill & CLI.938MIT- AlicenseCqualityCmaintenanceRead-only MCP server that exposes Futu OpenD's investment-research quote APIs (stocks, options, futures, financials, news, etc.) as MCP tools, leveraging an already-running OpenD gateway with no separate authentication.539MIT
- FlicenseNot gradedqualityDmaintenanceProvides stock market data (search, quotes, real-time, charts) for A-share, Hong Kong, and US stocks via MCP tools.-