yt-knowledge
Downloads and indexes transcripts from YouTube channels, enabling semantic search across videos with timestamped YouTube links and transcript excerpts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yt-knowledgesearch my indexed YouTube transcripts for risk management"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
yt-knowledge-mcp
Turn YouTube channels into a searchable knowledge base for AI assistants.
ytk downloads the transcripts of a channel (YouTube subtitles first, Whisper as fallback), indexes them for semantic search and exposes them through an MCP server, so Claude Desktop (or any MCP client) can search them and quote the exact fragment with a timestamped link.
Features
Any channel: register channels by URL and keep them in sync.
Subtitles first, Whisper as fallback: cheap when captions exist, complete when they do not.
Semantic search with ChromaDB and
bge-m3(multilingual), filterable by channel and date.Cited answers: every fragment carries
video_id, time range and ayoutube.com/watch?v=...&t=...slink.MCP server with three tools:
list_channels,search_transcripts,get_transcript_excerpt.Optional
ytk askto answer a question with Claude, citing fragments.Light core: the domain, use cases and CLI have no third-party dependencies. Heavy libraries live behind optional extras and are imported lazily.
Related MCP server: web-summaries-mcp
Install
python -m venv .venv && source .venv/bin/activate
pip install -e ".[youtube,search,mcp]" # subtitles + search + MCP server
# optional extras: whisper, cuda, llm, all, devQuick start
ytk add https://www.youtube.com/@some-channel
ytk update # sync transcripts + build the index
ytk search "risk management" # semantic search from the terminalytk update --latest 20 processes only the most recent videos. Run ytk --help for every command: add, remove, channels, sync, index, update, search, ask, excerpt, serve.
Use it from Claude Desktop
Add the server to claude_desktop_config.json:
{
"mcpServers": {
"yt-knowledge": {
"command": "/path/to/yt-knowledge-mcp/.venv/bin/python",
"args": ["-m", "yt_knowledge", "serve"],
"env": { "YTK_WORKSPACE": "/path/to/yt-knowledge-mcp/workspace" }
}
}
}Configuration
All settings are optional environment variables. The data directory can also be set with --workspace.
Variable | Purpose |
| Data directory (default |
| Preferred subtitle languages |
| Whisper fallback |
| Embedding model for search |
| Browser to read cookies from, if YouTube asks for them |
| Claude model used by |
Your data stays yours
workspace/ (transcripts, vector index, channel list) is git-ignored. See docs/sharing.md for how to share a knowledge base. Respect YouTube's terms of service and the copyright of the channels you archive.
Development
pip install -e ".[dev,mcp]"
pytest -q && ruff check . && mypyThe architecture is described in docs/architecture.md.
License
MIT, see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Transcribe YouTube via Whisper. Summaries, chapters, semantic-search across your corpus.
YouTube transcripts, search, channel browsing, and playlists for AI agents via MCP.
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents.
YouTube transcripts, search, and channel and playlist listings for any AI app. Hosted.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables users to extract, search, and analyze YouTube video transcripts directly within MCP-compatible clients. It supports advanced features like time-chunked summaries, keyword searching with surrounding context, and batch processing for multiple videos.4MIT
- FlicenseNot gradedqualityDmaintenanceA Streamable HTTP MCP server that fetches YouTube transcripts and lets an LLM semantically search within them.-
- AlicenseAqualityBmaintenanceLocal MCP server that indexes public YouTube captions into a searchable SQLite FTS5 database, enabling timestamped search and transcript retrieval without an API key.6MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for turning YouTube channels into a queryable local knowledge base. Enables BM25 search and extractive Q&A over captions with timestamped citations.MIT