Skip to main content
Glama
grahammccain

Chart Library

by grahammccain

차트 라이브러리 MCP 서버

PyPI License: MIT Glama Score Tools

지원 대상: Claude Desktop | Claude Code | ChatGPT | GitHub Copilot | Cursor | VS Code | 모든 MCP 클라이언트

AI 에이전트에게 "이 차트가 마지막으로 이랬을 때 어떻게 되었지?"라고 물어보고, 과거 유사 사례들과 그 이후의 보정된 분포를 바탕으로 실제 답변을 얻으세요.

2,500만 개 이상의 패턴 임베딩. 10년의 기록. 19,000개 이상의 주식. 단 한 번의 도구 호출.

> "What does NVDA's chart on 2024-08-05 1h look like historically?"

NVDA · 2024-08-05 · 1h — cohort of 500 historical analogs
(485 with realized 5-day returns)

  Distribution at 5 days forward:
    median:        −1.3%
    p10 ·· p90:    −11.3% ·· +6.8%   (80% empirical band)
    win rate:      44%
    cohort_score:  0.31 (modest)

  Features that separated winners from losers:
    + credit_spread_state = tight
    + macro_state = bullish
    + pct_off_52w_low (further off)
    − vol_regime = low

  Summary: NVDA's 1-hour pattern on 2024-08-05 has 500 historical
  analogs. The cohort's 5-day distribution is bearish-leaning
  (median −1.3%, win rate 44%) — the historical record does NOT
  show this pattern typically resolving bullish. Conditioning on
  tight credit spreads and a bullish macro state would have
  separated the outperformers within the cohort.

예측이 아닌 검색입니다. 환각적인 예측도, 체리 피킹도 없습니다. 에이전트가 인용할 수 있는 경험적 기록일 뿐입니다.


빠른 시작

pip install chartlibrary-mcp

Claude Desktop (원클릭 설치)

chart-library-1.1.1.mcpb 확장 파일 다운로드 후 Claude Desktop으로 열어 자동 설치하세요.

Claude Code

claude mcp add chart-library -- chartlibrary-mcp

Claude Desktop (수동)

claude_desktop_config.json에 추가:

{
  "mcpServers": {
    "chart-library": {
      "command": "chartlibrary-mcp",
      "env": {
        "CHART_LIBRARY_API_KEY": "cl_your_key"
      }
    }
  }
}

Cursor / VS Code

.cursor/mcp.json 또는 VS Code MCP 설정에 추가:

{
  "servers": {
    "chart-library": {
      "command": "chartlibrary-mcp",
      "env": {
        "CHART_LIBRARY_API_KEY": "cl_your_key"
      }
    }
  }
}

GitHub Copilot (VS Code)

프로젝트의 .vscode/mcp.json에 추가 (이 파일은 이미 chart-library 저장소에 포함되어 있습니다):

{
  "servers": {
    "chart-library": {
      "command": "chartlibrary-mcp",
      "env": {
        "CHART_LIBRARY_API_KEY": "cl_your_key"
      }
    }
  }
}

Copilot Chat은 프로젝트를 열 때 MCP 서버를 자동으로 감지합니다. Copilot Chat에서 @mcp를 사용하여 도구를 호출하세요.

ChatGPT (개발자 모드)

ChatGPT는 원격 HTTP 엔드포인트를 통해 MCP 서버에 연결합니다. 설정 방법:

  1. 개발자 모드 활성화: ChatGPT 설정 > 앱 > 고급 설정 > 개발자 모드로 이동 (Pro, Plus, Business, Enterprise 또는 Education 플랜 필요)

  2. 커넥터 생성: 설정 > 커넥터에서 생성을 클릭하고 다음을 입력:

    • 이름: Chart Library

    • 설명: 과거 차트 패턴 검색 엔진 — 19,000개 이상의 주식, 10년치 데이터에 걸친 2,500만 개 이상의 패턴

    • URL: https://chartlibrary.io/mcp

    • 인증: 인증 없음 (API 키 사용 시 OAuth)

  3. 대화에서 사용: Plus 메뉴에서 "개발자 모드"를 선택하고, Chart Library 앱을 선택한 뒤 "NVDA 차트가 과거에 어떤 모습이었지?"와 같은 질문을 하세요.

