QMT-MCP-Server logo

QMT-MCP-Server

by MCP-Mirror

QMT-MCP-Server is a server application based on MCP (Model Control Protocol) that provides stock trading related function interfaces for connecting to the Xuntou QMT trading system. It empowers large models with the ability to execute stock trades.

View on GitHub

Last updated: N/A

What is QMT-MCP-Server?

QMT-MCP-Server is a server application based on the Model Control Protocol (MCP) designed to interface with the Xuntou QMT trading system. It provides a set of APIs that allow large language models (LLMs) to interact with the QMT system and execute stock trades.

How to use QMT-MCP-Server?

  1. Install Python >= 3.10 and uv package manager. 2. Clone the repository. 3. Install dependencies using uv sync. 4. Run the server using uv run main.py. 5. Configure the MiniQMT path and account information when prompted. 6. Configure your MCP client with the server URL (e.g., http://localhost:8001/sse). 7. Use natural language commands to interact with the server.

Key features of QMT-MCP-Server

  • Account asset query

  • Position information query

  • Order placement

  • Order cancellation

Use cases of QMT-MCP-Server

  • Querying account holdings via natural language

  • Placing buy orders using natural language commands

  • Cancelling orders via natural language

  • Integrating with other MCP services for end-to-end trading workflows

FAQ from QMT-MCP-Server

What are the system requirements?

Python >= 3.10 and a running MiniQMT instance with trading permissions.

How do I install the server?

Clone the repository, install dependencies using uv sync, and run uv run main.py.

Where is the configuration stored?

The configuration is stored in the xttrader.yaml file.

How do I configure the MCP client?

Configure the MCP client with the server URL (e.g., http://localhost:8001/sse).

What is the recommended usage?

This project is for educational and research purposes only. Use caution when using it in a live trading environment.