MCP ExplorerExplorer

Video Mcp

@yug-spaceon a year ago
2 MIT
FreeCommunity
AI Systems
A server that extracts transcripts from YouTube videos.

Overview

What is Video Mcp

video_mcp is a simple server that extracts and returns transcripts from YouTube videos.

Use cases

Use cases include generating transcripts for educational videos, creating subtitles for content creators, and providing accessibility options for hearing-impaired users.

How to use

To use video_mcp, install the required dependencies with ‘pip install -r requirements.txt’, then run the server using ‘python main.py’. The server will start on port 5000. You can get transcripts by sending a POST request to the ‘/transcript’ endpoint with a JSON body containing the YouTube video URL.

Key features

Key features include the ability to extract full transcripts from YouTube videos, a health check endpoint to monitor server status, and error handling for invalid URLs or transcript retrieval failures.

Where to use

video_mcp can be used in various fields such as education, content creation, and accessibility services, where video transcripts are needed for analysis or reference.

Content

YouTube Transcript MCP Server

This is a Model Control Protocol (MCP) server that provides a tool to fetch transcripts from YouTube videos.

Features

  • Extracts video ID from any valid YouTube URL
  • Returns plain-text transcripts (without timestamps)
  • Uses the youtube-transcript-api library

Installation

# Install dependencies
pip install youtube-transcript-api "mcp[fastmcp]"

Usage

Run the server:

python main.py

The server exposes a single tool:

  • get_transcript: Takes a YouTube URL and returns the video ID and transcript

Example

Using the MCP client:

from mcp.client import Client

client = Client(transport="stdio")
response = client.call("get_transcript", {"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"})
print(f"Video ID: {response['video_id']}")
print(f"Transcript: {response['transcript'][:100]}...")  # First 100 chars

Error Handling

The server handles these error cases:

  • Invalid YouTube URLs
  • Videos without available transcripts

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers