Channel Brains
Local MCP server that indexes public YouTube captions into a searchable SQLite FTS5 database, enabling timestamped search and transcript retrieval without an API key.
README
Channel Brains
Channel Brains is a local, stdio MCP server that indexes publicly available YouTube captions into a searchable SQLite FTS5 database. It runs on your computer, needs no API key, and preserves timestamped links back to the original videos.
It is deliberately small and local:
- No hosted service, Docker, browser dashboard, embeddings, or LLM runtime
- No YouTube API key, database server, or cloud account
- One local SQLite database per user, protected by a cross-process ingestion lock
- One channel ingestion job at a time, with resumable per-video progress
- Search results cite the original video and timestamp
Install
Requires uv.
After the public v0.1.0 release, run it directly from GitHub:
uvx --from "git+https://github.com/Pu11en/channel-brains@v0.1.0" channel-brains-mcp
The release is published from Pu11en/channel-brains.
For development:
uv sync --extra dev
uv run channel-brains-mcp
The server communicates only through standard input and output. Do not run it as an HTTP service.
First workflow
- Add the server to an MCP client using one of the configurations below.
- Call
create_brainwith a supported YouTube channel URL, such ashttps://www.youtube.com/@OpenAI. - Poll
get_brain_statusuntil the brain isready,paused, orfailed. - Use
search_brainto retrieve timestamped caption matches.
The initial ingestion scans the complete channel listing so it can select up to 50 videos by view count. Caption availability and YouTube rate limits determine how much can be indexed.
MCP tools
Channel Brains exposes exactly these six tools:
| Tool | Purpose |
|---|---|
create_brain |
Validate a channel URL, persist a brain, and start local ingestion. |
get_brain_status |
Read progress, counts, selection method, and errors without network access. |
list_brain_videos |
Page through indexed, skipped, pending, and failed video records. |
search_brain |
Search local FTS5 caption chunks and return timestamped YouTube citations. |
get_video_transcript |
Page through stored caption chunks for one indexed video. |
delete_brain |
Remove a completed brain and all its local records. Active ingestion is refused. |
Local data and privacy
By default, Channel Brains stores its SQLite database and lock file in the platform’s user-data directory:
- Windows:
%LOCALAPPDATA%\channel-brains - macOS:
~/Library/Application Support/channel-brains - Linux:
~/.local/share/channel-brains
Set CHANNEL_BRAINS_HOME before launching the MCP server to use another location:
CHANNEL_BRAINS_HOME=/path/to/channel-brains-data uvx --from "git+https://github.com/Pu11en/channel-brains@v0.1.0" channel-brains-mcp
Captions and search indexes stay on the local machine. The only network requests are public YouTube requests made by yt-dlp and caption URL retrieval during ingestion.
MCP client configuration
All examples use the published Pu11en/channel-brains release command.
Hermes Agent
Add this entry under mcp_servers in your Hermes configuration, then restart Hermes:
mcp_servers:
channel_brains:
command: uvx
args:
- --from
- git+https://github.com/Pu11en/channel-brains@v0.1.0
- channel-brains-mcp
timeout: 120
connect_timeout: 60
Hermes discovers the six tools at startup and registers them with an mcp_channel_brains_ prefix.
Claude Code
Register it at user scope:
claude mcp add -s user channel-brains -- \
uvx --from "git+https://github.com/Pu11en/channel-brains@v0.1.0" channel-brains-mcp
Confirm it is available:
claude mcp list
Codex CLI
Add this to ~/.codex/config.toml:
[mcp_servers.channel-brains]
command = "uvx"
args = ["--from", "git+https://github.com/Pu11en/channel-brains@v0.1.0", "channel-brains-mcp"]
Restart Codex after saving the file.
OpenCode
Add a local MCP server entry to your OpenCode configuration:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"channel-brains": {
"type": "local",
"command": [
"uvx",
"--from",
"git+https://github.com/Pu11en/channel-brains@v0.1.0",
"channel-brains-mcp"
],
"enabled": true
}
}
}
Restart OpenCode to load the server.
Development and verification
uv sync --extra dev --locked
uv run ruff check .
uv run pytest
uv build
The test suite is offline except for the deliberately separate manual live YouTube smoke test.
Limitations
- Public YouTube captions can be unavailable, expired, restricted, or rate-limited.
- Search is lexical SQLite FTS5 search, not semantic search or an answer-generation system.
- The server indexes captions only. It does not download videos, reuse video footage, or create a knowledge graph.
- A channel can contain many videos. The first local ingestion may take time.
License
MIT. See LICENSE.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。