This YouTube MCP Server’s original GitHub repository is currently unavailable. The project previously supported video metadata retrieval and Whisper-based audio transcription.
For extracting existing YouTube transcripts through MCP, explore the alternative below.
Alternatives
YouTube Transcript MCP
YouTube Transcript MCP lets AI assistants retrieve transcript text from public YouTube videos. It supports Node.js and Bun, and returns the available captions as plain text for summarization, question answering, and content analysis.
It retrieves existing YouTube captions, including automatically generated subtitles when available. Videos with no accessible transcript require a separate speech-to-text tool.
The YouTube MCP Server connects your AI agents directly to YouTube content.
It enables Large Language Models (LLMs) to extract metadata and generate high-fidelity transcriptions from videos.
Features
- 🧠 In-Memory Processing: The server processes audio streams directly in RAM.
- 📝 Smart Transcription: It utilizes OpenAI’s Whisper models to generate accurate text from audio.
- 🗣️ Voice Activity Detection (VAD): Silero VAD segments audio precisely.
- ⚡ Hardware Acceleration: The system supports CUDA (NVIDIA) and MPS (Apple Silicon) to speed up inference.
- 🌐 Multi-language Support: It supports transcription for 99 languages and includes translation capabilities.
- 📊 Metadata Extraction: You can retrieve full video details, including views, duration, tags, and descriptions, without downloading the video file.
- 💾 Intelligent Caching: The server caches transcription results to JSON files.
- 🚀 Parallel Processing: It employs concurrent threads to transcribe multiple audio segments simultaneously.
Use Cases
- RAG Pipelines for Video Content: AI agents can retrieve specific technical instructions from tutorial videos to answer user queries accurately.
- Automated Content Summarization: Content creators can generate summaries, show notes, or blog posts from raw video footage automatically.
- Multilingual Content Analysis: Researchers can transcribe and translate foreign language news or interviews to English for sentiment analysis.
- Metadata Indexing: Developers can build searchable databases of video libraries by extracting tags, categories, and descriptions programmatically.
How to Use It
Prerequisites
Python 3.10+: The server requires a modern Python environment.
ffmpeg: This is critical for audio processing.
- macOS:
brew install ffmpeg - Linux:
sudo apt install ffmpeg - Windows: Download the executable and add it to your system PATH.
Installation
1. Clone the Repository
git clone https://github.com/mourad-ghafiri/youtube-mcp-server
cd youtube-mcp-server
2. Install Dependencies
bash uv syncConfiguration
You can customize the server’s behavior by modifying the configuration file located at src/youtube_mcp_server/config.py.
Adjustable Parameters:
TRANSCRIPTIONS_DIR- Description: Defines where the server saves the cached transcription JSON files.
- Default:
"transcriptions"
WHISPER_MODEL_NAME- Description: Selects the specific OpenAI Whisper model size.
- Options:
"tiny","base","small","medium","large","turbo". - Default:
"tiny" - Performance Note: Larger models (like “large” or “turbo”) provide better accuracy but consume significantly more RAM and require a GPU.
SILERO_REPO/SILERO_MODEL- Description: Specifies the repository and ID for the Voice Activity Detection model.
SAMPLING_RATE- Description: Sets the audio sampling rate in Hz for both Whisper and VAD.
- Default:
16000
SEGMENT_PADDING_MS- Description: Adds time (in milliseconds) to the beginning and end of each audio segment. This prevents words from being cut off at the boundaries.
- Default:
200
MAX_WORKERS- Description: Controls the number of parallel threads used for transcribing segments.
- Default:
4 - Performance Note: Higher values increase speed but increase CPU and Memory usage.
Starting the Server
Run the main script using uv to start the server.
uv run main.pyThe server will initialize and listen for connections using Server-Sent Events (SSE) transport at http://127.0.0.1:8000/sse.
MCP Client Configuration
You must add the server details to your MCP client configuration file (usually claude_desktop_config.json or similar) to enable communication.
{
"mcpServers": {
"youtube": {
"url": "http://127.0.0.1:8000/sse"
}
}
}Tools Reference
The server exposes two primary tools to the AI agent.
1. get_video_info
This tool fetches metadata for a specific YouTube video.
- Input:
url(string): The full YouTube video URL.- Output: A JSON object containing the metadata.
{
"id": "VIDEO_ID",
"title": "Video Title",
"description": "Video description...",
"view_count": 1000000,
"duration": 212,
"uploader": "Channel Name",
"upload_date": "20091025",
"thumbnail": "https://i.ytimg.com/...",
"tags": ["tag1", "tag2"],
"categories": ["Music"]
}2. transcribe_video
This tool downloads the audio (in memory), segments it, and generates a transcription.
- Inputs:
url(string): The YouTube video URL.language(string): Controls the transcription language."auto"(Default): Detects the language automatically."en": Translates the audio to English.- Specific Code (e.g.,
"fr","es","ja"): Transcribes in the specified language.
- Output: A JSON object containing the video ID, title, duration, and a list of transcribed segments.
{
"id": "VIDEO_ID",
"title": "Video Title",
"duration": 212,
"transcription": [
{
"from": "00:00:00",
"to": "00:00:05",
"transcription": "First segment text..."
},
{
"from": "00:00:05",
"to": "00:00:10",
"transcription": "Second segment text..."
}
]
}FAQs
Q: Does this server download the video file to my hard drive?
A: No. The server streams the audio directly into RAM for processing. It writes only the final transcription JSON file to the transcriptions directory.
Q: Can I use this without a GPU?
A: Yes. The server works on CPU. However, transcription will be slower. You should stick to the "tiny" or "base" models in the configuration if you lack hardware acceleration.
Q: How do I change the transcription accuracy?
A: Edit src/youtube_mcp_server/config.py and change WHISPER_MODEL_NAME to "large" or "turbo". This requires more system resources but yields significantly better results.
Q: What happens if I request a video that was already transcribed?
A: The server checks the transcriptions directory first. It returns the cached JSON immediately if it exists.








