YouTube
Search YouTube videos and retrieve their transcripts using the YouTube API.
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
# Create virtual environment
python3 -m venv .venv
# Activate virtual environment
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt
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
# Copy example environment file
cp .env.example .env
# Edit .env and add your YouTube API key
YOUTUBE_API_KEY=your_actual_api_key_here
4. Test the Server
# Activate virtual environment
source .venv/bin/activate
# Run the server
python youtube_server.py
Integration with Claude Desktop
Add this configuration to your Claude Desktop MCP settings:
{
"mcpServers": {
"youtube": {
"command": "local/path/to/uv",
"args": [
"run",
"--directory",
"/Path/to/your/project",
"youtube_server.py"
],
"env": {
"YOUTUBE_API_KEY": "your_key_here"
}
}
}
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.
Related Servers
Semiconductor Supply Chain MCP Server
Access semiconductor B2B platforms like AnySilicon and DesignReuse for IP core and ASIC service procurement.
avr-docs-mcp
This MCP (Model Context Protocol) server provides integration with Wiki.JS for searching and listing pages from Agent Voice Response Wiki.JS instance.
Crawleo MCP Server
Crawleo MCP - Web Search & Crawl for AI Enable AI assistants to access real-time web data through native tool integration. Two Powerful Tools: web.search - Real-time web search with flexible formatting Search from any country/language Device-specific results (desktop, mobile, tablet) Multiple output formats: Enhanced HTML (AI-optimized, clean) Raw HTML (original source) Markdown (formatted text) Plain Text (pure content) Auto-crawl option for full content extraction Multi-page search support web.crawl - Deep content extraction Extract clean content from any URL JavaScript rendering support Markdown conversion Screenshot capture Multi-URL support Features: ✅ Zero data retention (complete privacy) ✅ Real-time, not cached results ✅ AI-optimized with Enhanced HTML mode ✅ Global coverage (any country/language) ✅ Device-specific search (mobile/desktop/tablet) ✅ Flexible output formats (4 options) ✅ Cost-effective (5-10x cheaper than competitors) ✅ Simple Claude Desktop integration Perfect for: Research, content analysis, data extraction, AI agents, RAG pipelines, multi-device testing
WolframAlpha LLM
Answer math and other queries using the WolframAlpha LLM API.
Brave Search
A server for Brave Search, enabling web search capabilities via its API.
TripGo
Find transport-related locations, departures, and routes using the TripGo API.
Google Search Console
An MCP server for accessing Google Search Console data, including site performance and indexing status.
302AI Web Search
A web search server powered by the 302.AI API.
Bucketeer Docs Local MCP Server
A local server to query Bucketeer documentation, which automatically fetches and caches content from its GitHub repository.
门店大数据服务
Provides comprehensive offline store information queries, including enterprise restaurant brand store search, offline store search, and restaurant brand store statistics.