참고: https://chartlibrary.io/mcp의 원격 엔드포인트는 Streamable HTTP 전송을 사용합니다. SSE 폴백이 필요한 경우 https://chartlibrary.io/mcp/sse를 사용하세요.

원격 MCP 엔드포인트

원격 HTTP 연결을 지원하는 모든 MCP 클라이언트용:

https://chartlibrary.io/mcp

이 엔드포인트는 Streamable HTTP 및 SSE 전송을 모두 지원하며, 로컬 설치가 필요 없습니다.

무료 티어: 일일 200회 호출, 신용카드 불필요. chartlibrary.io/developers에서 API 키를 받거나 키 없이 기본 검색을 사용하세요.


Related MCP server: TickerAPI

에이전트가 할 수 있는 일

"TSLA 포지션을 걱정해야 할까?"

> get_exit_signal("TSLA")

  Signal: HOLD (confidence: 72%)
  Similar patterns that exited early: 3/10 would have avoided a drawdown
  Similar patterns that held: 7/10 gained an additional +2.1% over 5 days
  Recommendation: Pattern suggests continuation. No exit signal triggered.

"지금 어떤 섹터가 순환되고 있지?"

> get_sector_rotation()

  Leaders (30-day relative strength):
    1. XLK  Technology     +4.2%
    2. XLY  Cons. Disc.    +3.1%
    3. XLC  Communication  +2.8%

  Laggards:
    9. XLU  Utilities      -1.4%
   10. XLP  Cons. Staples  -2.1%
   11. XLRE Real Estate    -3.3%

  Regime: Risk-On (growth > defensives)

"SPY가 3% 하락하면 AMD는 어떻게 될까?"

> run_scenario("AMD", spy_change=-3.0)

  When SPY fell ~3%, AMD historically:
    Median move:  -5.2%
    Best case:    +1.1%
    Worst case:  -11.4%
    Positive:     18% of the time

  AMD shows 1.7x beta to SPY downside moves.

8가지 표준 도구

Chart Library 2.0은 22개의 기존 도구를 8개의 구성 가능한 기본 요소로 통합했습니다. kNN을 다시 실행할 필요 없이 cohort_id 핸들을 통해 체인으로 연결하여 1초 이내에 정밀 분석이 가능합니다.

도구

기능

search

진입점. 티커+날짜에 대한 cohort_id + 앵커 + n_matches를 반환합니다. 핸들을 cohort, analyze, explain에 전달하여 체인으로 연결하세요.

cohort

핵심 기본 요소. 체제/섹터/유동성/이벤트별로 필터링된 차트 패턴에 대한 조건부 분포(p10/p25/p50/p75/p90 + 보정된 밴드 + MAE/MFE + 적중률 + 생존율)를 제공합니다. 한 번의 호출로 기존의 get_cohort_distribution, refine_cohort_with_filters, run_scenario, get_regime_win_rates를 대체합니다.

analyze

metric= enum을 통한 분석 지표: anomaly, volume_profile, crowding, correlation_shift, earnings_reaction, pattern_degradation, regime_accuracy.

context

target=을 통한 상황별 데이터: 티커 메타데이터, 시장 체제 + 섹터 로테이션, 또는 DB 커버리지 통계.

explain

style= enum을 통한 서술 + 순위: filter_ranking (분포를 가장 크게 변화시키는 필터), prose (평이한 영어 요약), position_guidance (출구 신호), risk_ranking (샤프 지수 기반 추천).

portfolio

보유 종목 전반에 걸친 포트폴리오 수준의 조건부 분포. 가중 평균 분포 및 테일 기여자 순위를 매깁니다.

anchor_fetch

2.0 신규. 가벼운 (심볼, 날짜) 메타데이터 가져오기 — 섹터, 시가총액, 시점별 체제. 티커에 대한 맥락만 필요할 때 전체 kNN을 피합니다.

report_feedback

오류 보고 또는 개선 제안.

