Chart Library
Historical stock pattern intelligence for AI agents. Search 24M pre-computed chart pattern embeddings across 15K stocks and 10 years. 19 tools: pattern similarity search, forward returns, regime analysis, anomaly detection, sector rotation, earnings reactions, correlation shifts, scenario analysis, and more. Returns what happened historically when charts looked like this — compliance-safe
README
Chart Library MCP Server
A compliance-safe way for AI agents to discuss stocks using real historical data.
Instead of hallucinating predictions or refusing to answer, your agent can say: "The last 10 times a chart looked like NVDA, 7 went up over 5 days (avg +3.1%)." This is factual historical data from 24 million pattern embeddings across 10 years and 15,000+ stocks — not financial advice, not predictions, just what happened before.
Install
pip install chartlibrary-mcp
Usage with Claude
# Claude Code
claude mcp add chart-library -- chartlibrary-mcp
# Or run directly
CHART_LIBRARY_API_KEY=cl_your_key chartlibrary-mcp
Tools (19)
Core Search
| Tool | Description |
|---|---|
analyze_pattern |
Search + forward returns + AI summary in one call (recommended) |
search_charts |
Find 10 most similar historical patterns |
get_follow_through |
Forward returns (1/3/5/10-day) for matches |
get_pattern_summary |
AI-generated plain-English summary |
get_discover_picks |
Daily top patterns ranked by interest score |
search_batch |
Multi-symbol parallel search (up to 20) |
get_status |
Database stats and coverage |
Market Intelligence
| Tool | Description |
|---|---|
detect_anomaly |
Check if a stock's pattern is unusual vs history |
get_volume_profile |
Intraday volume breakdown vs historical average |
get_sector_rotation |
Which sectors are leading/lagging |
get_crowding |
Are too many stocks signaling the same direction? |
get_earnings_reaction |
Historical earnings gap reactions |
get_correlation_shift |
Stocks breaking from usual market correlation |
run_scenario |
What happens to a stock when the market moves X%? |
Trading Intelligence
| Tool | Description |
|---|---|
get_regime_win_rates |
Pattern win rates filtered by current market regime |
get_pattern_degradation |
Are signals degrading vs historical accuracy? |
get_exit_signal |
Pattern-based exit recommendations for open positions |
get_risk_adjusted_picks |
Picks scored by Sharpe-like risk/reward ratio |
Utility
| Tool | Description |
|---|---|
report_feedback |
Report errors or suggestions |
Example Conversation
User: What does NVDA's chart look like right now?
Claude (using Chart Library): NVDA's current pattern matches 10 historical setups. The closest is AAPL from May 2016 (93% similarity). Of the 10 matches, 8 went up over 5 days with an average gain of +3.0%. The current market regime resembles the post-SVB period of early 2023, which historically resolved bullishly.
API Key
Get a free API key (500 calls/day) at chartlibrary.io/developers.
Set it as an environment variable:
export CHART_LIBRARY_API_KEY=cl_your_key
Links
- Website: chartlibrary.io
- API Docs: chartlibrary.io/api/docs
- Developer Portal: chartlibrary.io/developers
- Regime Tracker: chartlibrary.io/regime
<!-- mcp-name: io.github.grahammccain/chart-library -->
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。