nnquant_qmt-mcp-server
QMT-MCP-Server is a server application based on the Model Control Protocol designed to facilitate stock trading functionalities by integrating with the QMT trading system. It offers key features such as asset and position querying, order placement, and cancellation while emphasizing its use for educational purposes.
QMT-MCP-Server
Empowers large models with stock trading capabilities!
QMT-MCP-Server is a Model Control Protocol (MCP)-based server application designed to interface with the Xunto QMT trading system and provide stock trading-related functionality.
For educational and learning purposes only, use cautiously in live trading environments.
Implemented Features
- Account asset inquiry
- Position information inquiry
- Order placement
- Order cancellation
System Requirements
- Python >= 3.10
- QMT trading permission and MiniQMT running locally
Installation Instructions
- Clone the project locally
- Install dependencies
- Run the project
Configuration Instructions
System prompts for necessary configuration information on first run, saving it in xttrader.yaml
.
MCP Usage Tips
Configure the MCP server in your client, for example, setting it up to http://localhost:8001/sse
for Cursor.
Important Notes
- Ensure MiniQMT system is running normally before use.
- Verify account information carefully before trading.
- Stock codes must include the exchange suffix (.SH or .SZ).
- The program is for learning purposes only, use cautiously in live trading.