이 도구들은 환각적인 "평균적으로 이 패턴은 X% 수익을 냅니다"라는 말을 실제 조건부 기본 비율로 대체합니다. 전체 루프는 grounded-base-rates 패턴을 참조하세요.

일반적인 에이전트 흐름

1. search("NVDA 2024-06-18")                          → cohort_id
2. cohort(cohort_id=..., filters={regime:{same_vix_bucket: true}})
                                                       → conditional distribution
3. explain(cohort_id=..., style="filter_ranking")     → which filter matters most
4. cohort(cohort_id=..., filters={...new filter...})  → refined distribution

기존 도구 (사용 중단 예정, 여전히 호출 가능)

하위 호환성을 위해 22개의 기존 도구 이름은 그대로 유지되며 MCP 주석에 deprecated로 표시됩니다. 이 도구들은 표준 도구로 전달되며 향후 주요 릴리스에서 제거될 예정입니다. 아래 매핑을 통해 마이그레이션하세요:

기존

대체

search_charts, search_batch, get_discover_picks

search

get_cohort_distribution, refine_cohort_with_filters, run_scenario, get_regime_win_rates, compare_to_peers

cohort

detect_anomaly, get_volume_profile, get_crowding, get_earnings_reaction, get_correlation_shift, get_pattern_degradation, get_regime_accuracy

analyze (metric=)

get_sector_rotation, get_status, get_market_context

context

get_pattern_summary, explain_cohort_filters, get_exit_signal, get_risk_adjusted_picks

explain (style=)

get_portfolio_health

portfolio

analyze_pattern, get_follow_through, check_ticker

search + cohort (+ 선택적 explain)


작동 원리

Chart Library는 대규모 과거 차트 패턴 라이브러리를 인덱싱하고 조건부 분포 API 뒤에 노출합니다. 모든 쿼리는 샘플 크기, 백분위수, 보정된 선행 수익률 밴드를 반환하며, 단일 지점 예측은 제공하지 않습니다.

에이전트가 analyze_pattern("NVDA")를 호출하면 서버는 다음을 수행합니다:

  1. NVDA의 현재 차트 상태 표현을 구축

  2. 과거에 유사한 패턴을 검색

  3. 이후 1, 3, 5, 10일 동안 무슨 일이 일어났는지 조회

  4. 분포 + Claude Haiku를 통한 평이한 영어 요약 반환

결과: 에이전트가 환각이나 회피 없이 제시할 수 있는 "N개의 유사한 과거 패턴 중, 5일간의 중앙값 수익률은 X%였습니다 (80% 밴드 [p10, p90])"와 같은 사실 기반의 인용 가능한 진술.


API 키

티어

일일 호출

가격

샌드박스

200

무료

빌더

5,000

월 $29

스케일

50,000

월 $99

chartlibrary.io/developers에서 키를 받으세요.

export CHART_LIBRARY_API_KEY=cl_your_key

링크


Chart Library는 정보 제공 목적으로 과거 패턴 데이터를 제공합니다. 금융 조언이 아닙니다.

Install Server
A
license - permissive license
C
quality
B
maintenance

Maintenance

Maintainers
2dResponse time
2wRelease cycle
2Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Financial intelligence for AI agents. 31 tools across 8 data sources — regime, derivatives, stablecoin flows, momentum, volatility, macro, DeFi, weather patterns, political cycles, seasonality. The context layer between your agent and a bad trade.
    31
    31
    9
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Agent-ready financial intelligence tools for AI agents. Two curated tools — get_stock_snapshot and get_company_metrics — that combine multiple data sources, derive signals (UNDERVALUED, STRONG, ACCELERATING), and pre-compute the math. One call, one agent-friendly response.
    3
    116
    1
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides actionable financial intelligence tools for AI agents including insider buying signals, earnings IV plays, market pulse, stock analysis, and options strategies via free public data sources.
    6
    MIT

View all related MCP servers

Related MCP Connectors

  • Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.

  • The financial MCP for AI agents - 90+ financial tables, SEC filings, signals, alt-data.

  • US stocks, ETFs, crypto → compact brief: patterns, S/R, regime + base rates vs baseline. Not advice.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/grahammccain/chart-library-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server