YouTube Transcript MCP Server
Fetch YouTube transcripts, timed transcripts, video metadata, and available languages for LLM workflows.
Retrieve a video's plain-text transcript, optionally in a preferred language and paginated with
next_cursor.Retrieve a timed transcript as snippets with text, start time, and duration, also paginated.
Fetch video metadata including title, description, uploader, upload date, and duration.
List available transcript languages, including manual and auto-generated options.
Support long videos through automatic chunking/pagination and proxy configuration to avoid YouTube IP bans.
Retrieves transcripts from YouTube videos, allowing users to fetch transcripts in different languages from specified YouTube video URLs
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@YouTube Transcript MCP Serverget transcript for https://youtu.be/dQw4w9WgXcQ"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
YouTube Transcript MCP Server
A Model Context Protocol (MCP) server that fetches transcripts and metadata from YouTube videos directly into your LLM workflows.
Designed specifically for AI agents, it seamlessly handles long-form videos through automatic pagination and provides robust proxy support to circumvent YouTube rate limits and IP bans.
Key Features
Rich Transcript Retrieval: Fetch raw text, timestamped segments, and video metadata in multiple languages.
Smart Chunking & Pagination: Automatically chunks long transcripts (default: 50,000 characters) to prevent context window overflow, letting models page through hours of video effortlessly.
Resilient Proxy Support: Built-in support for residential proxies (Webshare, ScrapingAnt) and standard HTTP/HTTPS proxies to prevent IP blocks.
Universal Compatibility: Works with Claude Desktop, Cursor, LM Studio, Goose, and any standard MCP client.
Related MCP server: YouTube Transcript Server
Quick Start & Installation
You'll needuv installed on your system to use uvx command.
This server communicates via standard stdio.
Most MCP clients can run it directly using uvx (part of Astral uv).
General Configuration (Standard MCP JSON)
Add this entry to your client's MCP configuration file (typically under mcpServers):
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript"
]
}
}
}Claude Desktop
GUI (Drag & Drop): Download the
.mcpbbundle from the Releases page and drop it into your Claude Desktop Settings.Manual Config: Add the JSON above to
claude_desktop_config.json(restart Claude Desktop after saving):macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Cursor
Go to Cursor Settings > Features > MCP Servers.
Click + Add New MCP Server.
Name:
youtube-transcript, Type:command.Command:
uvx --from git+https://github.com/jkawamoto/mcp-youtube-transcript mcp-youtube-transcript
Goose
Please refer to this tutorial for detailed installation instructions: YouTube Transcript Extension.
LM Studio
To configure this server for LM Studio, click the button below.
Using Docker
A Docker image for this server is available on Docker Hub. Please refer to the Docker Hub page for detailed usage instructions and documentation.
Available Tools
The server registers the following MCP tools for LLM agents:
Tool | Description |
| Retrieves the plain-text transcript for a YouTube video URL. |
| Retrieves transcript segments with start times and durations. |
| Lists all available transcript languages (manual & auto-generated). |
| Fetches video metadata such as title and channel information. |
get_transcripturl(string, required): Full YouTube video URL.lang(string, optional): Preferred language code (defaults to"en").next_cursor(integer, optional): Cursor to fetch the next chunk for long videos.
get_timed_transcripturl(string, required): Full YouTube video URL.lang(string, optional): Preferred language code (defaults to"en").next_cursor(integer, optional): Cursor to fetch the next chunk.
get_available_languagesurl(string, required): Full YouTube video URL.
get_video_infourl(string, required): Full YouTube video URL.
Advanced Configuration
Handling Long Videos (Pagination)
Long videos (e.g., lectures, conferences, podcast episodes) can quickly exceed LLM token context limits.
By default, transcripts exceeding 50,000 characters are chunked. When a response is split,
a next_cursor is provided so the LLM agent can autonomously query the rest.
To customize the chunk character limit, supply --response-limit.
To disable pagination and fetch the entire transcript at once, set --response-limit to a negative value (e.g., -1):
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript",
"--response-limit",
"15000"
]
}
}
}Avoiding IP Bans (Proxy Setup)
YouTube aggressively blocks automated transcript requests from cloud providers and data center IPs. Using residential or rotating proxies ensures uninterrupted access.
1. Webshare Residential Proxy
Set credentials via environment variables or command-line flags:
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript"
],
"env": {
"WEBSHARE_PROXY_USERNAME": "your_username",
"WEBSHARE_PROXY_PASSWORD": "your_password"
}
}
}
}(CLI equivalents: --webshare-proxy-username and --webshare-proxy-password)
2. ScrapingAnt
If using ScrapingAnt, supply your API token:
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript"
],
"env": {
"SCRAPINGANT_API_TOKEN": "your_api_token"
}
}
}
}(CLI equivalent: --scrapingant-api-token)
Accessing YouTube requires a paid ScrapingAnt Web Scraping API subscription. YouTube access requires residential proxies, which consume more ScrapingAnt credits than standard proxy requests. See the ScrapingAnt credit cost documentation for details.
3. Standard / Generic HTTP & HTTPS Proxies
Specify custom proxy endpoints via HTTP_PROXY / HTTPS_PROXY (or --http-proxy / --https-proxy):
{
"mcpServers": {
"youtube-transcript": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/jkawamoto/mcp-youtube-transcript",
"mcp-youtube-transcript"
],
"env": {
"HTTPS_PROXY": "http://username:password@proxy.example.com:8080"
}
}
}
}For more details, please visit: Working around IP bans - YouTube Transcript API.
License
This application is licensed under the MIT License. See the LICENSE file for more details.
Available Tools
4 toolsget_available_languagesA
Retrieves the available languages for the video.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the YouTube video |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of disclosing behavior. It correctly implies a read-only operation, but does not explicitly state that it is non-destructive, has no side effects, or any rate limits. The minimal description is adequate but lacks depth.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence with no unnecessary words. It front-loads the purpose and is appropriately sized for a simple retrieval tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that an output schema exists (documenting return values), the description is largely sufficient. However, it could briefly mention that the result is typically used to select a language for transcript retrieval, linking it to sibling tools. Otherwise, it is complete for a straightforward tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema already documents the 'url' parameter. The description adds no additional semantics beyond what the schema provides, merely repeating that it is for a video. This meets the baseline expectation of high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('retrieves') and the resource ('available languages for the video'). It effectively distinguishes from sibling tools like get_timed_transcript and get_transcript, which deal with transcript content rather than language options.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. There is no mention of prerequisites, such as needing to call this before selecting a language for transcripts, or any comparison with sibling tools. This leaves an AI agent without context for decision-making.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_timed_transcriptB
Retrieves the transcript of a YouTube video with timestamps.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the YouTube video | |
| lang | No | The preferred language for the transcript | en |
| next_cursor | No | Cursor to retrieve the next page of the transcript |
Output Schema
| Name | Required | Description |
|---|---|---|
| title | Yes | Title of the video |
| snippets | Yes | Transcript snippets of the video |
| next_cursor | No | Cursor to retrieve the next page of the transcript |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral disclosure burden. It states the basic retrieval behavior but does not mention pagination behavior despite the next_cursor parameter, language fallback behavior, error cases, or rate limits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single front-loaded sentence with no wasted words. It immediately communicates the core capability.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has an output schema and full parameter descriptions, which reduces the description's burden. However, the description does not address pagination, language preference behavior, or sibling differentiation, leaving some contextual gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents url, lang, and next_cursor. The description adds no parameter meaning beyond the schema, which is acceptable but not additive.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: retrieves the transcript of a YouTube video, with timestamps. This is clear, but it does not explicitly distinguish itself from the sibling get_transcript beyond the implied timestamp feature.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrase 'with timestamps' implies when this tool is preferable, but the description gives no explicit guidance about when to use it instead of get_transcript or how it relates to get_available_languages.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_transcriptC
Retrieves the transcript of a YouTube video.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the YouTube video | |
| lang | No | The preferred language for the transcript | en |
| next_cursor | No | Cursor to retrieve the next page of the transcript |
Output Schema
| Name | Required | Description |
|---|---|---|
| title | Yes | Title of the video |
| transcript | Yes | Transcript of the video |
| next_cursor | No | Cursor to retrieve the next page of the transcript |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden. It does not mention pagination behavior despite the next_cursor parameter, language fallback behavior, authentication requirements, rate limits, or error handling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single front-loaded sentence with no wasted words. It is efficient, though its terseness leaves important usage and behavioral context absent.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple and has a rich input schema plus an output schema, so the minimal description is partly sufficient. However, it omits sibling differentiation and behavioral details such as pagination, leaving clear gaps for an agent selecting among transcript-related tools.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents url, lang, and next_cursor. The description adds no parameter meaning beyond the schema, which matches the baseline of 3 when structured fields do the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: retrieving a YouTube video transcript. It is clear what the tool does, but it does not distinguish itself from the sibling tool get_timed_transcript, which likely returns a timed variant.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no guidance on when to use this tool versus alternatives such as get_timed_transcript or get_available_languages. It only restates the action, leaving the agent to infer the selection context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_video_infoC
Retrieves the video information.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the YouTube video |
Output Schema
| Name | Required | Description |
|---|---|---|
| title | Yes | Title of the video |
| duration | Yes | Duration of the video |
| uploader | Yes | Uploader of the video |
| description | Yes | Description of the video |
| upload_date | Yes | Upload date of the video |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so the description must disclose behavioral traits. It only says 'retrieves' without confirming read-only nature, side effects, or any constraints.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single short sentence, which is minimal but does not provide enough detail to be useful; it sacrifices informativeness for brevity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the presence of an output schema (not shown) and sibling tools, the description is adequate but could specify the scope of 'video information' and how it relates to the transcript-focused siblings.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for the sole parameter 'url', and the description adds no extra meaning beyond what the schema already provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (retrieves) and resource (video information), but it does not specify what type of information (e.g., metadata, statistics) nor differentiate from sibling tools focused on transcripts.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus siblings like get_transcript or get_available_languages. No context on prerequisites or alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
2 tool updates
v0.8.3- Changed
get_timed_transcript2 fields changed- changed
Input schema / properties / next_cursor / anyOfPrevious value: -[ - { - "type": "string" - }, - { - "type": "null" - } -]New value: +[ + { + "type": "integer" + }, + { + "type": "null" + } +] - changed
Output schema / properties / next_cursor / anyOfPrevious value: -[ - { - "type": "string" - }, - { - "type": "null" - } -]New value: +[ + { + "type": "integer" + }, + { + "type": "null" + } +]
- Changed
get_transcript2 fields changed- changed
Input schema / properties / next_cursor / anyOfPrevious value: -[ - { - "type": "string" - }, - { - "type": "null" - } -]New value: +[ + { + "type": "integer" + }, + { + "type": "null" + } +] - changed
Output schema / properties / next_cursor / anyOfPrevious value: -[ - { - "type": "string" - }, - { - "type": "null" - } -]New value: +[ + { + "type": "integer" + }, + { + "type": "null" + } +]
1 tool update
v0.6.2- Added
get_available_languages
2 tool updates
v1.0.0- Added
get_timed_transcript - Added
get_video_info
1 tool update
- First observed
get_transcript
TDQS
Scored across 4 tools
Each tool targets a distinct output type, though get_transcript and get_timed_transcript overlap heavily in purpose and are only separated by the presence of timestamps. get_available_languages and get_video_info are clearly distinct from transcript retrieval.
All four tools follow a consistent get_noun snake_case pattern, making the set highly predictable and readable.
Four tightly scoped tools is appropriate for a focused YouTube transcript server. Each tool earns its place without extraneous surface area.
Core needs—transcript text, timestamped transcript, language availability, and video metadata—are covered. Minor gaps like transcript translation or search within a transcript are not present but are not essential to the stated purpose.
Maintenance
Related MCP Connectors
Transcripts of YouTube videos, playlists and channels with timestamps; SRT or WebVTT too.
Transcripts, translations, summaries, subtitles, and search for public YouTube videos.
YouTube transcripts, video search, chapters and extractive summaries. No YouTube API key, no LLM.
YouTube transcript API: batch video captions, timestamps, metadata and SRT/VTT subtitles.
Related MCP Servers
- AlicenseAqualityFmaintenanceA Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video captions and subtitles through a simple interface.11,316 npm603MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables retrieval of transcripts from YouTube videos with language-specific support.11,316 npm1MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video transcripts and subtitles through a simple interface, making it ideal for content analysis and processing.1290 npm40MIT
- AlicenseBqualityDmaintenanceAn MCP server designed to fetch transcripts for YouTube videos. It enables AI tools to access video text content for tasks like summarization, analysis, and key takeaway extraction.174MIT
Appeared in Searches
- Methods for Searching and Parsing Online Documentation
- A platform for streaming and sharing videos
- Guidance for writing a conclusion for a long text
- A server for finding research papers, extracting content, and retrieving relevant repository codes
- A tool or service that assists in real-time information search