# Chart Library — Market-state research

Lets an agent pull finished-session market states, historical analogs and published studies with their sources attached. Useful when you want figures with caveats, not a bare quote.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 22
- Author: grahammccain
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/grahammccain/chart-library-mcp
- Updated: 2026-09-10
- HTML: https://affpapa.org/en/nevibecode/mcp/chart-library-market-state-research

## What it does

Five read-only tools come with the server. `market_state` answers with a completed session, historical analogs, outcome ranges, transition memory and tape. `daily_note` returns the published daily note, and `research_quality` gives a calibration receipt with a dated sample. Two more handle publications: `search_research` finds them by query, `read_research` opens one by ID with pagination and hashes.

Connection runs over Streamable HTTP at `https://chartlibrary.io/mcp` with no authentication. A local package, `chartlibrary-mcp`, also exists: Python 3.10+ is required and the release pins `mcp>=1.28.1,<2.0.0`, so MCP 2.x is a separate migration. Set `CHART_LIBRARY_API_KEY` and it travels as a Bearer token; an empty value sends no Authorization header.

Leave the date out and you get the latest built session rather than a live quote. Pass dates as `YYYY-MM-DD`. Historical frequencies are not buy or sell advice, and the coverage percentage from `research_quality` covers only the population its receipt names. Search summaries are discovery metadata, so read the document itself before repeating any claim.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Remote server: `https://chartlibrary.io/mcp`
- Environment variables: `CHART_LIBRARY_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http chart-library https://chartlibrary.io/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env CHART_LIBRARY_API_KEY=<CHART_LIBRARY_API_KEY> --transport stdio chart-library-market-state-research -- uvx chartlibrary-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from chartlibrary-mcp <command>

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add chart-library-market-state-research --url https://chartlibrary.io/mcp
```

2. **Platform CLI**
```bash
codex mcp add chart-library-market-state-research --env CHART_LIBRARY_API_KEY=<CHART_LIBRARY_API_KEY> -- uvx chartlibrary-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from chartlibrary-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "chart-library-market-state-research": {
            "url": "https://chartlibrary.io/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "chart-library-market-state-research": {
            "command": "uvx",
            "args": [
                "chartlibrary-mcp"
            ],
            "env": {
                "CHART_LIBRARY_API_KEY": "<CHART_LIBRARY_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from chartlibrary-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "chart-library-market-state-research": {
            "type": "http",
            "url": "https://chartlibrary.io/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "chart-library-market-state-research": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "chartlibrary-mcp"
            ],
            "env": {
                "CHART_LIBRARY_API_KEY": "<CHART_LIBRARY_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from chartlibrary-mcp <command>

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http chart-library-market-state-research https://chartlibrary.io/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e CHART_LIBRARY_API_KEY=<CHART_LIBRARY_API_KEY> chart-library-market-state-research uvx chartlibrary-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from chartlibrary-mcp <command>

## When to use it
- pull a symbol's finished-session state with historical analogs
- find a published study on a topic and open its source document
- check sample sizes and method notes before citing numbers
- read the daily note with its selection rule for a given date
- query the same data over HTTP from a script without an MCP client

## Example prompts
- Read AAPL's latest completed-session state and report the analog ranges, sample sizes, session date and limitations
- Search publications for IONQ at noon, then read the article section of the result I pick
- Show the calibration receipt and tell me which sample it covers

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
