Use in Claude Code
K-line AI Prediction
MCP (Model Context Protocol) lets AI assistants call external tools directly. Our K-line MCP Server enables Claude Code to fetch OHLC data from 40+ global exchanges and run Lainteches AI volatility & scenario forecasts (future volatility range + sampled candle scenarios, not up/down direction). Works with Claude Code, Cursor, Claude Desktop, Continue, Zed, Codex, and all MCP-compatible clients.
1. Sign Up on Laintas
Go to laintas.com, register and log in. Inference costs $1/use. Recharge in Settings page first.
2. Get Session Token
Sign in to Kline and use the command below; the page generates MCP configuration from the current product session.
3. Download MCP Server
Copy the mcp-server/ folder anywhere, or git clone it. Zero dependencies, Node.js ≥18 required.
4. Configure Claude Code
Add the config below to your project's .mcp.json (or ~/.claude/.mcp.json). Replace your_token_here with your session token.
5. Start Using
Restart Claude Code, then try: get BTC/USDT 1m klines from okx → infer this OHLC data for BTC/USDT.
Logged in as undefined — token auto-injected. Just copy & run.
mkdir -p ~/.claude/mcp-servers && \
git clone --depth 1 https://github.com/lin7c/Kline_de_pre_MCP.git \
~/.claude/mcp-servers/kline-fetcher && \
claude mcp add kline-fetcher \
--env LAINTECHES_SESSION="laintas-v2.session_token=YOUR_TOKEN" \
-- node ~/.claude/mcp-servers/kline-fetcher/index.jsCode installed to ~/.claude/mcp-servers/kline-fetcher. To uninstall: claude mcp remove kline-fetcher && rm -rf ~/.claude/mcp-servers/kline-fetcher
Manual Config (Optional)
If you prefer not to use claude mcp add, manually add the config below to .mcp.json (project) or ~/.claude/.mcp.json (global).
{
"mcpServers": {
"kline-fetcher": {
"command": "node",
"args": ["path/to/mcp-server/index.js"],
"env": {
"LAINTECHES_SESSION": "laintas-v2.session_token=your_token_here"
}
}
}
}Pricing
| Tool | Price | Note |
|---|---|---|
| get_klines | Free | Fetch global market OHLC data |
| infer_ohlc | $1 | HAR volatility + generator scenario forecast |
$10 gives you 10 AI predictions. No subscription, pay per use.
Recharge nowFAQ
What is MCP?▼
MCP (Model Context Protocol) is an open protocol by Anthropic that lets AI assistants like Claude Code securely call external tools and services via JSON-RPC over stdio — no network ports needed.
Which AI tools?▼
Any MCP-compatible client: Claude Code, Cursor, Claude Desktop, Continue.dev, Zed, Codex (OpenAI). Identical config format across all.
Where does the data come from?▼
Crypto: OKX / Kraken / KuCoin / Coinbase public APIs. Stocks/ETFs/indices: Yahoo Finance, East Money (A-shares). All free, no API key required.
Which markets?▼
40+ exchanges: US, HK, China A, Japan, Korea, UK, Germany, France, India, Taiwan, Australia stocks, plus major crypto and global indices.