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 分