Because downloading and reading are separate steps, a question about several stocks over a quarter becomes one batch download followed by one read — which is what makes a comparative analysis feasible in a single conversation.
A bridge to the QMT trading terminal's market data. It exposes the download-then-read pattern QMT uses: pull a stock's history down locally first, then read it back, with a time tool so a relative date such as "the last three months" resolves to real trading days.
- `get_instrument_detail_tool` — the detail record for one stock
- `download_history_data_tool` — downloads historical market data for a single stock over a period
- `download_history_data2_tool` — the same for several stocks at once
- `get_market_data_ex_tool` — reads market data back for multiple stocks
- `get_current_time_tool` — the current time, so relative date phrasing resolves to the right trading day before anything is queried
Windows only, because of the QMT client, and the QMT or MiniQMT terminal must already be started and running in the background before the server launches. Install with `pip install git+https://github.com/jm12138/qmt-mcp-server`, then run `qmt_mcp_server_stdio` for local use, or `qmt_mcp_server_sse --host 0.0.0.0 --port 8000` to serve it over the network. Stock codes are the exchange-suffixed ones QMT uses, such as `600941.SH`.
One command — pip install git+https://github.com/jm12138/qmt-mcp-server
