Skip to main content
Glama
README.md
<p align="center">
  <img src="extension/icons/icon-128.png" width="96" alt="yt-tools logo">
</p>

<h1 align="center">yt-tools</h1>

<p align="center">
  YouTube transcripts, made readable.<br>
  A Chrome extension, a CLI, and an MCP server for your agents.
</p>

---

## Chrome extension

Open any video, click the icon, and read the transcript in its own tab.

- **Read** in a clean page where every timestamp jumps back to that moment in the video
- **Cards** break the video into topics with key points, generated as soon as the page opens
- **Summary** in a few bullets, also automatic
- **Copy** as markdown, ready to paste into notes or an LLM

Summaries and cards run on your device with Chrome's built-in model (Gemini Nano). No API key, no server, and
nothing is saved to disk: everything lives in the browser session.

**Install:** `chrome://extensions` → Developer mode → **Load unpacked** → pick `extension/`.
Needs Chrome 138+; the AI features appear only on hardware that supports them.

## CLI

```bash
python3 -m venv .venv && .venv/bin/pip install -e .
```

```bash
yt-tools bundle <url>        # title, chapters + timestamped transcript as markdown
yt-tools transcript <url>    # transcript only  (-f text | timestamped | json)
yt-tools meta <url>          # metadata as JSON
yt-tools save <url>          # write transcribed/<date>/<id>.md
```

`-l en,es` sets language preference, `--chunk 60` the seconds per line, and `--describe` adds a short
AI description (needs `ANTHROPIC_API_KEY`).

## MCP server

Give Claude Code or Codex the same tools: `get_youtube_bundle`, `get_youtube_transcript`,
`get_youtube_metadata`, and `save_youtube_transcript`.

```bash
claude mcp add --scope user yt-tools -- "$PWD/.venv/bin/yt-tools-mcp"
```

## Notes

- Works from captions only, so videos without captions have no transcript.
- YouTube often blocks cloud IPs; the CLI works best from a home connection.

---

<p align="center">
  <sub>MIT · Not affiliated with YouTube · Transcripts belong to their creators, so use them for yourself and don't republish them.</sub>
</p>