Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Ytswarm

БесплатноНе проверен

Bulk YouTube transcripts → AI agent swarm. Ask any YouTube channel a question: one AI agent reads every video transcript in parallel and answers with timestampe

GitHubEmbed

Описание

Bulk YouTube transcripts → AI agent swarm. Ask any YouTube channel a question: one AI agent reads every video transcript in parallel and answers with timestamped citations. Rust CLI + MCP server for Claude. Powered by the BulkTranscripts API.

README

Point a swarm of AI agents at any YouTube channel. Bulk-download YouTube transcripts, then let one AI agent read every video in parallel and answer your question with timestamped citations. It's a Rust CLI and an MCP server for Claude.

Transcripts come from the BulkTranscripts YouTube transcript API. Get a free API key (30 free credits, no card).

ytswarm ask @AlexHormozi "What's his framework for pricing an offer?"

One command pulls the channel's last 100 transcripts, sends one agent to read each video in full, all in parallel, and merges what they found into one answer. Every claim cites the video and the second it was said.

 ⚡ ytswarm  ask “What's his framework for pricing an offer?”
  64 agents · 100 videos of Alex Hormozi · claude-haiku-4-5 (anthropic) → claude-opus-5

  ■ ■ ■ ■ ■ ⠼ ■ ■ ⠦ ■ ■ ■ ⠏ ■ ■ ■ ■ ■ ⠹ ■ ■ ■ ■ ■ ⠴ ■ ■ ■ ■ ■ ■ ⠇ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■
  ■ ⠙ ■ ■ ■ ■ ■ ■ ■ ⠸ ■ ■ ■ ■ ■ ⠧ ■ ■ · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
  · · · ·

  ⠴ 71/100 done · 38 relevant · 41 live · 22.4 h of video · ≈$0.31 · 00:14

One 6 MB Rust binary. The index is a local SQLite file. Nothing runs on a server, and it doubles as an MCP server, so Claude can run the swarm as a tool.


What it does

Command What happens
ytswarm ask @channel "question" Ingests the channel if needed, runs one agent per video, then streams a merged answer with timestamped sources
ytswarm ask @a @b @c "question" The same across several channels. Agents see upload dates, so "how has this changed?" works
ytswarm ask "question" Asks every channel already in your index
ytswarm ingest @channel -n 500 Pulls up to 1,000 transcripts in parallel into the local index, with the live dashboard
ytswarm search "cold plunge dopamine" Instant BM25 full-text search over every transcript, with timestamped links (no LLM, no network)
ytswarm mcp Runs as an MCP server for Claude Desktop, Claude Code, Cursor, …
ytswarm channels / doctor Shows what's indexed / checks your keys, models and credit balance

Useful flags for ask: -n 200 (videos per channel), -a 128 (agents running at once), --since 2026-07-01, --json.

How it works

             BulkTranscripts API                     your LLM key
                    │                                      │
 @channel ──► list uploads ──► fetch transcripts ──► SQLite + FTS5 index (~/.ytswarm/swarm.db)
                               (16 in parallel)            │
                                                           ▼
 "question" ─────────────────────────────►  map: 1 agent per video (Haiku 4.5, 64 at a time)
                                            each reads the WHOLE transcript and returns
                                            {relevant, score, answer, verbatim quotes + timestamps}
                                                           │
                                                           ▼
                                            reduce: Opus 5 merges the relevant reports into one
                                            answer, citing [n] → youtu.be/…?t=761

Why a swarm instead of RAG: retrieval sees a few passages that happen to match your words. A swarm reads every word of every video, so it catches the answer even when the speaker never uses your keywords, and it can say where videos disagree.

Powered by BulkTranscripts

ytswarm gets every transcript through the BulkTranscripts API. It can fetch whole YouTube channels and playlists in bulk (up to 1,000 videos), with timestamps, and has a REST API, an MCP server and no-code integrations.

Install

git clone https://github.com/pratie/ytswarm && cd ytswarm
cargo install --path .        # needs Rust: https://rustup.rs

Keys (bring your own)

Put them in ~/.ytswarm/.env (or ./.env, or export them):

BULKTRANSCRIPTS_API_KEY=bt_ak_...  # free key: https://bulktranscripts.co/app
ANTHROPIC_API_KEY=sk-ant-...       # or OPENROUTER_API_KEY=sk-or-...

Then ytswarm doctor checks everything.

  • BulkTranscripts credits: listing a channel costs 1 credit, and each new transcript costs 1 credit. Anything already in your library is free, and ytswarm never re-fetches what's in its index. A 100-video channel is about 101 credits.
  • LLM: Anthropic (native API), OpenRouter (any model), or any OpenAI-compatible server, including local Ollama: OPENAI_BASE_URL=http://localhost:11434/v1 SWARM_MODEL=llama3.1.
  • Rough cost with the defaults: a 20-minute video is about 5k tokens, so 100 videos is about 0.5M Haiku input tokens (≈ $0.50) plus one Opus merge (a few cents). The dashboard shows a live estimate.

Use it from Claude (MCP)

Claude Code

claude mcp add ytswarm -- ytswarm mcp

Claude Desktop: add this to claude_desktop_config.json:

{
  "mcpServers": {
    "ytswarm": { "command": "/Users/you/.cargo/bin/ytswarm", "args": ["mcp"] }
  }
}

Keys come from ~/.ytswarm/.env, so the config never holds secrets. Claude gets six tools: ingest_channel, list_channels, list_videos, search_transcripts, get_transcript, and swarm_ask, which fans out the agents and returns the merged answer. With raw_reports: true it returns the per-video reports, so Claude can do the merging itself.

Try: "Ingest @hubermanlab and @PeterAttiaMD, then use swarm_ask to find where they disagree about zone 2 cardio."

Configuration

Variable Default
BULKTRANSCRIPTS_API_KEY (required) get one free
ANTHROPIC_API_KEY / OPENROUTER_API_KEY / OPENAI_BASE_URL (one is required)
LLM_PROVIDER auto: anthropic, then openrouter, then openai
SWARM_MODEL claude-haiku-4-5 (anthropic/claude-haiku-4.5 on OpenRouter)
SYNTH_MODEL claude-opus-5 (anthropic/claude-opus-5 on OpenRouter)
SYNTH_EFFORT medium (low / high / none)
YTSWARM_DB ~/.ytswarm/swarm.db
YTSWARM_LANGUAGE the video's default track
BT_BASE_URL, ANTHROPIC_BASE_URL, OPENROUTER_BASE_URL for proxies / self-hosting

License

MIT. Built by @attenisalluneed, maker of BulkTranscripts.

from github.com/pratie/ytswarm

Установка Ytswarm

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/pratie/ytswarm

FAQ

Ytswarm MCP бесплатный?

Да, Ytswarm MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Ytswarm?

Нет, Ytswarm работает без API-ключей и переменных окружения.

Ytswarm — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Ytswarm в Claude Desktop, Claude Code или Cursor?

Открой Ytswarm на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Ytswarm with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории media