YouTube Insights MCP Server
An MCP server that extracts transcripts, metadata, and summaries from YouTube videos across various URL formats including Shorts and standard links. It provides comprehensive video data and insights for analysis within MCP-compatible environments.
README
YouTube Insights MCP Server
An MCP (Model Context Protocol) server that extracts valuable insights from YouTube videos including transcripts, metadata, and summaries.
Features
- Extract Transcripts: Get full video transcripts in multiple languages
- Video Metadata: Retrieve title, author, thumbnail, and other metadata
- Comprehensive Insights: Combined transcript, metadata, and auto-generated summaries
- Multiple URL Formats: Supports youtube.com, youtu.be, shorts, and direct video IDs
Installation
# Install dependencies
uv sync
Usage
Running the Server
python main.py
Available Tools
1. get_youtube_transcript
Extracts the full transcript from a YouTube video.
Parameters:
url(required): YouTube video URL or video IDlanguages(optional): Array of preferred language codes (default: ["en"])
Example:
{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"languages": ["en", "es"]
}
2. get_youtube_metadata
Gets metadata for a YouTube video.
Parameters:
url(required): YouTube video URL or video ID
Example:
{
"url": "https://youtu.be/dQw4w9WgXcQ"
}
3. get_youtube_insights
Gets comprehensive insights including transcript, metadata, and summary.
Parameters:
url(required): YouTube video URL or video IDlanguages(optional): Array of preferred language codes (default: ["en"])summary_sentences(optional): Number of sentences for summary (default: 5)
Example:
{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"languages": ["en"],
"summary_sentences": 5
}
Supported URL Formats
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://www.youtube.com/embed/VIDEO_IDhttps://www.youtube.com/shorts/VIDEO_ID- Direct video ID:
VIDEO_ID
Configuration for Claude Desktop
Add to your Claude Desktop config file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"youtube-insights": {
"command": "uv",
"args": [
"--directory",
"C:\\Users\\TejasBorate\\Desktop\\Youtube-Video-Insights\\youtube_insights_mcp",
"run",
"python",
"main.py"
]
}
}
}
Requirements
- Python 3.10+
- mcp
- youtube-transcript-api
- requests
Error Handling
The server handles various error cases:
- Transcripts disabled for video
- No transcript available
- Video unavailable
- Invalid URL format
- Network errors
All errors are returned in a structured JSON format with descriptive messages.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.