
Product
Microsoft Teams Notifications Are Now Available in Socket
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.
@fabriqa.ai/youtube-transcript-mcp
Advanced tools
MCP server for retrieving YouTube video transcripts for Claude Code
A Model Context Protocol (MCP) server that retrieves transcripts from YouTube videos for Claude Code. This server allows you to easily extract video transcripts without manually downloading or copying content, making it perfect for analyzing video content, summarizing talks, or extracting information from educational videos.
npm package: @fabriqa.ai/youtube-transcript-mcp Author: Cengiz Han
npm install -g @fabriqa.ai/youtube-transcript-mcp
After installation, the server will be available globally. You can configure it by running:
# The package will be installed in your global node_modules
# Typically: /usr/local/lib/node_modules/@fabriqa.ai/youtube-transcript-mcp
git clone https://github.com/hancengiz/youtube-transcript-mcp.git
cd youtube-transcript-mcp
npm install
Recommended: Machine-Wide Installation
# Add the MCP server for all projects (machine-wide)
claude mcp add --scope user youtube-transcript npx @fabriqa.ai/youtube-transcript-mcp@latest
Understanding Scope Options:
Claude Code supports three configuration scopes for MCP servers:
--scope user (Recommended) - Machine-wide
--scope local (Default) - Project-specific
--scope project - Explicit project
Example usage:
# Machine-wide (recommended for youtube-transcript)
claude mcp add --scope user youtube-transcript npx @fabriqa.ai/youtube-transcript-mcp@latest
# Project-specific (if you prefer)
claude mcp add --scope local youtube-transcript npx @fabriqa.ai/youtube-transcript-mcp@latest
# Or use the convenience script
npx @fabriqa.ai/youtube-transcript-mcp/update-config.js
Add to your ~/.claude.json:
{
"mcpServers": {
"youtube-transcript": {
"command": "npx",
"args": [
"@fabriqa.ai/youtube-transcript-mcp@latest"
]
}
}
}
This uses npx to automatically run the globally installed package without needing to specify paths.
After installing via npm, you can use the included configuration script to automatically update your ~/.claude.json:
npx @fabriqa.ai/youtube-transcript-mcp/update-config.js
Or if installed from source:
node update-config.js
This will automatically add the MCP server using npx, making it available machine-wide across all your projects.
For Claude Desktop, edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"youtube-transcript": {
"command": "npx",
"args": [
"@fabriqa.ai/youtube-transcript-mcp@latest"
]
}
}
}
Once configured, restart Claude Code. The following tools will be available:
Retrieve the transcript of a YouTube video.
Parameters:
url (required): YouTube video URL or video IDlang (optional): Language code for transcript (e.g., 'en', 'es', 'fr'). Default: video's default languageinclude_timestamps (optional): Include timestamps in output. Default: trueSupported URL formats:
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://m.youtube.com/watch?v=VIDEO_IDVIDEO_ID (just the 11-character video ID)Example:
Can you get the transcript from https://www.youtube.com/watch?v=LCEmiRjPEtQ?
Get the transcript from this video without timestamps: https://youtu.be/LCEmiRjPEtQ
Summarize the key learnings from this Andrej Karpathy talk: https://www.youtube.com/watch?v=LCEmiRjPEtQ
Check what transcript languages are available for a video.
Parameters:
url (required): YouTube video URL or video IDExample:
What transcript languages are available for https://www.youtube.com/watch?v=LCEmiRjPEtQ?
Here's how you might use this MCP server with Claude Code:
Extract a transcript to summarize a video:
Give me the key learnings from this Andrej Karpathy talk: https://www.youtube.com/watch?v=LCEmiRjPEtQ
Analyze specific topics in a video:
Get the transcript from https://www.youtube.com/watch?v=LCEmiRjPEtQ and extract all mentions of "LLM" and "agents"
Get transcripts in different languages:
What transcript languages are available for https://www.youtube.com/watch?v=LCEmiRjPEtQ?
Extract quotes without timestamps (for long videos):
Get the transcript without timestamps from this video: https://www.youtube.com/watch?v=LCEmiRjPEtQ
Note: This 60-minute video generates ~19k tokens without timestamps vs ~30k with timestamps.
Research and content creation:
Get 3 key quotes from Andrej Karpathy about partial autonomy apps from https://www.youtube.com/watch?v=LCEmiRjPEtQ
Save 90% of your context when analyzing videos!
Claude Code supports specialized sub-agents that can analyze YouTube videos in an isolated context, returning only the insights to your main conversation. This means you can analyze many videos without filling up your context window with large transcripts.
Instead of this (fills your context with 20k+ tokens):
Get the transcript and analyze this video: [URL]
Do this (only ~2k tokens in your context):
Use sub-agent to analyze this video: [URL]
This specialized agent:
📖 Complete Claude Code Sub-Agent Guide
The guide includes:
Perfect for: Researchers, content creators, students, and anyone analyzing multiple videos in one session.
yt-lib/)The MCP (Model Context Protocol) infrastructure has a 25,000 token response limit to protect Claude's context window and prevent performance issues. This limit is imposed by the MCP protocol layer, not by YouTube or this tool.
What this means:
Symptoms:
Error: MCP tool "get-transcript" response (30131 tokens) exceeds
maximum allowed tokens (25000). Please use pagination, filtering,
or limit parameters to reduce the response size.
Solutions:
Disable timestamps (recommended for long videos):
Get the transcript without timestamps from https://www.youtube.com/watch?v=VIDEO_ID
This typically reduces response size by 20-30%, making most videos fit within the limit.
Request shorter videos (under 60 minutes usually work with timestamps)
Process in chunks: For very long videos, you may need to work with the transcript data programmatically rather than through the MCP tool
Real-world example (Andrej Karpathy's talk):
Workaround: Simply ask "Get the transcript without timestamps" for long videos.
npm installget-transcript-languages tool to check available languagesTo modify or extend the server:
index.js to add new tools or modify existing onesListToolsRequestSchema handler to register new toolsCallToolRequestSchema handlernpm testRun the test suite:
npm test
This will validate:
MIT
Created by Cengiz Han
Feel free to submit issues or pull requests to improve this MCP server.
FAQs
MCP server for retrieving YouTube video transcripts for Claude Code
We found that @fabriqa.ai/youtube-transcript-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.