qlib-sync: China A-share data

v0.2.0
io.github.randyy179/qlib-sync Checked 8 hours ago Published 18 days ago

Install, update, and read a local Qlib China A-share daily dataset, with checksums and rollback.

Values you need

VariableWhat it is
QLIB_SYNC_DATA_DIRoptional Dataset folder; defaults to ~/.qlib/qlib_data/cn_data
QLIB_SYNC_MIRRORoptional 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 mcp
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: cn_status, cn_update, cn_health_check, cn_get_prices, cn_list_pool.
  4. 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