Enables searching for YouTube videos, extracting video transcripts with timestamps, and analyzing YouTube content through the YouTube Data API v3.
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 MCP Serversearch for videos about Python tutorials and get transcripts for the top 3"
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 MCP Server
A Model Context Protocol (MCP) server that enables Claude Desktop (and other applications) to interact with YouTube, providing search and transcript functionality.
Features
Search YouTube Videos: Search for videos with customizable result counts
Get Video Transcripts: Extract transcripts from YouTube videos using URLs or video IDs
AI-Ready Integration: Seamlessly integrates with Claude Desktop for YouTube content analysis
Tools Available
1. search_youtube_videos
Purpose: Search YouTube for videos based on a query
Parameters:
search_term(string): The search querynum_videos(int): Number of videos to return (default: 5, max: 50)
Returns: List of video information including titles, channels, descriptions, URLs, and metadata
2. get_youtube_transcript
Purpose: Extract transcript from a YouTube video
Parameters:
video_url_or_title(string): YouTube video URL or video ID
Returns: Full transcript with timestamps and metadata
3. analyze_youtube_content_prompt
Purpose: AI prompt template for comprehensive YouTube content analysis
Parameters:
search_term(string): Topic to analyzenum_videos(int): Number of videos to analyze
Setup
1. Install Dependencies
2. Get YouTube API Key
Go to Google Cloud Console
Create a new project or select existing one
Enable YouTube Data API v3
Create credentials (API Key)
Copy the API key
3. Configure Environment
4. Test the Server
Integration with Claude Desktop
Add this configuration to your Claude Desktop MCP settings:
Usage Examples
Once integrated with Claude Desktop, you can:
"Search for videos about machine learning and get transcripts"
"Find the latest videos on climate change and analyze their content"
"Get the transcript of this YouTube video: https://www.youtube.com/watch?v=..."
"Compare different perspectives on AI ethics from YouTube videos"
Error Handling
Missing API Key: Server will warn and search functionality will be limited
Invalid Video IDs: Clear error messages for transcript requests
API Limits: Respects YouTube API quotas and rate limits
Missing Transcripts: Handles videos without available captions
Dependencies
fastmcp: MCP server frameworkgoogle-api-python-client: YouTube Data API accessyoutube-transcript-api: Transcript extraction
License
This project is open source and available under standard licensing terms.