# Kronos

Kronos predicts upcoming daily candles for China A-shares. Use it when an agent needs a price-history forecast with an expected return value.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 570
- Author: agentpit-io
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/agentpit-io/hunter-community/tree/HEAD/tools/kronos-mcp
- Updated: 2026-10-14
- HTML: https://affpapa.org/en/nevibecode/mcp/kronos

## What it does

Kronos wraps the Kronos K-line time-series model as an MCP server. Give it a symbol and `pred_len`, and it returns the next daily candles with open, high, low, close, and volume. The `kronos_health` tool checks service access and the API key; `kronos_predict` runs the forecast and also returns `expected_return`, based on the last predicted close versus the last real close.

The server needs a KRONOS API key in `KRONOS_API_KEY`; you can request one at `https://hunter.agentpit.io/dev/api-keys`. Claude Code starts it with `uvx kronos-mcp` through `claude mcp add`. Without `KRONOS_API_KEY`, the server returns an error. Each request takes 30–70 seconds, and the model reads price history only, so it does not account for news, trading halts, or earnings dates. Coverage is limited to China A-shares.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `KRONOS_API_KEY`, `KRONOS_URL`, `KRONOS_TIMEOUT` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env KRONOS_API_KEY=<KRONOS_API_KEY> --env KRONOS_URL=<KRONOS_URL> --env KRONOS_TIMEOUT=<KRONOS_TIMEOUT> --transport stdio kronos-mcp -- uvx kronos-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from kronos-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add kronos-mcp --env KRONOS_API_KEY=<KRONOS_API_KEY> --env KRONOS_URL=<KRONOS_URL> --env KRONOS_TIMEOUT=<KRONOS_TIMEOUT> -- uvx kronos-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from kronos-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "kronos-mcp": {
            "command": "uvx",
            "args": [
                "kronos-mcp"
            ],
            "env": {
                "KRONOS_API_KEY": "<KRONOS_API_KEY>",
                "KRONOS_URL": "<KRONOS_URL>",
                "KRONOS_TIMEOUT": "<KRONOS_TIMEOUT>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from kronos-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "kronos-mcp": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "kronos-mcp"
            ],
            "env": {
                "KRONOS_API_KEY": "<KRONOS_API_KEY>",
                "KRONOS_URL": "<KRONOS_URL>",
                "KRONOS_TIMEOUT": "<KRONOS_TIMEOUT>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from kronos-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e KRONOS_API_KEY=<KRONOS_API_KEY> -e KRONOS_URL=<KRONOS_URL> -e KRONOS_TIMEOUT=<KRONOS_TIMEOUT> kronos-mcp uvx kronos-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from kronos-mcp <command>

## When to use it
- forecast the next daily candles for a stock symbol
- inspect expected return from the predicted close
- check whether the service and API key work
- separate supported China A-shares from US or HK tickers

## Example prompts
- Check the service and my API key with `kronos_health`.
- Use `kronos_predict` to forecast the next 10 daily candles for `600519`.
- Forecast 5 candles for `600519.SH` and show the `expected_return`.

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16717
- [labelhead-artist-momentum](https://affpapa.org/en/nevibecode/mcp/labelhead-artist-momentum.md) — MCP server · ★ 107423
- [Agent Skills Search Server](https://affpapa.org/en/nevibecode/mcp/agent-skills-search-server.md) — MCP server · ★ 26559
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23263
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9366
- [PraisonAI](https://affpapa.org/en/nevibecode/mcp/praisonai.md) — MCP server · ★ 9289

From the same set: [agentpit-io/hunter-community](https://affpapa.org/en/nevibecode/by/agentpit-io/hunter-community.md) — 3 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
