youtube-transcriber-mcp
Transcribes YouTube videos by downloading audio and generating text transcripts with automatic speaker identification and optimization for videos of any length.
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-transcriber-mcptranscribe https://www.youtube.com/watch?v=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 Transcriber MCP
A Model Context Protocol (MCP) server that enables intelligent transcription of YouTube videos with automatic optimization for any video length. This tool integrates with desktop applications to provide high-quality, local transcription capabilities using OpenAI Whisper with smart processing strategies.
Features
Automatic Strategy Selection: Intelligently chooses optimal processing method based on video duration
Long Video Support: Efficiently handles videos from minutes to hours with smart sampling
Local Processing: All transcription happens on your machine - no external APIs required
Speaker Identification: Automatically detects and labels different speakers in videos using local diarization
High Accuracy: Leverages OpenAI Whisper for state-of-the-art transcription quality
MCP Integration: Seamlessly works with MCP-compatible applications
Automatic Cleanup: Downloaded files are automatically removed after processing
Multiple Model Sizes: Choose from tiny to large models based on your accuracy/speed needs
Related MCP server: YouTube Transcript MCP Server
Installation
Prerequisites
Python 3.8 or higher
FFmpeg installed on your system
MCP-compatible application (e.g., Claude Desktop)
Install FFmpeg
macOS:
brew install ffmpegUbuntu/Debian:
sudo apt update
sudo apt install ffmpegWindows: Download from FFmpeg website
Setup
Clone the repository:
git clone https://github.com/StevenGeller/youtube-transcriber-mcp.git
cd youtube-transcriber-mcpCreate a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtConfiguration
For Claude Desktop
Open Claude Desktop settings
Navigate to the "Developer" section
Under "Edit Config", add the YouTube transcriber to your MCP servers:
{
"mcpServers": {
"youtube-transcriber": {
"command": "/path/to/youtube-transcriber-mcp/venv/bin/python",
"args": ["/path/to/youtube-transcriber-mcp/youtube_mcp_server.py"],
"env": {
"PYTHONUNBUFFERED": "1"
}
}
}
}Important: Replace /path/to/youtube-transcriber-mcp with the actual path where you cloned the repository.
Example for macOS:
{
"mcpServers": {
"youtube-transcriber": {
"command": "/Users/yourusername/youtube-transcriber-mcp/venv/bin/python",
"args": ["/Users/yourusername/youtube-transcriber-mcp/youtube_mcp_server.py"],
"env": {
"PYTHONUNBUFFERED": "1"
}
}
}
}Save the configuration
Restart Claude Desktop
For Other MCP Clients
The server follows the MCP standard and can be used with any MCP-compatible client. The key configuration elements are:
Command: Path to the Python interpreter in your virtual environment
Arguments: Path to
youtube_mcp_server.pyEnvironment: Set
PYTHONUNBUFFERED=1for proper output handling
Usage
Once configured, you can transcribe YouTube videos by asking:
"Transcribe this YouTube video: [URL]"
"Get the transcript from: [URL]"
"Transcribe [URL] without timestamps"
The server automatically optimizes processing based on video length:
Automatic Strategy Selection
Video Duration | Strategy | Description |
≤ 10 minutes | Full Transcription | Complete word-for-word transcription with base model |
10-60 minutes | Chunked Processing | Parallel processing of 5-minute segments for faster results |
> 60 minutes | Smart Sampling | Transcribes key sections (intro, conclusion, quarter points) for quick overview |
Model Sizes
tiny: Fastest, least accurate (~39M parameters)
base: Good balance (default for short videos, ~74M parameters)
small: Better accuracy (~244M parameters)
medium: High accuracy (~769M parameters)
large: Best accuracy (~1550M parameters)
Note: The server automatically selects appropriate model sizes based on video duration to optimize performance.
Advanced Features
Long Video Optimization
The transcriber automatically handles long videos efficiently:
Automatic Detection: Analyzes video duration and selects optimal strategy
Chunked Processing: For medium videos (10-60 min), splits into chunks for parallel processing
Smart Sampling: For long videos (>60 min), intelligently samples key sections:
Introduction (first 2 minutes)
Key points at 25%, 50%, 75% marks
Conclusion (last 2 minutes)
Performance: ~90% time savings on long videos while capturing essential content
Speaker Diarization
The transcriber includes built-in local speaker diarization that works completely offline:
Detects the number of speakers in the video
Segments the audio by speaker
Labels each transcript segment with the appropriate speaker
Uses MFCC features and clustering for voice identification
Project Structure
youtube-transcriber-mcp/
├── youtube_mcp_server.py # Main MCP server
├── transcriber.py # WhisperX transcription engine
├── local_diarization.py # Local speaker diarization
├── quiet_transcriber.py # Fallback transcriber
├── requirements.txt # Python dependencies
└── README.md # This fileTroubleshooting
"Server disconnected" error
Ensure FFmpeg is installed and in your PATH
Check that all Python dependencies are installed
Verify the file paths in your MCP configuration
Memory issues
Try using a smaller model size
Ensure you have sufficient RAM (4GB+ recommended)
Speaker identification issues
The local diarization should work automatically
If speaker detection fails, all speech will be labeled as SPEAKER_00
Check the logs for any error messages
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is released into the public domain under The Unlicense - see the LICENSE file for details.
Acknowledgments
Built with WhisperX for enhanced transcription
Uses yt-dlp for reliable YouTube downloads
Implements the Model Context Protocol specification
This server cannot be installed
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 Servers
- AlicenseAqualityAmaintenanceTranscribes videos from 1000+ platforms (YouTube, TikTok, Vimeo, etc.) and local video files using OpenAI's Whisper model, with support for 90+ languages and multiple output formats.Last updated8704MIT
- FlicenseBquality-maintenanceEnables extraction and processing of YouTube video transcripts from individual videos, channels, and playlists. Supports transcript search, batch processing, multiple output formats (JSON, text, SRT, VTT), and bulk operations across multiple videos.Last updated1134
- AlicenseCqualityDmaintenanceTranscribe YouTube videos for LLM chat applications. Supports fetching transcripts in multiple languages and includes an ad-removal instruction.Last updated17MIT
- Alicense-qualityDmaintenanceEnables AI assistants to download YouTube videos and transcribe them locally using OpenAI's Whisper speech recognition model.Last updatedMIT
Related MCP Connectors
Provide token-optimized, structured YouTube data to enhance your LLM applications. Access efficien…
💯 The fastest YouTube transcript + YouTube search MCP for AI agents. Try for free.
YouTube transcripts, subtitles, and video metadata as structured JSON via an Apify Actor.
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/StevenGeller/youtube-transcriber-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server