moomoo-market-data-mcp
Provides read-only real-time market data, including snapshots, quotes, candlesticks, order book, tickers, and security search, from the Futu OpenAPI to MCP clients like Codex.
README
moomoo Market Data MCP
A read-only Model Context Protocol server that exposes real-time market data from the official Futu OpenAPI (futu-api) to Codex and other MCP clients.
This project only provides market-data tools. It contains no order placement, account, position, or fund-transfer functions.
Tools
moomoo_connection_status— verify the Futu OpenD connectionmoomoo_snapshot— market snapshots for one or more symbolsmoomoo_quote— subscribed real-time quotesmoomoo_candles— current K-line/candlestick datamoomoo_order_book— real-time order bookmoomoo_ticker— recent time-and-sales recordsmoomoo_search_securities— search securities by code or name
Symbols use Futu's format, for example US.AAPL, HK.00700, and SH.600519.
Requirements
- Python 3.10+
- Futu OpenD installed, logged in, and running
- The required real-time quote entitlement in your moomoo/Futu account
The default OpenD endpoint is 127.0.0.1:11111. This server does not need your moomoo password.
Install and run
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
Optional environment variables:
export FUTU_OPEND_HOST=127.0.0.1
export FUTU_OPEND_PORT=11111
Codex MCP configuration
Add the server using the Python environment where it was installed:
[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"
Restart Codex after changing MCP configuration, then call moomoo_connection_status.
Data and safety notes
- Availability, latency, depth, and coverage depend on OpenD, account region, exchange hours, and quote entitlements.
- Subscription quotas are enforced by Futu.
- Returned data is informational and is not investment advice.
- Do not expose OpenD to the public internet. Keep it on localhost or a trusted private network.
Development
pip install -e ".[dev]"
pytest
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.