qlib-sync: China A-share data
v0.2.0Install, update, and read a local Qlib China A-share daily dataset, with checksums and rollback.
Values you need
| Variable | What it is | |
|---|---|---|
QLIB_SYNC_DATA_DIR | optional | Dataset folder; defaults to ~/.qlib/qlib_data/cn_data |
QLIB_SYNC_MIRROR | optional | Optional prefix-style GitHub proxy for slow connections, e.g. https://ghfast.top |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add qlib-sync -- uvx qlib-sync==0.2.0 mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"qlib-sync": {
"args": [
"qlib-sync==0.2.0",
"mcp"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"qlib-sync": {
"args": [
"qlib-sync==0.2.0",
"mcp"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"qlib-sync": {
"args": [
"qlib-sync==0.2.0",
"mcp"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.qlib-sync]
command = "uvx"
args = ["qlib-sync==0.2.0", "mcp"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: cn_status, cn_update, cn_health_check, cn_get_prices, cn_list_pool.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json