YouTube Video Summarizer MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
An MCP (Model Context Protocol) server that enables AI assistants to analyze and summarize YouTube videos by extracting captions, descriptions, and metadata.
Features
- Extract video captions/subtitles in multiple languages
- Retrieve comprehensive video metadata (title, description, duration)
- Provide structured data to AI assistants for comprehensive video summarization
- Works with any MCP-compatible client through MCP integration
- Support for multiple YouTube URL formats
- Language-specific caption extraction
Integrating with MCP Clients
To add the MCP server to your MCP client, you can use either method:
Option 1: Using npx (No Installation Required)
Add the following to your MCP client configuration file:
The server automatically filters out any npm/npx output to ensure MCP protocol compliance.
Option 2: Global Installation (Recommended for Production)
1. Install the package globally:
2. Add the following to your MCP client configuration file:
Available Tools
When integrated with an MCP client, the following commands become available:
- **get-video-info-for-summary-from-url**: Extract video information and captions from a YouTube URL
- **get-video-captions**: Get captions/subtitles for a specific video
- **get-video-metadata**: Retrieve comprehensive video metadata
Usage Examples
Once integrated with your MCP client, you can use natural language to request video summaries:
Installation
Development
How It Works
1. **URL Parsing**: Extracts video IDs from various YouTube URL formats
2. **Caption Extraction**: Uses youtube-caption-extractor to get subtitles
3. **Metadata Retrieval**: Fetches video title, description, and other details
4. **MCP Integration**: The Model Context Protocol (MCP) to communicate with AI assistants
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.