An open API service indexing awesome lists of open source software.

https://github.com/fabioc-aloha/youtube-mcp-server

๐ŸŽฌ Comprehensive YouTube MCP Server with 31 tools, AI intelligence layer, learning path generator, content repurposing, and watch history analysis
https://github.com/fabioc-aloha/youtube-mcp-server

ai ai-agents ai-tools content-creation flashcards github-copilot knowledge-extraction learning llm-tools mcp model-context-protocol quiz-generator typescript video-analysis youtube youtube-api

Last synced: 19 days ago
JSON representation

๐ŸŽฌ Comprehensive YouTube MCP Server with 31 tools, AI intelligence layer, learning path generator, content repurposing, and watch history analysis

Awesome Lists containing this project

README

          

![YouTube MCP Tools](https://raw.githubusercontent.com/fabioc-aloha/youtube-mcp-server/main/assets/banner.svg)

**Think โ€ข Build โ€ข Deploy** โ€” *Transform YouTube into a knowledge engine for AI agents*

---

An intelligent Model Context Protocol (MCP) server that turns AI assistants into YouTube research powerhouses. Go beyond simple video searchesโ€”synthesize knowledge across multiple videos, extract structured concepts, and conduct deep research with AI-native tools.

[![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-0078d4?style=flat-square)](https://modelcontextprotocol.io)
[![npm version](https://img.shields.io/npm/v/youtube-mcp-tools?style=flat-square&color=cb3837)](https://www.npmjs.com/package/youtube-mcp-tools)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.7-005a9e?style=flat-square&logo=typescript)](https://www.typescriptlang.org/)
[![Node.js](https://img.shields.io/badge/Node.js-20+-10b981?style=flat-square&logo=node.js)](https://nodejs.org/)
[![License](https://img.shields.io/badge/License-MIT-00bcf2?style=flat-square)](LICENSE)
![Production Ready](https://img.shields.io/badge/Production-Ready-10b981?style=flat-square)

---

## โœจ What Makes This Different

### vs Other YouTube MCP Servers

| Feature | anaisbetts | kimtaeyoon83 | ZubeidHendricks | yutu (Go) | **YouTube MCP Tools** |
| ---------------------------------- | ---------- | ------------ | --------------- | --------- | --------------------------- |
| Transcripts | โœ… | โœ… | โœ… | โœ… | โœ… Multi-strategy fallback |
| Video metadata | โŒ | โŒ | โœ… | โœ… | โœ… Full |
| Channel analytics | โŒ | โŒ | โœ… | โœ… | โœ… Full |
| Playlist support | โŒ | โŒ | โœ… | โœ… | โœ… Full |
| **Semantic chunking** | โŒ | โŒ | โŒ | โŒ | โœ…**Unique** |
| **Concept extraction** | โŒ | โŒ | โŒ | โŒ | โœ…**Unique** |
| **Multi-video synthesis** | โŒ | โŒ | โŒ | โŒ | โœ…**Unique** |
| **Research workflows** | โŒ | โŒ | โŒ | โŒ | โœ…**Unique** |
| **Learning path generation** | โŒ | โŒ | โŒ | โŒ | โœ…**Unique** |
| **Flashcard generation** | โŒ | โŒ | โŒ | โŒ | โœ…**Unique** |
| **Content repurposing** | โŒ | โŒ | โŒ | โŒ | โœ…**Unique** |
| Smart caching | โŒ | โŒ | โš ๏ธ Basic | โŒ | โœ… Full LRU + TTL |
| Rate limiting | โŒ | โŒ | โŒ | โŒ | โœ… Quota-aware |

> **The first YouTube MCP with an intelligence layer** โ€” we don't just fetch data, we understand it.

### vs Raw YouTube API

| Traditional YouTube API | YouTube MCP Tools |
| ------------------------- | -------------------------------------------- |
| Returns raw video data | Returns**structured knowledge** |
| Single video queries | **Multi-video synthesis** |
| Text search only | **Semantic concept extraction** |
| Manual transcript parsing | **AI-ready chunked content** |
| No cross-video analysis | **Research synthesis with citations** |
| No rate limiting | **Smart quota management** |
| Raw errors | **Graceful error handling & recovery** |

---

## ๐Ÿš€ Quick Start

### Installation

```bash
# Install globally
npm install -g youtube-mcp-tools

# Or use directly with npx (no install needed)
npx youtube-mcp-tools
```

### VS Code / GitHub Copilot Setup

Add to your VS Code `settings.json`:

```json
{
"mcp": {
"servers": {
"youtube": {
"command": "npx",
"args": ["-y", "youtube-mcp-tools"],
"env": {
"YOUTUBE_API_KEY": "your_api_key"
}
}
}
}
}
```

### Claude Desktop Setup

Add to `claude_desktop_config.json`:

```json
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "youtube-mcp-tools"],
"env": {
"YOUTUBE_API_KEY": "your_api_key"
}
}
}
}
```

---

## ๐Ÿง  Intelligence Layer

The magic happens in the intelligence layerโ€”purpose-built for AI agents:

### ๐Ÿ”ฌ Research Synthesis

> "Compare how these 5 videos explain React Server Components"
> โ†’ Returns consensus points, controversies, unique insights, and citations

### ๐Ÿ“š Concept Extraction

> "What concepts does this tutorial cover?"
> โ†’ Returns structured topics with difficulty levels, prerequisites, and relationships

### โœ‚๏ธ Smart Chunking

> "Prepare this 2-hour lecture for analysis"
> โ†’ Returns AI-optimized chunks respecting sentence boundaries and context

---

## ๐Ÿ› ๏ธ Tools Overview

**40 powerful tools + 3 MCP resources** organized by capability:

| Category | Count | Highlights |
| -------------------------------- | ----- | ---------------------------------------------------------------- |
| ๐Ÿ”**Search & Discovery** | 4 | Search, date filtering, related videos, trending |
| ๐Ÿ“บ**Channel Intelligence** | 5 | Stats, analytics, popular videos, playlists |
| ๐ŸŽฌ**Video Analysis** | 6 | Details, comparison, comments, batch operations |
| ๐Ÿ“**Transcripts** | 4 | Full captions, search, chunking, retrieval |
| ๐Ÿง **AI Intelligence** | 5 | Deep analysis, concept extraction, research synthesis |
| ๐Ÿ“š**Learning Tools** | 5 | Flashcards, quizzes, learning paths, study guides, watch history |
| ๐ŸŽจ**Creator Tools** | 2 | Content repurposing, gap analysis |
| ๐Ÿ‘ค**User Preferences** | 1 | Personalized recommendations, trusted/excluded channels |
| ๐Ÿ”ฎ**Semantic Search** | 5 | Vector embeddings, similarity search, clustering |
| ๐Ÿ”ด**Live & Trending** | 3 | Live streams, trending by region, categories |
| ๐Ÿ“ฆ**MCP Resources** | 3 | Cache stats, quota status, preferences (zero cost) |

[๐Ÿ“– **Full Tool Reference** โ†’](TOOLS.md) | [๐Ÿ“š **Examples** โ†’](EXAMPLES.md) | [๐ŸŽฌ **Demo Guide** โ†’](DEMO.md)

---

## ๐Ÿ›ก๏ธ Production Ready

Built for reliability in production environments:

| Feature | Description |
| --------------------------- | --------------------------------------------------------------- |
| **Rate Limiting** | Smart quota management tracks API usage and prevents exhaustion |
| **Graceful Shutdown** | Clean termination with SIGINT/SIGTERM signal handling |
| **Input Validation** | Zod-based schema validation for all tool inputs |
| **Config Validation** | Fail-fast startup with clear error messages for missing config |
| **Secure Logging** | Automatic redaction of API keys and sensitive data |
| **Error Recovery** | Wrapped API calls with typed error handling |
| **LRU Caching** | Intelligent caching for transcripts and analysis results |
| **ESLint** | TypeScript-aware linting for code quality |

---

## ๐ŸŽฏ Use Cases

### ๐Ÿ“š Research & Learning

- Synthesize knowledge from multiple educational videos
- Generate flashcards and quizzes from any tutorial
- Extract structured learning paths with prerequisites
- Compare teaching approaches across instructors

### ๐Ÿ“Š Content Analysis

- Analyze competitor content strategies
- Track trending topics in your niche
- Identify content gaps and opportunities
- Benchmark channel performance

### ๐ŸŽจ Content Creation

- Repurpose videos into blog posts, tweets, newsletters
- Generate podcast show notes from interviews
- Create short-form scripts from long content
- Plan content strategy with gap analysis

### ๐Ÿค– AI Agent Workflows

- Build YouTube-powered research assistants
- Create automated content summarization pipelines
- Develop knowledge base builders from video content

---

## ๐Ÿ—๏ธ Architecture

```text
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ MCP Protocol โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Tools (40) โ”‚ Prompts (5) โ”‚ Resources (3) โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Intelligence Layer โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ Chunker โ”‚ โ”‚ Analyzer โ”‚ โ”‚ Synthesis โ”‚ โ”‚
โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚
โ”‚ โ”‚ Quiz โ”‚ โ”‚ Learning โ”‚ โ”‚ Repurpose โ”‚ โ”‚
โ”‚ โ”‚Generatorโ”‚ โ”‚ Path โ”‚ โ”‚ Content โ”‚ โ”‚
โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚
โ”‚ โ”‚ Watch โ”‚ โ”‚ Content โ”‚ โ”‚Flashcards โ”‚ โ”‚
โ”‚ โ”‚ History โ”‚ โ”‚ Gaps โ”‚ โ”‚ โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Semantic Search Layer โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚Embeddingโ”‚ โ”‚ Vector โ”‚ โ”‚ Clusteringโ”‚ โ”‚
โ”‚ โ”‚ Service โ”‚ โ”‚ Store โ”‚ โ”‚ (k-means)โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Production Infrastructure โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ Rate โ”‚ โ”‚ Graceful โ”‚ โ”‚ Input โ”‚ โ”‚
โ”‚ โ”‚ Limiter โ”‚ โ”‚ Shutdown โ”‚ โ”‚ Validator โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Cache Layer (LRU + Vectors) โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ YouTube Data API v3 + Transcripts โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

---

## ๐Ÿ“ˆ Roadmap

- [X] **Phase 1**: Core YouTube API integration (18 tools)
- [X] **Phase 2**: Intelligence layer (analysis, synthesis)
- [X] **Phase 3**: Learning tools (flashcards, quizzes, learning paths)
- [X] **Phase 4**: Creator tools (content gaps, repurposing)
- [X] **Phase 5**: Personal insights (watch history analysis)
- [X] **Phase 6**: Semantic search & embeddings
- [ ] **Phase 7**: Knowledge graph & entity extraction
- [ ] **Phase 8**: Real-time streaming analysis

[๐Ÿ“‹ Full Project Plan โ†’](PROJECT-PLAN.md) | [๐Ÿ”ฎ Vision โ†’](VISION.md)

---

## ๐Ÿ”ง Development

```bash
# Development mode with hot reload
npm run dev

# Run tests
npm test

# Build for production
npm run build
```

---

## ๐Ÿ“Š API Quota Guide

YouTube Data API quota: **10,000 units/day**

| Operation | Cost | Notes |
| --------------------- | ----------------- | ---------------------------------- |
| Search | 100 units | Use date ranges to narrow results |
| Video details | 1 unit | Batch up to 50 with `video_list` |
| Channel info | 1 unit | |
| Comments | 1 unit | |
| **Transcripts** | **0 units** | Free! Use liberally |

**๐Ÿ’ก Pro Tip**: Transcripts are quota-free. Use `youtube_transcript` and `youtube_transcript_search` for deep content analysis without burning quota.

---

## ๐Ÿค Contributing

Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

---

## ๐Ÿ“„ License

MIT ยฉ 2026 Fabio Caversan

---


CorreaX



Built with ๐Ÿง  by Alex โ€ข Transforming how AI agents understand video content



ยฉ 2026 Fabio Caversan โ€ข Think. Build. Deploy.