Skip to main content

kronos-mcp

Stock price forecasting for your AI agent — China A-shares.

An MCP server wrapping Kronos, a K-line time-series model. Ask it for a symbol, get the next N daily candles predicted: open / high / low / close / volume.

Coverage is China A-shares only. Verified 2026-09-10: AAPL, AAPL.US, NASDAQ:AAPL, 00700 and 0700.HK all return 404 — the upstream has no K-line data for them. This is a data limitation, not a symbol-format issue.

License


Tools

Tool What it does
kronos_health() Check the service is reachable and your key works. Call this first when something fails.
kronos_predict(symbol, pred_len) Predict the next pred_len daily candles (1–30, default 10)

kronos_predict also returns expected_return — last predicted close over last real close, minus one. That ratio is the number most people actually want.


Quick start

You need an API key first — see below.

Claude Desktop / Cursor

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "kronos": {
      "command": "uvx",
      "args": ["kronos-mcp"],
      "env": { "KRONOS_API_KEY": "oapk_xxx" }
    }
  }
}

Command line

# no install needed
KRONOS_API_KEY=oapk_xxx uvx kronos-mcp

# or install it
pip install kronos-mcp
KRONOS_API_KEY=oapk_xxx kronos-mcp

API key

This server has no keyless mode, and cannot have one — the upstream returns 401 without a key.

The reason is cost, not gatekeeping: Kronos runs on our own GPUs and a single inference takes 30–70 seconds. Open anonymous access would let a handful of loops saturate the service, with no way to tell who is doing it.

Get one:

  1. Open https://hunter.agentpit.io/dev/api-keys and sign in
  2. Click 申请 API Key and choose API type KRONOS
  3. Copy the oapk_… key — it is shown once
  4. Set it as KRONOS_API_KEY

Approval usually lands within hours on a business day. Free, with a default quota of 1000 calls per key.

If the key is missing, this server does not return sample data or a fake success. It returns an error that tells you exactly where to get a key.


Environment variables

Variable Default Notes
KRONOS_API_KEY — Required. oapk_ key of type KRONOS
KRONOS_URL https://kronos.agentpit.io Point this at your own deployment if you self-host
KRONOS_TIMEOUT 180 Seconds. GPU inference is 30–70s — don't set this tight
KRONOS_MCP_TRANSPORT stdio stdio | streamable-http | sse
KRONOS_MCP_HOST / KRONOS_MCP_PORT 0.0.0.0 / 8932 Remote transports only

stdio is what Claude Desktop, Cursor and uvx use. Run a remote transport only if you want one long-running server serving several clients — and note the MCP spec marks SSE as deprecated, so prefer streamable-http for new setups.


What to expect

Every call takes 30–70 seconds. That is the GPU, not a hang. Don't retry because it feels slow, and don't loop it over dozens of symbols — upstream takes one symbol per request.

This is a statistical extrapolation, not investment advice. The model reads price history and nothing else: no news, no halts, no earnings dates. It will drift badly in unusual conditions. Treat the output as one input among many.


Errors you might hit

Error Meaning
missing_api_key KRONOS_API_KEY not set — see API key
invalid_api_key (401) Key wrong, incomplete or revoked. Revocation takes up to 5 min to propagate
wrong_key_type (403) Key is valid but isn't a KRONOS key — you may have applied for KPRED or FIN_R1
symbol_not_found (404) Use 600519 or 600519.SH. A-shares only — US and HK tickers land here
rate_limited (429) Per-IP cap on invalid keys, or your quota is exhausted
upstream_down (502/504) GPU service restarting. If it lasts more than a few minutes, please open an issue

  • truesource-mcp — verifiable first-hand market signals: filings, procurement wins, macro data
  • akshare-mcp — lets a model explore AKShare's 1000+ China market data functions on its own
  • hunter-community — the open-source stack these come from

Apache-2.0.

Metadata

Release files for kronos-mcp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kronos-mcp 0.1.2
File Size Uploaded Provenance
kronos_mcp-0.1.2.tar.gz 9.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kronos-mcp 0.1.2
File Interpreter ABI Platform
kronos_mcp-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / kronos_mcp-0.1.2.tar.gz

Download URL kronos_mcp-0.1.2.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ebcfb8a5e06c6967d30ffd0654ece0033cef7276b10cf7b1065fa66d105e732c
BLAKE2b-256 checksum
How to use checksums
0f33b683c990a525ae474f7c04cbee4c5da86cd3ae291dd38f8366b9e27ce24c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / kronos_mcp-0.1.2-py3-none-any.whl

Download URL kronos_mcp-0.1.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
558cf4fb6cf48d4a764addee9257525715b108aebbe072c4a6508568b0f17bf3
BLAKE2b-256 checksum
How to use checksums
92adfe3cda5885a0b69eeaa8a9229eccee5296befd069fa40e4af727557ae503
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for kronos-mcp 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page