MCP ExplorerExplorer

Youtube Mcp

@RohitMidha23on 9 months ago
1 MIT
FreeCommunity
AI Systems
YouTube MCP Server for retrieving video subtitles and content analysis.

Overview

What is Youtube Mcp

youtube-mcp is a Model Context Protocol server designed to interact with YouTube videos, primarily for retrieving video subtitles. It enables Large Language Models (LLMs) to extract content from YouTube videos for analysis and processing.

Use cases

Use cases for youtube-mcp include summarizing YouTube videos, extracting key points from lectures, providing explanations for tutorials, and analyzing video content for research purposes.

How to use

To use youtube-mcp, first ensure you have Python 3.11 or later and yt-dlp installed. Start the server by running ‘uv run src/server.py’ or using Docker with ‘docker build -t youtube-mcp:latest .’ and ‘docker run --rm -i --name youtube-mcp youtube-mcp:latest’. Then, configure your mcp.json file to include the server details.

Key features

Key features of youtube-mcp include the ability to download and process subtitles from YouTube videos, support for multiple subtitle languages, and integration capabilities with other applications via the MCP protocol.

Where to use

youtube-mcp can be used in various fields such as education, content creation, and research, where analyzing video content and extracting information from YouTube is essential.

Content

YouTube MCP Server

A Model Context Protocol server that provides tools to interact with YouTube videos, primarily for retrieving video subtitles. This server enables LLMs to extract content from YouTube videos for analysis and processing.

Available Tools

  • watch_youtube_video - Downloads and processes subtitles for a YouTube video.
    • Required arguments:
      • url (string): The URL of the YouTube video to watch.
      • sub_lang (string): The language of the subtitles to download.

Installation

Prerequisites

This server requires:

  • Python 3.11 or later
  • yt-dlp (must be installed and available in your PATH)

Using uv

uv run src/server.py

Integration

  1. Start the server:
docker build -t youtube-mcp:latest .
docker run --rm -i --name youtube-mcp youtube-mcp:latest
  1. On cursor, add the following to your mcp.json file:
{
  "mcpServers": {
    "youtube-mcp": {
      "transport": "sse",
      "url": "http://localhost:8000/sse",
      "description": "A simple MCP server to watch YouTube videos and download subtitles"
    }
  }
}

Examples of Questions for Cursor

  1. “What does this YouTube video talk about?” (provide URL)
  2. “Can you summarize this YouTube video for me?” (provide URL)
  3. “Extract the key points from this YouTube lecture” (provide URL)
  4. “Watch this YouTube tutorial and explain the steps” (provide URL)

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers