Content
# QMT-MCP-Server
Empower large models with the ability to execute stock trades!
QMT-MCP-Server is a server application based on MCP (Model Control Protocol) for interfacing with the XunTou QMT trading system, providing functional interfaces related to stock trading.
**This project is for交流学习 purposes only. Please use it with caution in live trading environments.**
## Implemented Features
- Account asset query
- Position information query
- Order placement
- Order cancellation
## System Requirements
- Python >= 3.10
- QMT trading permissions enabled, and miniqmt started locally
## Installation Instructions
**Please install the python package management tool uv before use**
For installation instructions, please refer to
https://docs.astral.sh/uv/getting-started/installation/#github-releases
1. Clone the project to your local machine
```bash
git clone https://github.com/nnquant/qmt-mcp-server
```
2. Install dependencies:
```bash
uv sync
```
3. Run the project
```bash
uv run main.py
```
## Configuration Instructions
Upon the first run, the system will prompt you to enter the necessary configuration information:
- Path to MiniQMT
- Funding account
The configuration information will be automatically saved in the `xttrader.yaml` file.
## MCP Usage Tips
1. Choose a suitable MCP client and configure the MCP server. For example, in Cursor, configure as follows:
```json
{
"mcpServers": {
"qmt-mcp-server": {
"url": "http://localhost:8001/sse"
}
}
}
```
2. Instruction Examples
- Please help me query my account holdings
- Buy 100 shares of 600000.SH stock at a price of 10 yuan
- Buy 100 shares of Ping An Bank stock at a price of 11 yuan
- **(Due to differences in different large models, stock names may not be correctly converted to stock codes in some cases. Please use caution when placing orders using stock names.)**
- Buy XXXX stock for me at a price of XX with 20% of available position
- Coordinate with other MCP services to complete a one-stop stock selection and trading process
## Precautions
- Please ensure that the MiniQMT system is running properly before use
- Please carefully verify account information before trading
- All stock codes need to include the exchange suffix (.SH or .SZ)
- This program is for communication and learning purposes only. Please use it with caution in live trading. I am not responsible for any losses caused by users using this program.
Connection Info
You Might Also Like
valuecell
Valuecell is a Python project for efficient data management.
hexstrike-ai
HexStrike AI is an AI-powered MCP cybersecurity automation platform with 150+ tools.
AP2
AP2 provides code samples and demos for the Agent Payments Protocol.
mcp-endpoint-server
A high-performance MCP endpoint server for xiaozhi device integration using...
mcp-1c-v1
MCP server with RAG description of 1C configuration structure
ChatPPT-MCP
ChatPPT-MCP is an AI service for generating and editing PPTs from themes or...