Integrations
Allows querying YouTube data, including searching for videos, retrieving video and channel information, and fetching video comments through the YouTube Data API.
YouTube MCP Server
A Model Context Protocol (MCP) server for interacting with YouTube data. This server provides resources and tools to query YouTube videos, channels, comments, and transcripts through a stdio interface.
Features
- Search for YouTube videos with advanced filtering options
- Get detailed information about specific videos and channels
- Compare statistics across multiple videos
- Discover trending videos by region and category
- Analyze channel performance and video statistics
- Retrieve video comments and transcripts/captions
- Generate video analysis and transcript summaries
Prerequisites
- Node.js (v16+)
- YouTube Data API key
Installation
Installing via Smithery
To install YouTube MCP Server for Claude Desktop automatically via Smithery:
Installing Manually
- Clone this repository:Copy
- Install dependencies:Copy
- Create a
.env
file in the root directory:Copy
Usage
Building and Running
- Build the project:Copy
- Run the server:Copy
- Run in development mode:Copy
- Clean build artifacts:Copy
Docker Deployment
The project includes a Dockerfile for containerized deployment:
API Reference
Resources
youtube://video/{videoId}
- Get detailed information about a specific videoyoutube://channel/{channelId}
- Get information about a specific channelyoutube://transcript/{videoId}
- Get transcript for a specific video- Optional query parameter:
?language=LANGUAGE_CODE
(e.g.,en
,ko
,ja
)
- Optional query parameter:
Tools
Basic Tools
search-videos
- Search for YouTube videos with advanced filtering optionsget-video-comments
- Get comments for a specific videoget-video-transcript
- Get transcript for a specific video with optional languageenhanced-transcript
- Advanced transcript extraction with filtering, search, and multi-video capabilitiesget-key-moments
- Extract key moments with timestamps from a video transcript for easier navigationget-segmented-transcript
- Divide a video transcript into segments for easier analysis
Statistical Tools
get-video-stats
- Get statistical information for a specific videoget-channel-stats
- Get subscriber count, view count, and other channel statisticscompare-videos
- Compare statistics across multiple videos
Discovery Tools
get-trending-videos
- Retrieve trending videos by region and categoryget-video-categories
- Get available video categories for a specific region
Analysis Tools
analyze-channel-videos
- Analyze performance trends of videos from a specific channel
Prompts
video-analysis
- Generate an analysis of a YouTube videotranscript-summary
- Generate a summary of a video based on its transcript with customizable length and keywords extractionsegment-by-segment-analysis
- Provide detailed breakdown of content by analyzing each segment of the video
Examples
Accessing a Video Transcript
Getting a Transcript in a Specific Language
Using the Statistical Tools
Using the Transcript Summary Prompt
Using the Enhanced Transcript Tool
Using the Enhanced Transcript Analysis Features
Error Handling
The server handles various error conditions, including:
- Invalid API key
- Video or channel not found
- Transcript not available
- Network issues
License
MIT
Acknowledgements
You must be authenticated.
Tools
A server that enables interaction with YouTube data through the Model Context Protocol, allowing users to search videos, retrieve detailed information about videos/channels, and fetch comments.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video captions and subtitles through a simple interface.Last updated -172372JavaScriptMIT License
- -securityFlicense-qualityA server for downloading, processing, and managing YouTube content with features like video quality selection, format conversion, and metadata extraction.Last updated -JavaScript
- -security-license-qualityA Model Context Protocol server that enables access to YouTube video content through transcripts, translations, summaries, and subtitle generation in various languages.Last updated -PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables retrieval of transcripts from YouTube videos. This server provides direct access to video transcripts and subtitles through a simple interface, making it ideal for content analysis and processing.Last updated -125810TypeScriptMIT License