Give your agent the base rates, not a guess.
A trading agent's hardest questions are empirical — what usually happens after a setup like this? Chart Library answers with the real historical analogs and their calibrated outcome distribution, in one MCP call. Base rates your agent can act on and cite — never a forecast.
See the comp set, and how often its band held.
Type a ticker and date. Get the cohort of historical analogs, their forward-return distribution clustered into outcome modes, the drivers that separated past winners from losers — and a coverage record you can audit.
Free for agents — no key, no signup.
The core research loop is open. Connect over the hosted MCP and call it right now — anonymously, free, no human in the loop. Paid keys exist only for volume SLAs and premium surfaces, never for the core loop.
pit_histogram in the same endpoint.300 analogs from 10 years, split into 4 outcome paths.
Not a forecast. The empirical split of what historical analogs actually did over the next 5 trading days. Hover a mode to read its distribution.
Pattern search has always been mathematical. We made it shape-based.
Search by formulas someone wrote.
- Define a “rising wedge” with a math expression.
- Scan the universe for charts matching the rule.
- You query in indicator space — the same query for everyone.
- Limited to patterns someone bothered to formalize.
Search by raw chart shape.
- Take an actual chart — a real stock on a real date.
- Get back the 500 historical days that look like it as raw shape.
- Cluster them into 3–4 outcome modes — what they actually did next.
- Each mode reports count, median return, up rate, and the IQR.
From anchor to actionable read in one MCP call.
Anchor
Your agent picks any (symbol, date, timeframe). NVDA · today · 1h — the chart you want to understand.
Match
The system finds the 500 historical days that look most like your subject as raw price + volume shape. No indicators. No formulas.
Stratify
Cluster the 500 analogs into 3–4 outcome modes by what they did next. Each reports count, median, up rate, and distinguishing features.
We don’t script the agent. We hand it the comp set.
The MCP tool returns descriptive comp-set fields — comp strength, match quality, conditions, coverage record, and the drivers that separated past winners from losers. Your agent reads them and writes the answer in its own voice. Numbers stay in parentheses.
“Honestly, this one reads like a coin flip. NVDA’s in-regime analogs printed about the same as everything else — the comp set doesn’t separate up from down here.”
Of the 132 closest analogs, 21 printed under a regime like today’s. Their 5-day median was +0.09% with a 52% hit rate — small enough that the regime isn’t doing much work.
- Sector lagging hard. XLK 60-day RS is −10.4 — skews tech reads lower until it turns.
- News without follow-through. Pulse +0.29 — looks like vol repricing, not a narrative change.
- Earnings in 16 sessions. Pattern reads weaken this close to the print.
Every read is grounded in the 13 canonical tools your agent can also call directly: search pull_comps cohort_introspect cohort_members cohort_groupby cohort_rerank symbol_intelligence analyze context explain portfolio track_record report_feedback — pull_comps is the front-of-house comp-set primitive (cohort_analyze remains available with its original field names).
Our nominal 80% forward-return band held 80.8% across 310,592 audited cases (5-day horizon, no same-stock leakage). It is an audit of past predicted-vs-realized coverage, not a forward claim — and it is live: call /api/v1/calibration and check it yourself.
Against an ungrounded LLM on 300 out-of-sample setups, that band matched the model’s own 80% interval on coverage (~83%) in a band 44% tighter — same honesty, half the vagueness, reproducible from the public API.
Separately, in a blind paired evaluation a judge — not told which agent held which tools — preferred the grounded reasoning on every scenario, across all six dimensions below. An agent given a research desk investigates more, so a gap is expected by construction; what the blind judge adds is that the grounded reasoning was preferred even when both agents reached the same conclusion.
Read the full methodology →Drop-in chart pattern intelligence for any AI agent.
MCP-native. Works with Claude Desktop, Cursor, Hermes Agent, or any MCP-capable client. Under a minute to install.
The next ten years of markets × AI runs on grounded retrieval.
Every AI agent that talks about stocks today is making up cohort statistics. The interfaces got smarter; the grounding didn’t catch up. Chart Library is the layer.
MCP-native retrieval
13 canonical tools. 25M+ patterns. Calibrated forward distributions, regime stratification, and Layer 5 memory that compounds with every query.
Live + multi-timeframe
Real-time intraday updates. One subject, simultaneous matches across 5min / 15min / 1h / 1d.
Cross-asset
Crypto first — the active agent-trading market. Then futures, then international equities. Same architecture, broader universe.
Build an agent that knows what happened before.
Anchor a chart, pull its comp set, and let your agent reason from what the market actually did — not from what it imagined.