YouTube Transcript MCP Server
Fetches transcripts from YouTube videos, supporting multiple preferred languages and various YouTube URL formats.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
YouTube Transcript MCP Server
A simple MCP (Model Context Protocol) server that fetches YouTube video transcripts.
Features
Extract transcripts from YouTube videos
Support for multiple languages
Works with various YouTube URL formats
Related MCP server: youtube-summarize
Installation
Requires Python 3.10 or higher.
# Install dependencies
pip install mcp>=1.12.4 youtube-transcript-api>=1.2.2Tested with:
Python 3.11
mcp 1.14.0
youtube-transcript-api 1.2.2
Installation Options
Option 1: Quick Install (minimum versions)
# Install/upgrade all dependencies to minimum required versions
pip install --upgrade "mcp>=1.12.4" "youtube-transcript-api>=1.2.2"Option 2: Locked Versions (recommended)
# Install exact tested versions for guaranteed compatibility
pip install -r requirements.txtOption 3: Clean Environment
# Create isolated environment with exact versions
python3 -m venv youtube-transcript-env
source youtube-transcript-env/bin/activate # On Windows: youtube-transcript-env\Scripts\activate
pip install -r requirements.txtUsage
Claude Code
Add to .claude.json in your project:
{
"mcpServers": {
"youtube-transcript": {
"command": "python3.11",
"args": ["/absolute/path/to/youtube-transcript-mcp-py/main.py"]
}
}
}Available Tools
get_transcript
Fetches the transcript of a YouTube video.
Parameters:
url(required): YouTube video URLlanguages(optional): Array of preferred language codes (e.g.,["en", "th"])
Example:
{
"url": "https://www.youtube.com/watch?v=VIDEO_ID",
"languages": ["en"]
}Tips & Tricks
Custom Command Example
You can create a custom command that uses this MCP server. Add to your CLAUDE.md:
#### Custom Commands
### yt - YouTube Blog Converter
Custom command to convert YouTube videos into blog format with maximum 5-minute read time:
1. Use mcp__YouTube__get_transcript tool to fetch transcript from provided URL
2. Transform content into professional blog format optimized for 3-minute read (approximately 600-750 words)
3. Structure as comprehensive blog with clear sections and subheadings
4. Focus on technical insights, implementation details, and practical applications
5. Format with structured sections:
- **Introduction** (hook and context setting)
- **Core Concepts** (main technical topics covered)
- **Implementation Details** (how-to information, code examples, best practices)
- **Key Insights** (important takeaways and lessons learned)
- **Practical Applications** (real-world usage and examples)
- **Bottom Line** (concise summary and final thoughts - REQUIRED section)
6. Use professional writing style with clear explanations and smooth transitions
7. Include relevant technical terminology and maintain accuracy while ensuring accessibility
8. Optimize reading flow with proper paragraph breaks and logical content organization
9. Automatically detect video language and write summary in same language for maximum effectiveness:
- Thai videos → Thai summaries (preserves technical terminology, cultural context, serves target audience)
- English videos → English summaries
- Other languages → English summariesThen use: yt https://www.youtube.com/watch?v=VIDEO_ID
Example result:

Supported URL Formats
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://www.youtube.com/embed/VIDEO_IDhttps://www.youtube.com/v/VIDEO_ID
Troubleshooting
MCP Server Shows "Status: ✘ failed"
Common causes and solutions:
MCP Version Too Old
# Check current version pip show mcp # Upgrade if below 1.12.4 pip install --upgrade "mcp>=1.12.4"YouTube Transcript API Version Issues
# Upgrade to latest compatible version pip install --upgrade "youtube-transcript-api>=1.2.2"Build Configuration Missing
Ensure
pyproject.tomlhas the hatch build configuration:
[tool.hatch.build.targets.wheel] packages = ["."]Python Version
Requires Python 3.10 or higher
Test with:
python3 --version
MCP Server Starts But Transcript Fails
"no element found: line 1, column 0" Error:
Video has no captions/transcripts available
Video is private, unlisted, or region-restricted
YouTube anti-bot measures (try again later)
Check if video shows "CC" button in YouTube player
"Could not extract video ID" Error:
Ensure URL format is supported (see above)
Remove extra parameters like
&t=14sif causing issues
Connection Issues
After updating dependencies, MCP server still fails:
Completely restart Claude Code
Reconnect with
/mcpcommandClear any cached configurations
Dependency conflicts:
# Check for conflicts
pip check
# If conflicts exist, create clean environment
python3 -m venv youtube-transcript-env
source youtube-transcript-env/bin/activate
pip install "mcp>=1.12.4" "youtube-transcript-api>=1.2.2"Testing Your Installation
Test MCP server directly:
cd /path/to/youtube-transcript-mcp
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{"roots":{"listChanged":true},"sampling":{}},"clientInfo":{"name":"test","version":"1.0"}}}' | python3 main.pyShould return: {"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2024-11-05",...}}
Test YouTube API directly:
python3 -c "
from youtube_transcript_api import YouTubeTranscriptApi
api = YouTubeTranscriptApi()
print('API working:', bool(api.list('dQw4w9WgXcQ')))
"License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time YouTube transcripts, comments, channels & video search MCP. Local npx or hosted OAuth.
Transcripts, translations, summaries, subtitles, and search for public YouTube videos.
Clipscript MCP: transcripts of YouTube, TikTok, Instagram, Facebook and X videos from a link.
Fetch YouTube transcripts with timestamps, search history, and export data for AI models.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables transcription of YouTube videos in multiple languages through an MCP server interface.-
- AlicenseAqualityCmaintenanceMCP server that fetches YouTube video transcripts and optionally summarizes them. Supports multiple transcript formats (text, JSON, SRT, WebVTT), multi-language retrieval, and flexible YouTube URL parsing.649 PyPI6MIT
- AlicenseNot gradedqualityDmaintenanceEnables retrieval of transcripts from YouTube videos, supporting multiple URL formats, language selection, timestamps, and ad filtering.MIT
- FlicenseNot gradedqualityDmaintenanceEnables users to fetch YouTube video transcripts via a single MCP tool, with support for multiple languages and OAuth-protected access.-