This MCP server enables AI assistants to access and analyze YouTube video content by retrieving subtitles and transcripts. It uses yt-dlp to download subtitles from YouTube videos and makes them available through the Model Context Protocol. With this integration, you can ask your AI assistant to summarize, analyze, or extract information from YouTube videos by simply providing the video URL. The server handles the technical aspects of retrieving the video's text content, allowing the AI to work with the video's information directly.
The YouTube MCP server allows AI assistants to access and analyze the content of YouTube videos by retrieving their subtitles or transcripts. This enables you to ask your AI assistant questions about YouTube videos or request summaries without having to manually transcribe the content.
Before installing the YouTube MCP server, you need to have:
yt-dlp
installed on your system (this is the tool that extracts subtitles from YouTube)
brew install yt-dlp
winget install yt-dlp
Node.js or Bun runtime environment
The easiest way to install the YouTube MCP server is using the mcp-installer:
Install the mcp-installer if you haven't already:
npm install -g @anaisbetts/mcp-installer
Install the YouTube MCP server:
mcp-installer install @anaisbetts/mcp-youtube
Alternatively, you can clone the repository and install it manually:
Clone the repository:
git clone https://github.com/anaisbetts/mcp-youtube.git
Navigate to the directory and install dependencies:
cd mcp-youtube
npm install
Start the server:
npm start
Once the server is installed and running, you can use it with your AI assistant by asking questions about YouTube videos. Simply include the YouTube video URL in your query.
Example queries:
The MCP server will automatically:
If you encounter issues:
yt-dlp
is correctly installed and accessible from your command line