Basic information
About QMT-MCP-Server
QMT-MCP-Server
QMT-MCP-Server is a MCP server in the Other category listed in the AddMCP.net directory, published by nnquant. Supported transport: stdio. Runtime: python. The repository has 46 GitHub stars. Source code is hosted on github.com. Related topics: model-control-protocol, qmt-mcp-server, stock-trading.
Setup
{
"mcpServers": {
"qmt-mcp-server": {
"command": "uv",
"args": [
"sync"
]
}
}
}
{
"mcpServers": {
"qmt-mcp-server": {
"command": "uv",
"args": [
"sync"
]
}
}
}
{
"servers": {
"qmt-mcp-server": {
"command": "uv",
"args": [
"sync"
]
}
}
}
QMT-MCP-Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"qmt-mcp-server": {
"command": "uv",
"args": [
"sync"
]
}
}
}
QMT-MCP-Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is QMT-MCP-Server?
QMT-MCP-Server is a server application based on the Model Context Protocol (MCP) that connects to the Xuntou QMT trading system, enabling large language models to execute stock trading operations. It is intended for learning and exchange purposes only and should be used cautiously in live trading environments.
How to use QMT-MCP-Server?
Install the uv package manager, clone the repository, run uv sync to install dependencies, then execute uv run main.py. On first run, the server prompts for the MiniQMT path and funding account, saving configuration to xttrader.yaml. The server exposes an SSE endpoint at http://localhost:8001/sse for MCP clients.
Key features of QMT-MCP-Server
- Account asset query
- Position information query
- Place orders
- Cancel orders
Use cases of QMT-MCP-Server
- Query current account holdings
- Buy a specified number of shares at a given price
- Purchase stocks with a percentage of available capital
- Combine with other MCP services for end‑to‑end stock selection and trading
Frequently asked questions
1 What are the runtime requirements?
Python 3.10 or higher, a valid QMT trading account, and a locally running MiniQMT instance.
2 How is the configuration stored?
Configuration (MiniQMT path and funding account) is saved automatically in the xttrader.yaml file after the first run.
3 What format should stock codes use?
All stock codes must include the exchange suffix, e.g., .SH for Shanghai or .SZ for Shenzhen.
4 Can stock names be used directly in orders?
Stock names may not be correctly converted to codes by some models; using stock codes is recommended for reliability.
5 Is this server safe for live trading?
No. The project is for learning and communication only. The author assumes no responsibility for any losses incurred from using this software in live environments.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In