Provides AI-enhanced video processing features such as content analysis, learning path creation, knowledge graph generation, and transcript processing using OpenAI's language models
Offers optional caching functionality to reduce API costs and improve performance by storing frequently accessed YouTube data and AI analysis results
Provides comprehensive YouTube integration with tools for searching videos, fetching video details and transcripts, analyzing trending content, searching channels, and AI-powered features like content analysis, learning path generation, and knowledge graph creation
YouTube Knowledge MCP
Production-ready Model Context Protocol (MCP) server that turns YouTube into a queryable knowledge source. Search, fetch details, analyze transcripts/comments, and power AI workflows with optional LLMs. Built for Claude Desktop and other MCP clients.
Why this is special
- Fast + quota-aware YouTube API access with caching
- Batteries-included tools for search, details, trending, channels
- Optional AI superpowers (OpenAI/Anthropic) for summaries, topics, chapters, learning paths, comment intents, and knowledge graphs
- Zero noise: minimal config, clear logs, safe defaults
Requirements
- Node.js 18+
- YouTube Data API v3 key
- Optional: OpenAI and/or Anthropic API keys for AI tools
Install
Configure environment
Create .env
(or set variables in your MCP client config). You can start from the example:
Then set values in .env
:
An env.example
with placeholders is provided. Do not commit your .env
.
Build and run
Connect to Claude Desktop (example)
Add to your Claude Desktop configuration with absolute paths:
Restart Claude Desktop after editing the config.
Available tools
youtube_search
— Search videos with filtersget_video_details
— Video metadata, transcript (best-effort), commentsget_trending_videos
— Most popular by region/categorysearch_channels
— Channel search with optional statsanalyze_video_content
— AI topics/sentiment/questions/summary/keywordsgenerate_learning_path
— AI learning path for a topicanalyze_comment_intents
— Classify viewer intentssimplify_video_transcript
— ELI5-style simplificationgenerate_video_chapters
— AI chapters with timestampsgenerate_knowledge_graph
— Cross-video concept graph
Note: AI tools are available only if an AI provider key is configured.
Quotas and safety
- Enforces daily quota (default 8000 units) and cost-aware AI usage
- Logs to stderr (does not break MCP stdio)
- Caching reduces API and token spend; optional Redis supported
Troubleshooting
- Missing key: ensure
YOUTUBE_API_KEY
is set - Quota exceeded: lower usage, enable caching, or raise
MAX_DAILY_QUOTA
- Claude cannot connect: verify absolute path to
build/index.js
and restart
License
MIT By Efi Kuta
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Transforms YouTube into a queryable knowledge source with search, video details, transcript analysis, and AI-powered tools for summaries, learning paths, and knowledge graphs. Features quota-aware API access with caching and optional OpenAI/Anthropic integration for advanced content analysis.
Related MCP Servers
- AsecurityFlicenseAqualityThis server allows AI language models to interact with YouTube content through a standardized interface, providing features such as video and channel information retrieval, transcript management, and playlist operations.Last updated -7228301TypeScript
- AsecurityAlicenseAqualityBridges YouTube API and AI assistants, enabling video analysis by downloading and processing closed captions to create summaries of YouTube videos.Last updated -112PythonMIT License
- -securityFlicense-qualityEnables AI language models to interact with YouTube content through a standardized interface, providing tools for retrieving video information, transcripts, channel analytics, and trend analysis.Last updated -1,93645JavaScript
- AsecurityFlicenseAqualityEnables interaction with YouTube videos by extracting metadata, captions in multiple languages, and converting content to markdown with various templates.Last updated -132TypeScript