Go to example tasks

Get YouTube transcripts in Claude Code with MCP

Use the YouTube transcript API as an MCP tool in Claude Code: pass a video URL, get the full transcript text, language, duration, and caption type.

Try for free
YouTube Transcript & Subtitles Scraper API
YouTube Transcript & Subtitles Scraper APIjohnvc/youtubetranscripts
Thumbnail
Title
Channel
Views
+8 fields
Text
Number
Boolean
List
Object

Input

YouTube URL(s):https://www.youtube.com/watch?v=dQw4w9WgXcQ

Output fields

Thumbnail
Title
Channel
Views
Language
Source
Duration
Snippets
Translated to
YouTube URL
Cached
OK

How it works

Sign up on Apify or log in

The YouTube Transcript & Subtitles Scraper API Actor is ready to run with the inputs already set for "Get YouTube transcripts in Claude Code with MCP". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Get YouTube transcripts in Claude Code with MCP" task

The YouTube Transcript & Subtitles Scraper API Actor will start running based on the input automatically. You can also change all the input fields, like youtube url(s), to match your specific use case.

Receive the "Get YouTube transcripts in Claude Code with MCP" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as thumbnail, title, channel, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Get YouTube transcripts in Claude Code with MCP" task via API.

Image

Integrate "Get YouTube transcripts in Claude Code with MCP" into your workflow

Connect "Get YouTube transcripts in Claude Code with MCP" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

For the URL you pass, one row with the full transcript text in non_timestamped, language, duration_human and source_type (manual or generated captions), plus title and channel_name. Claude Code reads the tool result; the Apify dataset keeps the row.

A single youtube_url, for example https://www.youtube.com/watch?v=dQw4w9WgXcQ. In practice you paste the link into the Claude Code prompt and the MCP tool fills youtube_url for you; standard, Shorts, youtu.be and embed URLs are all accepted.

Call the task's run endpoint on the Apify API, or use apify-client for Python or Node, with a youtube_url as input, then read the dataset back as JSON or CSV. The input Claude Code builds works verbatim in a script.

Open the task in the Apify Console, choose Actions, then Schedule, and enter a cron such as 0 7 * * * for every morning at 7 AM. Claude Code suits ad hoc requests; a schedule covers the daily videos. A webhook can hand each new dataset onward.

Add https://mcp.apify.com/?tools=actors,docs,johnvc/youtubetranscripts as an MCP server in Claude Code with your Apify token as a Bearer header. Then ask Claude Code to fetch the transcript of a URL; it calls this Actor and reads the text back.

Pay per video: each transcribed video is one videoprocessed event, and failed videos or videos with no captions cost nothing. Claude Code runs cost the same as Console runs. The current rate is on the Actor page's pricing card.

Same server, different starting point. Hosted YouTube transcript MCP server is the client-neutral page for any MCP tool, while Get YouTube transcripts in Claude Code with MCP walks through the Claude Code setup and shows what the tool returns there.