searchLABSCO SUMMARY
The empirical record, not a prediction your agent invented.
What it replaces is the sentence "on average this pattern returns X%" that a model will happily produce from nothing. Here the answer is a cohort of real analogs with a full return distribution and a published calibration record — citable, and refusable when the cohort is weak.
What it is
A retrieval engine over historical chart patterns rather than a forecaster. Ask what a symbol's chart on a given date and timeframe looked like historically, and you get the cohort of analogs, the full distribution of what they did next, and the features that separated the best outcomes from the rest — with the coverage record attached.
What you get
search— the entry point, finding similar historical patterns for an anchor and returning a handle you can chain;mode=supportstext,live_barsfor raw OHLCV, andsimilarfor cohort-level neighbourspull_comps— the flagship: the comp set for a symbol, date and timeframe, with what the analogs did next, the drivers that separated the best outcomes, and the coverage record.cohort_analyzeis the same engine under the original field names, kept callable for existing integrationscohort_introspect— slice a stored comp set by any macro, technical or event attribute and get per-subset statistics against the full-cohort baseline, without re-running the searchcohort_attribution— which member traits separated the forward-return tail from the rest, each with a bootstrap confidence interval and a false-discovery decision; descriptive, never causalcohort_members,cohort_groupbyandcohort_rerank— the full cohort handed back one record per analog, partitioned by a dimension you name, or reordered by a weighted composite of fields you specifytrack_record— the historical predicted-against-realized coverage of the calibrated bands: the nominal 80% band held 80.8% across 302,880 prior casessymbol_intelligence— per-symbol feature reliability and achieved calibration across prior analysesanalyze,context,explain,portfolioandreport_feedback— analytic metrics, situational data, narrative and rankings, multi-holding weighted distributions, and a feedback path
Requirements
pip install chartlibrary-mcp and an API key in CHART_LIBRARY_API_KEY; claude mcp add chart-library -- chartlibrary-mcp registers it, and there is a one-click bundle for Claude Desktop plus config snippets for Cursor, VS Code and Copilot. The Sandbox tier is free at 200 calls a day, with paid tiers at 5,000 and 50,000. The remote server, the pip package and the REST API expose the same tool names, so a client can move between them. The core loop is search, then pull comps, then introspect — chain them by handle so refinement does not re-run the nearest-neighbour search.
Setup effort
One command — pip install chartlibrary-mcp
USE CASES
Asking what a chart has meant historically
Pull the comp set for the symbol, date and timeframe, and read the forward-return distribution rather than a point estimate.
Testing a hunch against the cohort
Slice the stored comp set by the attribute you suspect matters and compare that subset against the full-cohort baseline.
Finding what separated the winners
Run within-cohort attribution to see which member traits sat with the strongest forward returns, each with a confidence interval.
Imposing your own objective on the analogs
Take the full cohort back and re-rank it by a weighted composite of the fields you care about, or partition it by one dimension.
Knowing whether to trust the band
Check the published coverage record and the per-symbol calibration before acting on a distribution.
Looking at a portfolio rather than a ticker
Run the holdings together for a weighted conditional distribution with the tail contributors ranked.
15 tools
Listed in project docs. Your client may show a different list.
pull_compscohort_analyzecohort_introspectcohort_attributiontrack_recordsymbol_intelligenceanalyzecontextexplainportfolioreport_feedbackcohort_memberscohort_groupbycohort_rerankBEFORE YOU INSTALL
What to know first
Tools you get
15 tools named in the project's documentation.
Requires
chartlibrary-mcp on PATH
INSTALLATION
Connect your client
Server setup
pip
pip install chartlibrary-mcpHosted endpoint
Any MCP client — remote
https://chartlibrary.io/mcpAdd this hosted endpoint to your MCP client.
MCP Clients
Claude Desktop — .mcpb bundle
Download the chart-library-6.1.0.mcpb extension file and open it with Claude Desktop
Claude Code
claude mcp add chart-library -- chartlibrary-mcpClaude Desktop — manual, Cursor
{
"mcpServers": {
"chart-library": {
"command": "chartlibrary-mcp",
"env": {
"CHART_LIBRARY_API_KEY": "<YOUR_CHART_LIBRARY_API_KEY>"
}
}
}
}GitHub Copilot in VS Code
{
"servers": {
"chart-library": {
"command": "chartlibrary-mcp",
"env": {
"CHART_LIBRARY_API_KEY": "<YOUR_CHART_LIBRARY_API_KEY>"
}
}
}
}ChatGPT
Settings > Connectors > Create — URL: https://chartlibrary.io/mcp, Authentication: No Authentication (or OAuth if using an API key)