get_current_time_toolLABSCO SUMMARY
An assistant that can pull the price history and then reason over it.
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.
What it is
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.
What you get
get_instrument_detail_tool— the detail record for one stockdownload_history_data_tool— downloads historical market data for a single stock over a perioddownload_history_data2_tool— the same for several stocks at onceget_market_data_ex_tool— reads market data back for multiple stocksget_current_time_tool— the current time, so relative date phrasing resolves to the right trading day before anything is queried
Requirements
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.
Setup effort
One command — pip install git+https://github.com/jm12138/qmt-mcp-server
USE CASES
Reviewing how a stock has done recently
Settle today's date first, download the period you mean, and read back the daily bars for the analysis.
Comparing several companies in one sector
Download the batch in one call, then read them together so the comparison is over the same window.
Checking what a code actually refers to
Pull the instrument detail before running anything, so the analysis is about the security you meant.
Turning "the last three months" into real dates
The time tool resolves the relative phrase against the current date, so the download covers the window you intended.
5 tools
Listed in project docs. Your client may show a different list.
get_instrument_detail_tooldownload_history_data_tooldownload_history_data2_toolget_market_data_ex_toolBEFORE YOU INSTALL
What to know first
Tools you get
5 tools named in the project's documentation.
Requires
- Windows (the QMT client runs only on Windows)
- The QMT or MiniQMT client started and running in the background before the server starts
- qmt_mcp_server_stdio on PATH
INSTALLATION
Connect your client
Server setup
pip install git+https://github.com/jm12138/qmt-mcp-serverMCP Clients
Claude Desktop
{
"mcpServers": {
"qmt-mcp-server": {
"command": "qmt_mcp_server_stdio"
}
}
}VS Code — stdio
{
"servers": {
"qmt-mcp-server": {
"command": "qmt_mcp_server_stdio"
}
}
}VS Code — SSE
With the QMT or MiniQMT client running, start the server in SSE mode and keep it running:
qmt_mcp_server_sse --host 0.0.0.0 --port 8000{
"servers": {
"qmt-mcp-server": {
"type": "sse",
"url": "http://0.0.0.0:8000/sse"
}
}
}0.0.0.0 is the address the server listens on. If VS Code cannot connect to http://0.0.0.0:8000/sse, use the address of the machine running the server (127.0.0.1 on the same machine).