Chart Library MCP

MCP serverDocs & knowledge

Once added, your AI can compare current price setups against 10 years of historical chart patterns covering 19,000+ symbols. The integration provides chart-pattern intelligence built from 25M+ stored pattern examples. That gives your AI real historical context when discussing stocks or market setups.

Use Chart Library MCP in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Chart Library MCP and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use Chart Library MCP to get company file

Details

Available today. Use it from your connected AI after setup.

Add the integration, then ask your AI to look up chart patterns for a symbol you follow or to compare a current setup with similar ones from the past.

Chart Library MCPStart free

What your AI can do with it

  • Look up historical chart patterns for a specific symbol
  • Compare a current price setup against 25M+ stored pattern examples
  • Search patterns across 19,000+ symbols
  • Find past patterns that resemble what a chart is showing now
  • Ground market analysis in 10 years of price history

Install Chart Library MCP

The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.

  • Claude Code

    claude mcp add --transport http --scope user chart-library-mcp 'https://chartlibrary.io/mcp'

    Run it once in your project, then open /mcp to approve any sign-in the server asks for.

  • Claude Desktop

    https://chartlibrary.io/mcp

    Add a custom connector in Settings, paste this address, and approve the sign-in.

  • Cursor

    cursor://anysphere.cursor-deeplink/mcp/install?name=chart-library-mcp&config=eyJ1cmwiOiJodHRwczovL2NoYXJ0bGlicmFyeS5pby9tY3AifQ==

    Open the link and Cursor adds the server at that address.

  • ChatGPT

    https://chartlibrary.io/mcp

    In Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.

  • Codex

    codex mcp add chart-library-mcp --url 'https://chartlibrary.io/mcp'

    Run it once, then sign in with codex mcp login chart-library-mcp if the server asks for an account.

From the project's README

As published by grahammccain/chart-library-mcp in README.md.

Market memory for AI, with published research for agents and people.

Version 6.3.3 marks failed public tool calls as MCP errors while preserving their structured recovery details. Invalid requests explain how to correct the inputs; stale publication versions retain instructions to restart from the current overview. Successful response schemas and direct Python calls remain compatible.

Five read-only tools

ToolInputResult
market_stateSymbol; optional dateCompleted-session state, historical analogs, outcome ranges, transition memory and tape
daily_noteOptional datePublished daily research, selection rule and settled-note tally
research_qualityNonePublished calibration receipt, dated sample and qualifications
search_researchQuery; optional kind, limit and offsetRelevant publications, IDs, findings, sample receipts, limitations and versions
read_researchResearch ID; optional section, offset and versionOverview or an exact source document, with pagination and hashes

Market-state requests need no preliminary search or cohort handle. For published research, search for an ID, then read its evidence.

Example question: “Read AAPL's latest completed-session state. Report the historical analog ranges, sample sizes, session date and limitations.”

Omitting date uses the latest built/published session, not a real-time quote. Dates use YYYY-MM-DD. Missing or thin evidence stays missing or thin.

Connect

The primary remote endpoint is https://chartlibrary.io/mcp, using Streamable HTTP and no authentication.

For a command-based client, install or upgrade the package:

python -m pip install --upgrade chartlibrary-mcp

Then use the equivalent of this configuration in your MCP client:

{
  "mcpServers": {
    "chartlibrary": {
      "command": "chartlibrary-mcp"
    }
  }
}

No API key or server-side Python packages are required. An optional CHART_LIBRARY_API_KEY is forwarded as a Bearer token when set. An empty key does not send an Authorization header. CHART_LIBRARY_API_URL can select your own compatible endpoint; only point it at a server you trust with that key.

Python 3.10+ is required. This release uses the MCP 1.x FastMCP interface and pins mcp>=1.28.1,<2.0.0; MCP 2.x is a separate migration.

The equivalent HTTP calls

curl "https://chartlibrary.io/api/v1/state-packet?symbol=AAPL"
curl "https://chartlibrary.io/api/v1/daily"
curl "https://chartlibrary.io/api/v1/calibration"

Use only the call relevant to the question. For a historical state add &date=YYYY-MM-DD. Daily REST requests call the date parameter session.

Research workflow

search_research(query="IONQ noon", kind="casebook")
read_research(research_id="casebook:ionq-noon", section="article",
              version="FULL_VERSION_FROM_SEARCH")

Replace FULL_VERSION_FROM_SEARCH with the full 64-character version from the chosen search result. Updated servers supply documents[section].read_arguments directly; copy those into the tool and follow content.next_read until null. With earlier servers, pass the returned version and next_offset explicitly. Omitting the optional version reads the current publication without checking it against earlier responses. A changed version returns an error explaining how to restart from the current overview; the client does not retry automatically.

Search summaries are discovery metadata, not a source read. Read available guides and relevant limiting findings before making claims. Keyword search ranks document relevance, not market similarity or evidence strength. A partial result means a publication source was unavailable. Withdrawn articles cannot be read. Publication dates and market cutoffs differ; the noon IONQ case must not be merged with completed-session state analogs.

Complete IONQ example · Agent research plan

Read the evidence accurately

  • Preserve dates, sample sizes, informative receipts, warnings and provenance.
  • State-packet excess returns are percentage-point observations relative to a date-matched liquid-stock baseline. Each horizon has its own observed n.
  • Raw historical percentiles are not automatically calibrated forecasts.
  • research_quality audits only the method and population its receipt names. Do not transfer its coverage percentage to every market state or all research.
  • Daily research has its own selection rule and settled-note tally.
  • Historical frequencies are not recommendations to buy or sell.

Research access is free. Service limits and underlying data terms still apply. Honor HTTP 429 and retry guidance; do not assume unlimited throughput.

Existing integrations

Existing tool names stay registered and callable, including pull_comps, search, state_packet, and the cohort inspection tools. To discover the extended menu in a local client, set CHART_LIBRARY_MCP_PROFILE=advanced. This changes discovery, not authorization or access to private research.

The public menu does not expose private fund operations or every experimental state-memory method. Legacy examples in examples/ use the advanced interface.

Build with us

For a custom integration, a larger study, or a product built on the memory, contact Graham McCain — graham@chartlibrary.io.

Developer guide · Methodology · Data terms · Privacy

Local verification

python -m pytest test_vendor_import.py

The import smoke runs without an API key and without application services/ or db/ packages. No package or registry publication is performed by tests.

Tools it offers (14)

What this server listed when Ahel dialed its public endpoint in Oct 2026, with no key and no account of yours. The names are the server’s own.

  • get_company_file
  • get_company_status
  • get_company_revisions
  • compare_company_revisions
  • run_company_scenario
  • check_company_forecasts
  • compare_company_history
  • get_company_watchlist
  • list_coverage
  • market_state
  • daily_note
  • research_quality
  • search_research
  • read_research

Signals

GitHub stars
22
Forks
2
Last commit
Sep 2026
Advanced
Delivery
chart-library MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
Item type
mcp-server
Key
io-github-grahammccain-chart-library
Source
github.com/grahammccain/chart-library-mcp
Hosted endpoint
https://chartlibrary.io/mcp