cd /news/ai-agents/research-a-youtube-channel-from-clau… · home › topics › ai-agents › article
[ARTICLE · art-180361] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Research a YouTube channel from Claude Code with MCP: uploads, transcripts and comments

A developer working on the GetYouTubeTranscript MCP server described using it from Claude Code to research a YouTube channel end to end, pulling recent uploads, timestamped transcripts and top comments in a single conversation. The remote Streamable HTTP server is registered with a bearer-token header and exposes tools including get_channel_latest_videos, get_youtube_transcript, get_video_comments, search_youtube and paginated listing tools that pass a continuation token. The developer argued the MCP approach suits exploratory research where questions change mid-session, while fixed pipelines are better served by scripting the REST API.

recommendation

When research questions change mid-session, expose data sources as MCP tools with structured fields and continuation tokens so the agent can sort, filter and paginate without you writing per-step code.

more in playbook: Designing agent systems
by read3 min views41 publishedDec 2, 2026

Most "chat with a YouTube video" setups stop at one video: paste a link, get a summary. The more useful question is usually bigger than one video. What has this channel been covering lately? Which video got the most attention? What are viewers asking for in the comments?

That takes three kinds of data: a channel's recent uploads, the transcripts, and the comments. With an MCP server, Claude Code can fetch all three itself, in one conversation, without you copying anything.

This post walks through that workflow with the GetYouTubeTranscript MCP server. (Disclosure: I work on it.)

The server is remote (Streamable HTTP), so there is nothing to install or run locally. Create an API key in the dashboard, then register it:

claude mcp add --transport http getyoutubetranscript \
  https://getyoutubetranscript.com/api/mcp \
  --header "Authorization: Bearer sk_live_..."

Add -s user to make it available in every project instead of only the current one. Run /mcp inside Claude Code to confirm it connected and lists its tools.

Cursor, VS Code, Cline, Codex and Gemini CLI take the same URL and bearer header; only the config file differs. Clients that only do OAuth (such as ChatGPT connectors) can point at the same URL and go through an OAuth flow instead of pasting a key.

Start broad:

What has @Fireship posted in the last two weeks? Sort by views.

Claude calls get_channel_latest_videos, which returns the channel's details plus its 15 newest uploads. A trimmed piece of the real response:

{
  "channel": { "title": "Fireship", "subscribers": 4350000, "videos": 871 },
  "videos_sections": [{
    "section_title": "Latest Videos",
    "videos": [
      { "id": "Me_NU5PI8Vk", "views": 1400000, "length": "6:08", "published_time": "1 day ago" },
      { "id": "sPGzM3ktJVE", "views": 2300000, "length": "11:37", "published_time": "5 days ago" }
    ]
  }]
}

Because the result is structured (views, length, age), the model can sort and filter it without guessing.

Next:

Get the transcripts of the top three and tell me what topics they share. Quote the line where each one makes its main claim, with timestamps.

That is get_youtube_transcript with timestamps: true, once per video. Each caption line comes back prefixed with its [m:ss] start time, so quotes point to an exact moment you can check.

A few behaviours worth knowing:

mode: "auto" and it falls back to an AI speech-to-text transcript of the audio (3 credits per minute of video). Long videos return a job_id, and get_transcript_job collects the result.language picks a caption track; translate machine-translates the transcript and keeps timestamps aligned. Read the top comments on the most-viewed one. What are people asking for?

get_video_comments returns one page of top comments (text, likes, reply count); the model passes the continuation token back for more pages. This is often the most useful step: it turns "what did the creator say" into "what does the audience want next".

The same server has tools for the rest of a research session:

Tool Use it for
search_youtube Find videos or channels on a topic
search_channel_videos Find a topic inside one channel
list_channel_videos /list_playlist_videos Full upload history or a whole playlist, paginated
get_video_details Views, likes, upload date, tags, description
get_related_videos What YouTube suggests next to a video
get_credits Check your remaining balance

Paginated tools all use a continuation token from the previous response instead of offset/limit.

You could write this as a script against the REST API, and for a fixed pipeline you should. The MCP version shines when the questions change as you go: you start with "what's new on this channel", notice one video took off, and drill into its transcript and comments without writing code for each step. The model picks the tool; you keep asking questions.

Most calls cost 1 credit, so the whole workflow above (one channel lookup, three transcripts, one page of comments) is about 5 credits.

── more in #ai-agents 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/research-a-youtube-c…] indexed:0 read:3min 2026-12-02 · —