Tubemind Secure MCP
概览
作者提供的说明(英文原文)
Secure MCP server for YouTube intelligence — 18 tools, OAuth2, OWASP Top 10 controls.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 51/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 营销与社交媒体
- 你需要填写:YOUTUBE_CLIENT_ID, YOUTUBE_CLIENT_SECRET, TOKEN_ENCRYPTION_KEY
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
YOUTUBE_CLIENT_ID,YOUTUBE_CLIENT_SECRET,YOUTUBE_REDIRECT_URI,TOKEN_ENCRYPTION_KEY,RATE_LIMIT_PER_MINUTE,REQUEST_TIMEOUT_MS,AUDIT_LOG_PATH,NODE_ENV
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"tubemind-secure": {
"command": "npx",
"args": [
"-y",
"tubemind-secure-mcp"
],
"env": {
"YOUTUBE_CLIENT_ID": "your-value",
"YOUTUBE_CLIENT_SECRET": "your-value",
"YOUTUBE_REDIRECT_URI": "your-value",
"TOKEN_ENCRYPTION_KEY": "your-value",
"RATE_LIMIT_PER_MINUTE": "your-value",
"REQUEST_TIMEOUT_MS": "your-value",
"AUDIT_LOG_PATH": "your-value",
"NODE_ENV": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add tubemind-secure --env YOUTUBE_CLIENT_ID=your-value --env YOUTUBE_CLIENT_SECRET=your-value --env YOUTUBE_REDIRECT_URI=your-value --env TOKEN_ENCRYPTION_KEY=your-value --env RATE_LIMIT_PER_MINUTE=your-value --env REQUEST_TIMEOUT_MS=your-value --env AUDIT_LOG_PATH=your-value --env NODE_ENV=your-value -- npx -y tubemind-secure-mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"tubemind-secure": {
"command": "npx",
"args": [
"-y",
"tubemind-secure-mcp"
],
"env": {
"YOUTUBE_CLIENT_ID": "your-value",
"YOUTUBE_CLIENT_SECRET": "your-value",
"YOUTUBE_REDIRECT_URI": "your-value",
"TOKEN_ENCRYPTION_KEY": "your-value",
"RATE_LIMIT_PER_MINUTE": "your-value",
"REQUEST_TIMEOUT_MS": "your-value",
"AUDIT_LOG_PATH": "your-value",
"NODE_ENV": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"tubemind-secure": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tubemind-secure-mcp"
],
"env": {
"YOUTUBE_CLIENT_ID": "your-value",
"YOUTUBE_CLIENT_SECRET": "your-value",
"YOUTUBE_REDIRECT_URI": "your-value",
"TOKEN_ENCRYPTION_KEY": "your-value",
"RATE_LIMIT_PER_MINUTE": "your-value",
"REQUEST_TIMEOUT_MS": "your-value",
"AUDIT_LOG_PATH": "your-value",
"NODE_ENV": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- Google OAuth2 Client ID for YouTube Data API v3 + Analytics API
- Google OAuth2 Client Secret
YOUTUBE_REDIRECT_URIenvOAuth2 redirect URI (must match Google Cloud Console)- 64-char hex key for AES-256-GCM token encryption at rest. Generate with: openssl rand -hex 32
RATE_LIMIT_PER_MINUTEenvMax tool invocations per minuteREQUEST_TIMEOUT_MSenvHTTP request timeout (ms)AUDIT_LOG_PATHenvPath to the audit log fileNODE_ENVenvproduction | development
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 dewtech-technologies 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“营销与社交媒体”中的其他服务器比较i
- 星标数多于此分类中其他 3632 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3632 个服务器的 8% 更新
- 基础检查结果等于或优于此分类中其他 3632 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Tubemind Secure MCP 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:YOUTUBE_CLIENT_ID, YOUTUBE_CLIENT_SECRET, TOKEN_ENCRYPTION_KEY
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.1.3)于6个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Google Analytics MCP
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
BibiGPT YouTube Video Summarizer
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
tubemind-secure-mcp
YouTube intelligence, powered by Claude. Secure by design.
Model Context Protocol server with 18 tools for YouTube research, analytics, benchmarking and content strategy.
📦 18 tools · 🔐 OAuth2 + AES-256-GCM · 🛡️ OWASP Top 10 · 🤖 Claude Desktop ready
🎯 Why tubemind-secure-mcp?
Turn Claude into a YouTube growth strategist — without ever handing it your raw OAuth tokens.
- ⚡ Plug-and-play with Claude Desktop — drop one config block, get 18 production tools.
- 🔐 Secure by default — tokens encrypted at rest (AES-256-GCM), SSRF guard, rate limiting, audit log, Zod-validated inputs. OWASP Top 10 mapped end-to-end.
- 📊 Real data, not scraping — official YouTube Data API v3 + YouTube Analytics API. Brand Accounts supported.
- 🧠 Beyond raw API — built-in heuristics for CTR, retention, keyword difficulty, content gaps, hook angles and N-day content calendars.
- 🪶 Tiny footprint — 3 runtime deps (
@modelcontextprotocol/sdk,googleapis,zod). Node ≥ 20.
✨ Overview
tubemind-secure-mcp is a Model Context Protocol (MCP) server that gives Claude Desktop (and any MCP client) 18 production-grade tools for working with YouTube:
- 🔍 Search & SEO — trending topics, keyword stats, tag suggestions
- 📺 Video & Channel — list videos, read/update metadata, get tags
- 📊 Analytics — channel analytics (views, watch time, retention) via YouTube Analytics API
- 🏆 Benchmark — compare your channel against competitors
- 🧠 Heuristics — keyword difficulty, title patterns, content gaps, hook angles, CTR potential, retention signals, content calendar
- 🕵️ Competitor research — competitor video discovery
Built secure by design: OAuth2 (Brand Account ready), AES-256-GCM token encryption at rest, SSRF guard, rate limiting, audit logging, Zod input validation — mapped to OWASP Top 10.
📦 Installation
# Global install
npm install -g tubemind-secure-mcp
Or run on demand
npx tubemind-secure-mcp
Requires Node.js ≥ 20.
🔐 OAuth Setup (one-time)
YouTube APIs need an OAuth2 token. The package ships with an auth server that walks you through it.
1) Create OAuth credentials in Google Cloud
- Go to Google Cloud Console → APIs & Services → Credentials
- Enable YouTube Data API v3 and YouTube Analytics API
- Create OAuth 2.0 Client ID → Web application
- Authorized redirect URI:
http://localhost:4000/oauth/callback - Copy the Client ID and Client Secret
2) Configure environment
Copy .env.example to .env and fill in:
YOUTUBE_CLIENT_ID=your-client-id.apps.googleusercontent.com
YOUTUBE_CLIENT_SECRET=your-client-secret YOUTUBE_REDIRECT_URI=http://localhost:4000/oauth/callback
Generate with: openssl rand -hex 32
TOKEN_ENCRYPTION_KEY=your-64-char-hex-key
RATE_LIMIT_PER_MINUTE=60 REQUEST_TIMEOUT_MS=10000 AUDIT_LOG_PATH=./logs/audit.log NODE_ENV=production
3) Run the OAuth flow
pnpm auth
or: npx tsx --env-file=.env src/auth-server.ts
Open http://localhost:4000, sign in with the Google account that owns the channel (Brand Accounts supported), authorize, and the encrypted token is saved to ./tokens/youtube.token.json.
🤖 Use with Claude Desktop
Add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": { "tubemind": { "command": "npx", "args": ["-y", "tubemind-secure-mcp"], "env": { "YOUTUBE_CLIENT_ID": "your-client-id.apps.googleusercontent.com", "YOUTUBE_CLIENT_SECRET": "your-client-secret", "YOUTUBE_REDIRECT_URI": "http://localhost:4000/oauth/callback", "TOKEN_ENCRYPTION_KEY": "your-64-char-hex-key", "RATE_LIMIT_PER_MINUTE": "60", "REQUEST_TIMEOUT_MS": "10000", "AUDIT_LOG_PATH": "./logs/audit.log", "NODE_ENV": "production" } } } }
Restart Claude Desktop. The 18 tools will appear automatically.
🛠️ Tools
| Category | Tool | Description |
|---|---|---|
| Search | search_trending_topics | Discover trending topics by region/category |
get_keyword_stats | Search volume signals for keywords | |
suggest_tags | Tag recommendations from a seed | |
| Video | get_video_tags | Read tags from a video |
update_video_metadata | Update title/description/tags (write scope) | |
list_channel_videos | Paginate channel uploads | |
| Analytics | get_channel_analytics | Views, watch time, retention (Analytics API) |
score_best_publish_window | Best day/hour heatmap to publish | |
| Benchmark | benchmark_channel | Compare channel vs. peers |
| Heuristics | estimate_keyword_difficulty | Difficulty score 0–100 |
analyze_title_patterns | Common patterns in top videos | |
detect_content_gaps | Topics competitors cover that you don't | |
| Heuristics+ | estimate_ctr_potential | CTR estimate from title/thumbnail signals |
suggest_hook_angles | Hook angles for a topic | |
find_trending_keywords | Rising-momentum keywords | |
analyze_retention_signals | Retention-shaping factors | |
generate_content_calendar | N-day content plan | |
| Competitor | get_competitor_videos | Top videos from a competitor channel |
All inputs are validated with Zod. All errors return safe messages (stack traces only when NODE_ENV=development).
🔒 Security
tubemind-secure-mcp is built secure-by-default. See SECURITY.md for the full posture mapped to OWASP Top 10.
| Control | Implementation |
|---|---|
| A01 — Broken Access Control | OAuth2 scopes least-privilege, audit log per call |
| A02 — Cryptographic Failures | AES-256-GCM at rest for tokens, secrets via env only |
| A03 — Injection | Zod schemas on every tool input |
| A04 — Insecure Design | Rate limit, request timeout, SSRF guard (host whitelist) |
| A05 — Misconfiguration | .env.example template, no defaults that leak |
| A07 — AuthN Failures | OAuth2 PKCE-style flow, encrypted token storage |
| A08 — Software/Data Integrity | Pinned deps, pnpm audit in CI, dependabot |
| A09 — Logging Failures | Audit log of every tool call (timestamp, tool, success) |
| A10 — SSRF | Outbound calls restricted to googleapis.com family |
Found a vulnerability? Email wleandro.oliveira@gmail.com — 72h response.
🧰 Local development
pnpm install
pnpm dev # tsx watch on src/index.ts pnpm build # tsc → dist/ pnpm typecheck pnpm test pnpm audit:security
📜 License
MIT © Wanderson Leandro de Oliveira / Dewtech