QMT-MCP-Server Overview
In the dynamic world of stock trading and financial markets, the ability to leverage technology for enhanced decision-making and execution is paramount. Enter the QMT-MCP-Server, a robust application designed to integrate seamlessly with the QMT trading system, providing a comprehensive suite of functionalities for stock trading enthusiasts and professionals alike.
Key Features and Use Cases
1. Account Asset Query
The QMT-MCP-Server facilitates effortless access to your account’s asset information. This feature allows traders to make informed decisions by providing a clear overview of their current holdings and financial standing. By integrating with the QMT trading system, users can retrieve real-time data, ensuring that they have the most up-to-date information at their fingertips.
2. Position Information Query
Understanding your positions is crucial for effective trading strategies. The server enables users to query their position information, offering insights into current holdings, market value, and potential risks. This feature is particularly beneficial for traders who need to adjust their strategies based on market fluctuations and trends.
3. Order Placement
With the QMT-MCP-Server, placing orders becomes a seamless process. The server supports various order types, allowing users to execute trades with precision and confidence. Whether you’re buying or selling, the server ensures that your orders are processed efficiently, minimizing the risk of errors and maximizing potential gains.
4. Order Cancellation
In the fast-paced world of stock trading, the ability to swiftly cancel orders can be a game-changer. The QMT-MCP-Server empowers users with the capability to cancel orders with ease, providing the flexibility needed to adapt to changing market conditions. This feature is essential for risk management and optimizing trading outcomes.
System Requirements and Installation
To harness the full potential of the QMT-MCP-Server, certain system requirements must be met. The server requires Python version 3.10 or higher and necessitates the activation of QMT trading permissions. Additionally, the local system must have MiniQMT running.
Installation Steps
Clone the Project: Begin by cloning the project to your local machine using the command:
git clone https://github.com/nnquant/qmt-mcp-server
Install Dependencies: Utilize the ‘uv’ package management tool to synchronize and install necessary dependencies:
uv sync
Run the Project: Execute the main program using:
uv run main.py
Configuration Guidelines
Upon the initial run, users will be prompted to input essential configuration details such as the MiniQMT path and funding account information. These configurations are automatically saved in the xttrader.yaml
file for future reference.
MCP Usage Tips
Select the Appropriate MCP Client: Proper configuration of the MCP server is crucial. For instance, in Cursor, configure as follows:
{ "mcpServers": { "qmt-mcp-server": { "url": "http://localhost:8001/sse" } } }
Command Examples:
- Query account holdings.
- Purchase 100 shares of stock 600000.SH at 10 yuan.
- Buy 100 shares of Ping An Bank stock at 11 yuan.
- Utilize 20% of available positions to purchase specific stocks.
Important Considerations
Before utilizing the QMT-MCP-Server, ensure that the MiniQMT system is operational. Double-check account information before executing trades, and remember that all stock codes must include the exchange suffix (.SH or .SZ). This program is intended for educational and learning purposes, and users should exercise caution when applying it in live trading environments.
UBOS Platform Integration
The UBOS platform, a full-stack AI Agent Development Platform, complements the QMT-MCP-Server by offering advanced AI capabilities. UBOS focuses on integrating AI Agents into various business departments, enhancing the orchestration of AI Agents, and connecting them with enterprise data. By leveraging UBOS, users can build custom AI Agents using their LLM model and Multi-Agent Systems, further optimizing trading strategies and outcomes.
In conclusion, the QMT-MCP-Server, in conjunction with the UBOS platform, presents a powerful toolset for traders seeking to enhance their trading operations through technology and AI integration. By providing comprehensive functionalities and seamless integration, it empowers users to navigate the complexities of the stock market with confidence and precision.
QMT-MCP-Server
Project Details
- nnquant/qmt-mcp-server
- Last Updated: 4/10/2025
Categories
Recomended MCP Servers
MCP server implementation that enables AI assistants to search and reference Kibela content
MCP server for programmatic creation and management of n8n workflows. Enables AI assistants to build, modify, and...
MCP Server to run python code locally
An MCP server implementation enabling LLMs to work with new APIs and frameworks
This is a personal project to determine whether or not Claude 3.5 Sonnet can write moderately complex MCP...
MCP Server implementation for Ableton Live OSC control
Go server implementing Model Context Protocol (MCP) for filesystem operations.
MCP for reverse engineering
An official Qdrant Model Context Protocol (MCP) server implementation
MCP server for Qwen Max model
A model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android...