Tubemind Secure Mcp

io.github.dewtech-technologies由 GitHub 账号 dewtech-technologies 发布v0.1.3更新于 Oct 24, 2026

Secure MCP server for YouTube intelligence — 18 tools, OAuth2, OWASP Top 10 controls.

概览

AI 生成的概览

本地 MCP 服务器,通过官方 Google API 为助手提供 18 个 YouTube 研究、频道分析、竞品对标与内容策略工具。

可以做什么
搜索与 SEO:查找热门话题、关键词数据和基于种子词的标签建议。视频与频道:分页列出频道上传内容、读取视频标签,并更新标题、描述或标签。分析:读取频道观看量、观看时长和留存率,并评估最佳发布日与时段。对标与竞品:将频道与同类频道比较,并获取竞品频道的热门视频。启发式分析:估算关键词难度和点击率潜力、分析标题模式、发现内容缺口、建议开场角度、查找上升关键词、分析留存信号并生成 N 天内容日历。
适用场景
适合让助手规划 YouTube 内容、分析自有频道表现,或基于官方 YouTube API 数据(而非抓取)研究竞品时使用。
运行要求
本地 Node.js 20 或更高版本的进程,通过 npm 或 npx 安装,仅限桌面端。需要一个启用 YouTube Data API v3 和 YouTube Analytics API 的 Google Cloud OAuth 2.0 客户端,以及 YOUTUBE_CLIENT_ID、YOUTUBE_CLIENT_SECRET、YOUTUBE_REDIRECT_URI 和 64 位十六进制 TOKEN_ENCRYPTION_KEY。需通过一次性浏览器 OAuth 流程登录频道所属的 Google 账号。可选设置包括速率限制、请求超时、审计日志路径和 NODE_ENV。
安装前请注意
需要 Google OAuth 凭据和令牌加密密钥,加密后的令牌保存在本地。update_video_metadata 工具会写入频道的标题、描述和标签,改动会直接生效。每次工具调用都会写入审计日志文件。OAuth 流程会在本机 4000 端口启动回调服务器。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Tubemind Secure Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

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.

[npm version] [downloads] [OWASP] [MIT License] [MCP SDK]

📦 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

bash
# Global installnpm install -g tubemind-secure-mcp
# Or run on demandnpx 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

  1. Go to Google Cloud Console → APIs & Services → Credentials
  2. Enable YouTube Data API v3 and YouTube Analytics API
  3. Create OAuth 2.0 Client ID → Web application
  4. Authorized redirect URI: http://localhost:4000/oauth/callback
  5. Copy the Client ID and Client Secret

2) Configure environment

Copy .env.example to .env and fill in:

bash
YOUTUBE_CLIENT_ID=your-client-id.apps.googleusercontent.comYOUTUBE_CLIENT_SECRET=your-client-secretYOUTUBE_REDIRECT_URI=http://localhost:4000/oauth/callback
# Generate with: openssl rand -hex 32TOKEN_ENCRYPTION_KEY=your-64-char-hex-key
RATE_LIMIT_PER_MINUTE=60REQUEST_TIMEOUT_MS=10000AUDIT_LOG_PATH=./logs/audit.logNODE_ENV=production

3) Run the OAuth flow

bash
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

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

CategoryToolDescription
Searchsearch_trending_topicsDiscover trending topics by region/category
get_keyword_statsSearch volume signals for keywords
suggest_tagsTag recommendations from a seed
Videoget_video_tagsRead tags from a video
update_video_metadataUpdate title/description/tags (write scope)
list_channel_videosPaginate channel uploads
Analyticsget_channel_analyticsViews, watch time, retention (Analytics API)
score_best_publish_windowBest day/hour heatmap to publish
Benchmarkbenchmark_channelCompare channel vs. peers
Heuristicsestimate_keyword_difficultyDifficulty score 0–100
analyze_title_patternsCommon patterns in top videos
detect_content_gapsTopics competitors cover that you don't
Heuristics+estimate_ctr_potentialCTR estimate from title/thumbnail signals
suggest_hook_anglesHook angles for a topic
find_trending_keywordsRising-momentum keywords
analyze_retention_signalsRetention-shaping factors
generate_content_calendarN-day content plan
Competitorget_competitor_videosTop 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.

ControlImplementation
A01 — Broken Access ControlOAuth2 scopes least-privilege, audit log per call
A02 — Cryptographic FailuresAES-256-GCM at rest for tokens, secrets via env only
A03 — InjectionZod schemas on every tool input
A04 — Insecure DesignRate limit, request timeout, SSRF guard (host whitelist)
A05 — Misconfiguration.env.example template, no defaults that leak
A07 — AuthN FailuresOAuth2 PKCE-style flow, encrypted token storage
A08 — Software/Data IntegrityPinned deps, pnpm audit in CI, dependabot
A09 — Logging FailuresAudit log of every tool call (timestamp, tool, success)
A10 — SSRFOutbound calls restricted to googleapis.com family

Found a vulnerability? Email [email protected] — 72h response.


🧰 Local development

bash
pnpm installpnpm dev          # tsx watch on src/index.tspnpm build        # tsc → dist/pnpm typecheckpnpm testpnpm audit:security

📜 License

MIT © Wanderson Leandro de Oliveira / Dewtech

来源:README.md,提交 24b63e5

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分