Tubemind Secure Mcp

io.github.dewtech-technologiesPublished by GitHub account dewtech-technologiesv0.1.3Updated Oct 24, 2026

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

Overview

AI-generated overview

A local MCP server that gives an assistant 18 tools for YouTube research, channel analytics, competitor benchmarking and content strategy via official Google O

What you can do
Search and SEO: find trending topics, keyword stats and tag suggestions for a seed term. Video and channel: list channel uploads, read video tags, and update title, description or tags. Analytics: read channel views, watch time and retention, and score the best publish day and hour. Benchmark and competitor: compare a channel against peers and pull top videos from competitor channels. Heuristics: estimate keyword difficulty and CTR potential, analyze title patterns, detect content gaps, suggest hook angles, find rising keywords, analyze retention signals and generate an N-day content calendar.
When to use it
Use it when you want an assistant to plan YouTube content, analyze your own channel's performance, or research competitors using official YouTube API data rather than scraping.
Requirements
Local Node.js 20 or newer process, installed via npm or npx, on desktop only. A Google Cloud OAuth 2.0 client with YouTube Data API v3 and YouTube Analytics API enabled, plus YOUTUBE_CLIENT_ID, YOUTUBE_CLIENT_SECRET, YOUTUBE_REDIRECT_URI and a 64-character hex TOKEN_ENCRYPTION_KEY. A one-time browser OAuth flow signs in to the channel's Google account. Optional settings cover rate limit, request timeout, audit log path and NODE_ENV.
Before you install
Requires Google OAuth credentials and a token encryption key; the encrypted token is stored locally. The update_video_metadata tool writes to your channel's title, description and tags, so changes are live. Every tool call is written to an audit log file. The OAuth flow opens a local callback server on port 4000.

Installation

In SourceWeft

  1. Open Tubemind Secure Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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

Source: README.md at commit 24b63e5

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.3LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts