YouTube

by bendelpino

Not rated
GitHub

About

Search YouTube videos and retrieve their transcripts using the YouTube API.

Details

Author
bendelpino
Categories
Search, Knowledge Base, Other

Setup

Install YouTube in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/bendelpino/youtube-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

A Model Context Protocol (MCP) server that enables Claude Desktop (and other applications) to interact with YouTube, providing search and transcript functionality.

- 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

- Purpose: Search YouTube for videos based on a query
- Parameters:

- search_term(string): The search query
- num_videos(int): Number of videos to return (default: 5, max: 50)

- Purpose: Extract transcript from a YouTube video
- Parameters:

- video_url_or_title(string): YouTube video URL or video ID

- Purpose: AI prompt template for comprehensive YouTube content analysis
- Parameters:

- search_term(string): Topic to analyze
- num_videos(int): Number of videos to analyze

# Create virtual environment python3 -m venv .venv # Activate virtual environment source .venv/bin/activate # Install dependencies pip install -r requirements.txt

- Go toGoogle Cloud Console
- Create a new project or select existing one
- Enable YouTube Data API v3
- Create credentials (API Key)
- Copy the API key

# Copy example environment file cp .env.example .env # Edit .env and add your YouTube API key YOUTUBE_API_KEY=your_actual_api_key_here
# Activate virtual environment source .venv/bin/activate # Run the server python youtube_server.py

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" } } }

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"

- 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

- fastmcp: MCP server framework
- google-api-python-client: YouTube Data API access
- youtube-transcript-api: Transcript extraction

This project is open source and available under standard licensing terms.

Search global news using natural language. Webz.io News Search API returns the most relevant articles and content, with filters for source, country, language, date, sentiment, and category.

BYOK Reddit/YouTube research CLI with a tamper-evident audit log and an MCP server.

An agent-based tool for web search and advanced research, including analysis of PDFs, documents, images, and YouTube transcripts.

An MCP server providing search capabilities for Reddit, YouTube, and Twitter.

Provides search capabilities and data retrieval from SerpAPI and YouTube for AI assistants.

Get YouTube transcripts, search videos, browse channels, and extract playlists from any AI agent — powered by TranscriptAPI.com with no API key required.

Connect AI assistants to YouTube - search, transcripts, metadata, and more.

Self-hosted YouTube research MCP with 17 tools for search, transcripts, timestamped frames, comments, and private local semantic corpora.

Search a YouTube video's transcript and read its frames — every answer cites a clickable timestamp.

A set of tools to interact with YouTube, including video search, transcript extraction, and comment retrieval.

Finds background music for YouTube shorts by analyzing script content and recommending tracks from YouTube Music.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.