youtube-transcript-mcp
Provides tools for retrieving YouTube video transcripts, fetching video metadata (title, channel, thumbnail), searching within transcripts with timestamps, and generating chapter summaries from transcript content.
Click on "Install 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-mcpsummarize the key points from this YouTube video: 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
An MCP server that gives a coding agent the ability to read and search YouTube video transcripts. No API key, no Google account, nothing to sign up for. It pulls captions through YouTube's public endpoints and adds one small thing that a raw transcript dump does not give you: chapter summaries.
This started as a small tool for my own use. I kept hitting conversations that contained a YouTube link and needed to know what the video actually said, and re-pasting transcripts around was wasting time. It became a reusable server so that anything running on the Model Context Protocol could just ask.
What it does
Four tools.
get_transcript(video_url_or_id, languages=["en"], include_timestamps=False)grabs the full transcript as plain text. It accepts a full YouTube URL (watch?v=, youtu.be, /embed/, /shorts/, /live/) or a bare 11-character video ID.get_video_metadata(video_url_or_id)returns title, channel name, channel URL and thumbnail via YouTube's no-auth oEmbed endpoint. It deliberately does not return upload date or full description, because those need an official Data API key and the whole point here is that you do not need one.search_transcript(video_url_or_id, query, languages=["en"])finds the segments matching a keyword or phrase, case-insensitive, each with a [mm:ss] timestamp so the model can point at where in the video something was said.summarize_chapters(video_url_or_id, gap_seconds=4.0, min_chunk_seconds=45.0, languages=["en"])splits the transcript into rough time-blocked chunks at natural pauses and returns them so an agent can summarize section by section instead of swallowing one giant blob. It is a heuristic, not YouTube's real chapter data.
All tools return a plain string, including errors (for example "Error: captions are disabled for this video"). No exceptions surface to the calling agent, and no stack traces leak out.
Related MCP server: YouTube for AI Agents
What it deliberately does not do
It does not work on videos with captions disabled, private or unavailable videos, or live streams without captions. It says so instead of guessing.
It does not depend on the YouTube Data API. You cannot get upload dates or full descriptions without one, by design.
It does not cache. Two calls against the same video re-fetch both times. Fine for the tool's actual use. Add caching if you ever need it at volume.
Setup
Requires Python 3.11+ and uv.
uv syncRun it standalone to confirm it starts:
uv run server.pyIt sits waiting for MCP stdio input, so it will appear to do nothing until a client connects. That is normal. Ctrl+C to exit.
Registering with an MCP client
Add it to your client's MCP settings. The server is invoked with stdio, so the configuration is a command line. Using Claude CLI as the example:
claude mcp add youtube-transcript -- uv --directory /absolute/path/to/youtube-transcript-mcp run server.pyOr in the JSON config:
{
"mcpServers": {
"youtube-transcript": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/youtube-transcript-mcp", "run", "server.py"]
}
}
}Notes earned the hard way
Only videos with captions (auto-generated or manual) work. A video without captions returns a clear error, which is a deliberate choice: an empty result reads like a quiet failure, an error names it.
The language list matters.
languages=["en"]gets the English track when one exists. If a channel uploads in another language only, pass that code.Pin
mcp>=1.28.1but stay below 2.0. mcp 2.x renamedmcp.server.fastmcpand the import breaks silently at server start. You want the version that actually loads.
License
MIT. See LICENSE.
Available Tools
4 toolsget_transcriptA
Fetch the full transcript of a YouTube video as plain text.
Args:
video_url_or_id: Full YouTube URL (watch/youtu.be/embed/shorts) or bare 11-char video ID.
languages: Preferred language codes in priority order, e.g. ["en", "en-GB"]. Defaults to ["en"].
include_timestamps: If true, prefix each line with a [mm:ss] timestamp.
| Name | Required | Description | Default |
|---|---|---|---|
| languages | No | ||
| video_url_or_id | Yes | ||
| include_timestamps | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of behavior and does a good job: it explains accepted URL formats, the bare ID alternative, language priority ordering, the default language list, and timestamp formatting. It does not mention edge cases like missing captions or rate limits, but the disclosed behavior covers the core interaction well.
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 compact and well-structured: a one-line purpose, followed by a concise Args block. Every sentence earns its place, and parameter docs are front-loaded with the needed specifics.
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?
For a three-parameter tool with an output schema, the description provides enough to invoke the tool correctly: required argument, optional language behavior, and timestamp control. It could be strengthened with guidance about when to use sibling tools or what happens when no transcript is available, but it is largely complete.
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 0%, so the description must compensate, and it does thoroughly. Each parameter is explained with concrete examples, accepted formats, defaults, and behavioral effects, adding substantial meaning beyond the bare schema properties.
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 first sentence clearly states the action ('Fetch the full transcript'), the resource ('YouTube video'), and the output form ('as plain text'). The word 'full' differentiates it from sibling tools like search_transcript, which implies partial or query-based retrieval.
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?
Usage is implied by the purpose: use this tool when you need the complete transcript of a YouTube video. However, there is no explicit guidance about when to prefer search_transcript, get_video_metadata, or summarize_chapters instead, nor exclusions such as 'use search_transcript for snippets'.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_video_metadataA
Fetch title, channel name, and thumbnail for a YouTube video via the no-auth oEmbed endpoint.
Note: oEmbed does not expose upload date or full description (those require the official
Data API + an API key). This returns what's available without one.
Args:
video_url_or_id: Full YouTube URL or bare 11-char video ID.
| Name | Required | Description | Default |
|---|---|---|---|
| video_url_or_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations available, the description carries the behavioral disclosure burden. It credibly explains that the tool uses a no-auth endpoint, returns only a limited set of metadata, and does not expose upload date or full description. It could also mention error behavior or invalid inputs, but the core behavioral limitations are transparently disclosed.
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 compact and front-loaded with the main purpose. The limitation note is valuable context, and the Args section is minimal and directly useful. Every sentence contributes to correct invocation.
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?
For a single-parameter metadata retrieval tool with a provided output schema, the description covers purpose, input format, expected returned fields, and key limitations. Nothing essential for selecting or invoking the tool is missing.
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?
The input schema provides only a bare string type with 0% description coverage, but the description fully compensates by defining accepted values: 'Full YouTube URL or bare 11-char video ID.' This gives the agent exactly what it needs to construct a valid argument.
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 uses a specific verb ('Fetch') and names the exact resources returned ('title, channel name, and thumbnail'), clearly distinguishing this from the transcript-focused sibling tools. It also names the mechanism ('no-auth oEmbed endpoint'), leaving no ambiguity about what the tool does.
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 clearly implies when to use this tool (when basic YouTube metadata is needed without authentication) and explicitly notes when it is insufficient (when upload date or full description is required, which 'require the official Data API + an API key'). It does not explicitly reference sibling tools, but the field-level exclusions provide solid guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_transcriptA
Search a video's transcript for a keyword/phrase and return matching segments with timestamps.
Args:
video_url_or_id: Full YouTube URL or bare 11-char video ID.
query: Keyword or phrase to search for (case-insensitive substring match).
languages: Preferred language codes in priority order. Defaults to ["en"].
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| languages | No | ||
| video_url_or_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the burden of behavioral disclosure. It does disclose that query matching is case-insensitive and substring-based, and that languages default to ['en']. However, it does not mention what happens when no transcript is available, whether network fetching is involved, or how missing language captions are handled.
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 opens with a precise one-sentence purpose and then uses a clean bulleted Args list. There is no redundant or filler text; every sentence earns its place and the most important information is front-loaded.
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 tool's moderate complexity, the description covers purpose, return type (matching segments with timestamps), and all parameters. An output schema exists to cover return-value details, but the description does not address edge cases or when to choose this tool over siblings, so it is not fully complete.
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 0%, but the description fully compensates by explaining all three parameters: video_url_or_id accepts a full URL or bare 11-char ID, query is a case-insensitive substring match, and languages are priority-ordered with a default. This adds significant meaning beyond the bare schema.
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: search a video's transcript for a keyword/phrase and return matching segments with timestamps. It differentiates itself from sibling tools like get_transcript and get_video_metadata by focusing on search-within-transcript rather than retrieval of the full transcript or metadata.
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 purpose implies when to use it (when you need to find specific content in a transcript rather than reading the whole transcript), but it does not explicitly state when to prefer alternatives. No exclusions or alternative routing are provided, so the usage context is only implied.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
summarize_chaptersA
Break a transcript into rough time-blocked chunks at natural pauses, for easier per-section summarizing.
This is a heuristic, not real chapter data: it splits wherever the gap between two consecutive
caption snippets exceeds `gap_seconds`, then merges any resulting chunk shorter than
`min_chunk_seconds` into its neighbor so chunks stay summarizable.
Args:
video_url_or_id: Full YouTube URL or bare 11-char video ID.
gap_seconds: Silence gap (seconds) between captions that triggers a new chunk boundary.
min_chunk_seconds: Minimum chunk duration; shorter chunks get merged forward.
languages: Preferred language codes in priority order. Defaults to ["en"].
| Name | Required | Description | Default |
|---|---|---|---|
| languages | No | ||
| gap_seconds | No | ||
| video_url_or_id | Yes | ||
| min_chunk_seconds | No |
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 and does so admirably. It explicitly discloses that this is 'a heuristic, not real chapter data' and explains the exact split/merge algorithm involving gap_seconds and min_chunk_seconds, so the agent knows what behavior to expect.
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 definition is front-loaded with a one-sentence summary, followed by a concise explanation of the heuristic behavior and a clean Args section. Every sentence carries necessary information, and there is no filler.
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, so return values need not be repeated. The description covers the algorithm, parameters, defaults, and limitations, which is everything an agent needs to call it correctly. The only minor nuance is languages defaulting to ['en'] in the prose while the schema shows null, but the behavior is still clear.
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 0%, so the description alone documents semantics. It gives meaningful explanations for all four parameters, including units ('seconds'), behavior ('triggers a new chunk boundary', 'merged forward'), and accepted values for video_url_or_id. This fully compensates for the schema's lack of descriptions.
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 opens with a specific verb and resource: 'Break a transcript into rough time-blocked chunks at natural pauses', which clearly defines the tool's output and purpose. It further distinguishes itself from real chapter data and from the sibling retrieval/search tools by stating it is a heuristic chunking operation.
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 'for easier per-section summarizing' gives a clear context and intended use. It does not explicitly name alternatives (get_transcript, search_transcript) or state when not to use it, so it stops short of a 5, but it is not ambiguous.
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. Dates show when Glama detected each change.
4 tool updates
v0.1.0- First observed
get_transcript - First observed
get_video_metadata - First observed
search_transcript - First observed
summarize_chapters
TDQS
Each tool targets a distinct operation: fetching raw transcript text, fetching metadata, searching within a transcript, and chunking into chapters. Even though three tools operate on transcripts, their purposes are clearly separated and descriptions make the boundaries obvious.
All tool names follow a consistent verb_noun snake_case pattern: get_transcript, get_video_metadata, search_transcript, summarize_chapters. The verbs clearly indicate the action, and the nouns indicate the resource or output.
With 4 tools, the server is well-scoped for a focused YouTube transcript utility. Each tool covers a meaningful, non-redundant capability without unnecessary bloat.
The set covers the core transcript workflows: fetching, searching, chunking, and basic metadata retrieval. A minor gap is the lack of a tool to list available transcript languages or caption tracks, which could help when the default language is unavailable.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents. No signup.
YouTube transcripts, search, channels, playlists and bulk transcript jobs for AI agents. 14 tools.
💯 The fastest YouTube transcript + YouTube search MCP for AI agents. Try for free.
Clean YouTube transcripts for agents: single videos, channels, playlists, plus AI caption cleanup.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to fetch transcripts, metadata, and download videos/audio from YouTube without API keys.30MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, watch, summarize, clip, and extract transcripts from YouTube videos, all without needing an API key or leaving the chat.2750Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with YouTube videos by fetching transcripts, summarizing content, and answering questions based on video context.-
- AlicenseAqualityBmaintenanceEnables AI assistants to search YouTube, fetch transcripts, and get AI summaries of videos without API keys.312MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/luigimasango-dev/youtube-transcript-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server