youtube-mcp
Provides tools for extracting video transcripts, metadata, comments, and channel statistics 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-mcp summarize transcript of 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 MCP Server
A Model Context Protocol (MCP) server for extracting and processing YouTube video content. This server provides tools for LLMs to directly read video transcripts, analyze metadata, search within videos, fetch top comments, and get channel statistics.
Features
Transcript Extraction: Fetch video subtitles/transcripts with timestamps (No API Key Required).
Video Summarization: Intelligent transcript chunking for LLM summarization.
Transcript Search: Search for specific words or phrases and get exact YouTube timestamp links.
Video Metadata: Fetch views, likes, descriptions, duration, and tags (Requires API Key).
Top Comments: Fetch the most relevant comments of a video.
Channel Info: Get subscriber count, total video count, and channel creation date.
Related MCP server: YouTube Insights MCP Server
Prerequisites
Node.js 18 or higher (v22+ recommended)
A YouTube Data API v3 Key (Only required for metadata, comments, and channel info)
Installation
# 1. Clone or download the repository
# 2. Install dependencies
npm install
# 3. Build the project
npm run buildConfiguration
For tools requiring an API key (video info, comments, channel info), you need to get a free API key from Google Cloud Console.
Copy the example env file:
cp .env.example .envAdd your YouTube Data API v3 key to the
.envfile:YOUTUBE_API_KEY=YOUR_API_KEY_HERE
Development
# Run in development mode (auto-reload on save)
npm run devAdding to Cursor / Claude Desktop
Add the following to your mcp_config.json file:
{
"mcpServers": {
"youtube-mcp": {
"command": "node",
"args": ["/absolute/path/to/youtube-mcp/dist/index.js"],
"env": {
"YOUTUBE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}Tools List
Tool Name | Description | Requires API Key |
| Fetches the full transcript with timestamps | ❌ No |
| Splits transcript into smaller timestamped chunks | ❌ No |
| Searches the video text and returns timestamp links | ❌ No |
| Fetches views, likes, duration, and description | ✅ Yes |
| Fetches top comments | ✅ Yes |
| Fetches subscriber count and channel statistics | ✅ Yes |
Available Tools
6 toolsget_channel_infoA
Fetches YouTube channel details: name, subscriber count, total videos, total views, etc. You can provide a channel ID or a video URL. Requires YouTube API key.
Inputs: input (required).
get_commentsA
Fetches the most popular comments of a YouTube video. Requires YouTube API key.
Inputs: videoUrl (required), maxResults.
get_transcriptA
Fetches the transcript (subtitles) of a YouTube video with timestamps. No API key required.
Inputs: videoUrl (required).
get_video_infoA
Fetches metadata for a YouTube video: title, description, duration, views, likes, tags, etc. Requires YouTube API key.
Inputs: videoUrl (required).
search_in_transcriptA
Searches for a word or phrase within a YouTube video transcript. Returns matching segments with timestamps and YouTube URL links. No API key required.
Inputs: query (required), videoUrl (required).
summarize_transcriptA
Splits the YouTube video transcript into chunks and creates timestamped chapters. No API key required.
Inputs: videoUrl (required), chunkSeconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct resource or action: raw transcripts, video metadata, transcript summarization, transcript search, comments, and channel info. The three transcript tools are clearly differentiated by their verbs (get, summarize, search).
Most tools follow a get_* pattern (get_transcript, get_video_info, get_comments, get_channel_info), while summarize_transcript and search_in_transcript use action-specific verbs. This is a minor deviation but still follows a consistent verb_noun structure in snake_case.
Six tools is well-scoped for a YouTube MCP server, covering transcript handling (3 tools), video info, comments, and channel info without overloading the surface. Each tool serves a clear purpose.
The set covers core read-only video analysis workflows: metadata, transcript, comments, and channel details. Minor gaps exist, such as video search or listing videos by channel, but the apparent purpose is well-served.
Maintenance
Related MCP Connectors
YouTube transcripts/subtitles, comments + replies, Shorts and video/channel data.
Provide token-optimized, structured YouTube data to enhance your LLM applications. Access efficien…
YouTube for AI agents: transcripts, comments, video stats, channel monitor, Shorts captions.
YouTube transcripts, comments, video details, heatmaps, search, channels and playlists.
Related MCP Servers
- AlicenseBqualityDmaintenanceExtracts YouTube video metadata and transcripts without requiring API keys, enabling users to retrieve video information, captions, and timestamps through web scraping with built-in caching and error handling.112 npm1MIT
- AlicenseBqualityDmaintenanceEnables extraction of transcripts, keyword-based video search with metadata retrieval, and channel information discovery from YouTube videos through natural language interaction.34MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to research YouTube videos by collecting captions, comments, and channel information for analysis and comparison.1010MIT
- AlicenseAqualityDmaintenanceEnables LLMs to extract YouTube video transcripts with timestamps, metadata, and file export.314 npmMIT