Skip to main content

kronos-mcp

Stock price forecasting for your AI agent — A-shares, US and HK equities.

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.

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) A-shares 600519 / 600519.SH, US tickers AAPL, HK 00700
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

Related

  • 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kronos_mcp-0.1.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kronos_mcp-0.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file kronos_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: kronos_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for kronos_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b8041ace14dab5512025b6fe54e139d99ee29291405c1efedddd5f801a857567
MD5 5ebee15b1d48aa494fd455e069b7c9ba
BLAKE2b-256 534024e584beeaddbf47b0b03a4037ac77bc961d37526e511d185eb8cbd13484

See more details on using hashes here.

File details

Details for the file kronos_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kronos_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for kronos_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49237d0831d9811659dfe047ff39b5a19e0e21701052c946bf6cab0dfc871c9d
MD5 f10205606eb9f9603a7ac91b66a66727
BLAKE2b-256 00855dcc0519fcdf5b7ba706e1ddcff32a2d063db12fb1b2f626edbcc68f417e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

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