
YouTube Knowledge MCP
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.
README
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
npm install
Configure environment
Create .env
(or set variables in your MCP client config). You can start from the example:
cp env.example .env
Then set values in .env
:
# Required
YOUTUBE_API_KEY=your_youtube_api_key
# Optional AI providers (enables AI tools: analyze_video_content, generate_learning_path, analyze_comment_intents, simplify_video_transcript, generate_video_chapters, generate_knowledge_graph)
OPENAI_API_KEY=your_openai_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key
# Optional tuning
LOG_LEVEL=info
MAX_DAILY_QUOTA=8000
REDIS_URL= # e.g. redis://localhost:6379
REDIS_HOST=
REDIS_PORT=
REDIS_PASSWORD=
An env.example
with placeholders is provided. Do not commit your .env
.
Build and run
# Development (watch)
npm run dev
# Production
npm run build
npm start
Connect to Claude Desktop (example)
Add to your Claude Desktop configuration with absolute paths:
{
"mcpServers": {
"youtube-knowledge": {
"command": "node",
"args": ["/absolute/path/to/youtube-knowledge-mcp/build/index.js"],
"env": {
"YOUTUBE_API_KEY": "your_youtube_api_key",
"OPENAI_API_KEY": "optional_openai",
"ANTHROPIC_API_KEY": "optional_anthropic",
"LOG_LEVEL": "info"
}
}
}
}
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
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.
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.
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.

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.