YTPipe
Transforms YouTube videos into LLM-ready knowledge bases through transcription, semantic chunking, and vector embedding services. It provides 12 specialized MCP tools for video processing, semantic search, and SEO intelligence analysis.
README
<div align="center">

🎬 YTPipe - AI-Native YouTube Processing Pipeline
Transform YouTube videos into LLM-ready knowledge bases with a production-ready MCP backend.
Quick Start • Features • Documentation • MCP Tools
</div>
✨ Features
- 🤖 MCP Integration - 12 AI-callable tools for seamless agent integration
- 🎯 Smart Chunking - Semantic text chunking with timeline timestamps
- 🧠 Vector Embeddings - 384-dimensional embeddings for semantic search
- 🔍 Full-Text Search - Context-aware transcript search
- 📊 SEO Intelligence - AI-powered title, tag, and description optimization
- ⏱️ Timeline Analysis - Topic evolution and keyword density tracking
- 🏗️ Microservices - 11 independent, composable services
- 🔐 Type-Safe - Pydantic models throughout
- ⚡ Async-First - Non-blocking I/O operations
- 🗄️ Multi-Backend - ChromaDB, FAISS, Qdrant support
🚀 Quick Start
# Install
git clone https://github.com/leolech14/ytpipe.git
cd ytpipe
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Process a video
ytpipe "https://youtube.com/watch?v=dQw4w9WgXcQ"
Result: Metadata + Transcript + Semantic Chunks + Embeddings + Vector Storage
🎯 Usage Examples
MCP Server (AI Agents)
python -m ytpipe.mcp.server
Then from Claude Code:
"Process this video: https://youtube.com/watch?v=VIDEO_ID"
"Search video dQw4w9WgXcQ for 'machine learning'"
"Optimize SEO for video dQw4w9WgXcQ"
CLI (Humans)
# Basic
ytpipe "https://youtube.com/watch?v=VIDEO_ID"
# Advanced
ytpipe URL --backend faiss --whisper-model large --verbose
Python API (Developers)
from ytpipe.core.pipeline import Pipeline
pipeline = Pipeline(output_dir="./output")
result = await pipeline.process(url)
print(f"✅ {result.metadata.title}")
print(f" Chunks: {len(result.chunks)}")
print(f" Time: {result.processing_time:.1f}s")
📋 MCP Tools
Pipeline (4 tools)
ytpipe_process_video- Full pipelineytpipe_download- Download onlyytpipe_transcribe- Transcribe audioytpipe_embed- Generate embeddings
Query (4 tools)
ytpipe_search- Full-text searchytpipe_find_similar- Semantic searchytpipe_get_chunk- Get chunk by IDytpipe_get_metadata- Get video info
Analytics (4 tools)
ytpipe_seo_optimize- SEO recommendationsytpipe_quality_report- Quality metricsytpipe_topic_timeline- Topic evolutionytpipe_benchmark- Performance analysis
🏗️ Architecture
MCP Server (12 tools) → Pipeline Orchestrator → 11 Services → Pydantic Models
Services:
- Extractors (2): Download, Transcriber
- Processors (4): Chunker, Embedder, VectorStore, Docling
- Intelligence (4): Search, SEO, Timeline, Analyzer
- Exporters (1): Dashboard
8 Processing Phases:
- Download → 2. Transcription → 3. Chunking → 4. Embeddings →
- Export → 6. Dashboard → 7. Docling → 8. Vector Storage
📊 Performance
| Metric | Value |
|---|---|
| Processing Speed | 4-13x real-time |
| Memory Usage | <2GB peak |
| Chunk Quality | 85%+ high quality |
| Embedding Dimension | 384 |
🔧 Requirements
- Python 3.8+
- FFmpeg (for audio extraction)
- 4GB+ RAM recommended
- GPU optional (CUDA for acceleration)
📖 Documentation
🤝 Contributing
Contributions welcome! Please read CONTRIBUTING.md first.
📝 License
MIT License - see LICENSE for details.
🙏 Credits
Built with:
- FastMCP - MCP server framework
- OpenAI Whisper - Speech-to-text
- sentence-transformers - Text embeddings
- Model Context Protocol - AI tool standard
📧 Contact
Leonardo Lech
- Email: leonardo.lech@gmail.com
- GitHub: @leolech14
<div align="center">
⭐ Star this repo if you find it useful!
Transform YouTube → Knowledge Base in seconds
</div>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。