youtube-research
Provides tools for searching videos, retrieving video metadata, fetching transcripts, getting channel information, listing channel videos, playlist contents, comments, and trending videos from YouTube.
Click on "Deploy 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-research Search for machine learning tutorials"
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 Research MCP Server
An MCP server for YouTube integration with Claude Code — search videos, get metadata, fetch transcripts, explore channels, and more.
Tools
Tool | Description | API Quota |
| Search videos by query | 100 + 1 |
| Get video metadata by URL or ID | 1 |
| Fetch video subtitles with timestamps | 0 (no API) |
| Get channel stats (subscribers, views, etc.) | 1 |
| List recent videos from a channel | 2 |
| List videos in a playlist | 2 |
| Get top comments for a video | 1 |
| Get trending videos by country | 1 |
YouTube Data API v3 free quota: 10,000 units/day.
youtube_searchis the most expensive at ~101 units per call.
Related MCP server: YouTube MCP Server
Setup
1. Get a YouTube API Key
Go to Google Cloud Console
Create a project (or select an existing one)
Navigate to APIs & Services → Library
Find and enable YouTube Data API v3
Go to APIs & Services → Credentials
Click Create Credentials → API Key
Copy the key
2. Install Dependencies
cd /path/to/youtube_research
uv sync3. Configure Claude Code
Copy the example config and add your API key:
cp .mcp.json.example ~/.claude/.mcp.jsonEdit ~/.claude/.mcp.json — replace /path/to/youtube_research and YOUR_API_KEY_HERE with actual values.
Important:
.mcp.jsoncontains your API key — do not commit it to git.
Alternatively, place .mcp.json in the project root — the server will only be available when working from that directory.
4. Restart
Restart Claude Code — all 8 tools will become available.
Remote Access (SSE)
To use with Claude.ai web chat or other remote MCP clients, run the server in SSE mode on a VPS:
YOUTUBE_API_KEY=your_key uv run server.py --sse --host 0.0.0.0 --port 8000Options:
--sse— enable SSE transport (default is stdio)--host— bind address (default:127.0.0.1— use0.0.0.0to expose externally)--port— port number (default:8000)
The server will be available at http://your-vps:8000/sse.
Security: The SSE endpoint has no built-in authentication. For public deployment, use a reverse proxy (nginx) with token-based auth in front of it.
Usage Examples
In Claude Code:
"Find videos about Python asyncio" →
youtube_search"Show info for https://youtu.be/dQw4w9WgXcQ" →
youtube_video_info"Get subtitles for this video" →
youtube_transcript"How many subscribers does @lexfridman have?" →
youtube_channel_info"Show latest videos from @ThePrimeagen" →
youtube_channel_videos"List videos in this playlist: https://youtube.com/playlist?list=..." →
youtube_playlist"What are people saying about this video?" →
youtube_comments"What's trending in Japan?" →
youtube_trending
License
Available Tools
8 toolsyoutube_channel_infoA
Get channel metadata by URL, handle, or ID.
Returns: id, title, description, subscriber_count, view_count, video_count, published_at, thumbnail, custom_url.
Inputs: channel_url_or_id (required). Returns: result
youtube_channel_videosA
List recent videos from a channel.
Accepts channel URL, @handle, or ID. Returns videos sorted by date (newest first) with metadata: id, title, description, duration, view_count, published_at.
Inputs: channel_url_or_id (required), max_results. Returns: result
youtube_commentsB
Get top-level comments for a YouTube video.
Returns comments sorted by relevance with: author, text, likes, published_at.
Inputs: video_url_or_id (required), max_results. Returns: result
youtube_playlistC
List videos in a YouTube playlist.
Accepts a playlist URL or ID. Returns videos with metadata.
Inputs: playlist_url_or_id (required), max_results. Returns: result
youtube_searchA
Search YouTube videos by query.
Returns a list of videos with metadata: id, title, description, duration, view_count, published_at, channel.
Inputs: query (required), max_results. Returns: result
youtube_transcriptB
Get subtitles/transcript for a YouTube video.
Accepts a video URL or ID. Returns timestamped text. Looks for Russian subtitles first, then English by default.
Inputs: video_url_or_id (required), lang. Returns: result
youtube_trendingA
Get trending/most popular videos for a region.
region_code: ISO 3166-1 alpha-2 country code (e.g. US, RU, GB, DE, JP). Returns videos with metadata sorted by popularity.
Inputs: region_code, max_results. Returns: result
youtube_video_infoA
Get video metadata by URL or ID.
Returns: id, title, description, duration, view_count, published_at, channel. Direct lookup by video ID — no search required.
Inputs: video_url_or_id (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct YouTube resource or action: channel metadata, channel videos, video comments, playlist contents, search, transcript, trending, and video info. No semantic overlap.
All tools share the 'youtube_' prefix and use descriptive noun phrases (e.g., channel_info, transcript). Minor inconsistency: 'youtube_comments' could be more specific like 'youtube_video_comments', but overall pattern is clear.
8 tools is well-scoped for a YouTube research server. Each tool serves a clear purpose without unnecessary bloat, covering the main read-only operations needed for research.
The set covers the essential read-only operations for YouTube research: channels, videos, search, playlists, comments, transcripts, and trending. Missing operations like channel search or video statistics are minor gaps.
Related MCP Connectors
Search YouTube videos, read transcripts and get public video information in your AI assistant.
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents.
YouTube transcripts, search, channels, playlists and bulk transcript jobs for AI agents. 14 tools.
Fetch YouTube transcripts, monitor channels and track keyword matches from your AI assistant.
Related MCP Servers
- FlicenseAqualityDmaintenanceIntegrates YouTube with Claude Code, enabling video transcript retrieval, search, metadata extraction, channel info, playlists, comments, trending videos, engagement analytics, chapter extraction, SponsorBlock integration, and most-replayed heatmaps.1517-
- FlicenseNot gradedqualityDmaintenanceEnables bringing YouTube into Claude Code for video transcripts, search, metadata, channel info, playlists, comments, trending videos, engagement analytics, chapters, SponsorBlock clean transcripts, and most-replayed heatmaps.-
- FlicenseAqualityDmaintenanceEnables Claude Code to access YouTube features such as video transcripts, search, metadata, channel info, playlists, comments, trending videos, engagement analytics, chapters, SponsorBlock, and most-replayed heatmaps.151-
- FlicenseAqualityDmaintenanceEnables Claude Code to retrieve YouTube transcripts, search videos and channels, fetch metadata, playlists, comments, trending videos, engagement analytics, chapters, SponsorBlock-cleaned transcripts, and most-replayed heatmaps.15-