Install
$ agentstack add mcp-t4god-youtube-creator-mcp ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
YouTube Creator MCP
[](https://github.com/t4god/youtube-creator-mcp/actions/workflows/ci.yml) [](LICENSE)
A local, privacy-first Model Context Protocol server for creators who need direct access to the official YouTube Data, Analytics, Reporting, and Live Streaming APIs.
Use it with Codex, Claude Desktop, Cursor, or another MCP client to analyze your channel, research public topics, build local competitor history, and perform carefully gated channel operations.
> Status: v0.2.0. Read-only analytics and research are the recommended path. > Creator writes are typed, audited, opt-in, and disabled by default.
Why this exists
Most YouTube MCP servers focus on public search or transcripts. YouTube Creator MCP focuses on the creator's own source-of-truth data and official management APIs:
- Private analytics: retention, search terms, traffic, geography, demographics, and devices
- YouTube Reporting API jobs and bulk CSV exports
- Public video, channel, playlist, comment, membership, category, and activity data
- YouTube Live Streaming resources, broadcasts, streams, and live chat
- Persistent competitor snapshots and true deltas between captures
- Topic sampling, age-normalized velocity proxies, and breakout indicators
- Guarded uploads, captions, thumbnails, metadata, playlists, comments, and moderation
- Local quota ledger and research cache
This project deliberately does not estimate keyword search volume or expose private competitor analytics. Pair it with other research sources when those signals matter.
Security model
- Every installation uses its own Google Cloud project and OAuth credentials.
- OAuth credentials are never placed in MCP configuration.
- macOS stores credentials in Keychain by default.
- Linux and Windows use private per-user files by default.
- Research cache and snapshots live in a local SQLite database.
- External writes require server configuration and per-call confirmation.
- Publication has its own independent server gate and
PUBLISHconfirmation. - Destructive operations require a second independent server flag and stronger confirmation.
- Upload and download paths are restricted to explicit media roots with symlink containment checks.
- Upload operation IDs and fingerprints block accidental duplicate submissions.
- Idempotent reads use bounded retries and timeouts; writes are never blindly retried.
Never commit a Google OAuth client JSON, API key, access token, or refresh token.
Requirements
- Node.js 22.5 or newer
- A Google account with a YouTube channel for private analytics
- A Google Cloud project with the required YouTube APIs enabled
- macOS, Linux, or Windows
- Xcode Command Line Tools on macOS for the Keychain helper (
xcode-select --install)
Installation
git clone https://github.com/t4god/youtube-creator-mcp.git
cd youtube-creator-mcp
npm ci
npm run build
The server can start without credentials and expose status/capability tools. Public Data API reads require an API key or OAuth; Analytics and private data require OAuth.
Google Cloud setup
Create a separate Google Cloud project for this installation:
- Enable YouTube Data API v3.
- Enable YouTube Analytics API.
- Enable YouTube Reporting API if you need bulk scheduled reports.
- Configure the OAuth consent screen.
- For a personal app, add your Google account as a test user if the project remains in Testing.
- Create an OAuth client of type Desktop app.
- Download the JSON file outside this repository.
Official references:
- YouTube Data API
- Installed-app OAuth
- YouTube Analytics reports.query
- YouTube Reporting API
- YouTube API Services policies
Do not reuse another person's Google OAuth client. YouTube policies prohibit embedding shared API credentials in open-source projects.
Authorize your channel
Start with the minimum read-only profile:
node dist/cli.js auth --client /absolute/path/to/client_secret.json --profile readonly
The command opens Google's authorization page and receives the callback on 127.0.0.1. Check the resulting configuration without exposing tokens:
node dist/cli.js status
Remove locally stored credentials:
node dist/cli.js logout
OAuth profiles
| Profile | Intended use | Added access | |---|---|---| | readonly | Research and normal analytics | Account reads, analytics reads, memberships | | monetary | Revenue analysis | Adds monetary analytics | | manager | Publishing and channel operations | Adds uploads and management scopes | | full | Creator operations and revenue | Manager plus monetary analytics | | partner | CMS/content-owner accounts only | Adds YouTube Partner scopes |
Changing profiles requires running auth again and reviewing the new scopes.
Credential storage
YOUTUBE_MCP_SECRET_STORE=auto is the default:
- macOS: Keychain, encrypted at rest by the operating system
- Linux/Windows: JSON files inside the private application data directory
Set YOUTUBE_MCP_SECRET_STORE=file for headless macOS environments. File storage is protected by local account permissions but is not independently encrypted.
Connect an MCP client
Replace /absolute/path/to/youtube-creator-mcp in these examples.
Codex
Add to ~/.codex/config.toml:
[mcp_servers.youtube]
command = "node"
args = ["/absolute/path/to/youtube-creator-mcp/dist/cli.js", "serve"]
startup_timeout_sec = 20
tool_timeout_sec = 120
Claude Desktop
Add to the mcpServers object in the Claude Desktop configuration:
{
"youtube": {
"command": "node",
"args": ["/absolute/path/to/youtube-creator-mcp/dist/cli.js", "serve"]
}
}
Public API-key-only mode
For public Data API reads without channel analytics:
{
"youtube": {
"command": "node",
"args": ["/absolute/path/to/youtube-creator-mcp/dist/cli.js", "serve"],
"env": { "YOUTUBE_API_KEY": "YOUR_PERSONAL_API_KEY" }
}
}
Prefer your client's secure environment or secret mechanism instead of writing an API key directly into a configuration file.
Tool catalog
Authentication and discovery
youtube_auth_statusyoutube_quota_statusyoutube_capabilities
Public and private Data API reads
youtube_my_channelyoutube_get_videosyoutube_get_channelsyoutube_channel_uploadsyoutube_comments
Batch ID tools accept up to 500 IDs and issue batches of 50 per API request.
Comment management
youtube_post_comment: post a top-level comment on a videoyoutube_reply_to_comment: reply to an existing comment threadyoutube_update_comment: edit a comment or reply owned by the authenticated channelyoutube_moderate_comment: publish, hold, reject, or reject-and-ban on the authenticated channelyoutube_delete_comment: permanently delete an owned comment
Posting, replying, editing, and moderation require the write gate and confirm="APPLY". Deletion additionally requires the destructive gate and confirm="DELETE".
Analytics
youtube_analytics_query: customreports.queryrequest with named and raw rowsyoutube_analytics_report: validated presets
Presets include channel_overview, daily_trends, top_videos, traffic_sources, search_terms, geography, devices, demographics, and retention.
Research and local history
youtube_topic_researchyoutube_compare_topicsyoutube_snapshot_videosyoutube_snapshot_history
Topic results are cached briefly to conserve search quota. Age-normalized views/day is not current VPH; collect repeated snapshots before claiming real velocity.
Full API escape hatches
youtube_data_readyoutube_data_callyoutube_reporting_readyoutube_reporting_callyoutube_reporting_downloadyoutube_download_caption
Use youtube_capabilities before a generic call and prefer typed high-level tools. Generic videos.insert and thumbnails.set calls are intentionally rejected so uploads cannot bypass media validation and duplicate protection.
Creator operations
youtube_upload_plan: validate and hash the exact local file and final metadata without contacting YouTubeyoutube_upload_video: private-by-default upload with operation-ID duplicate protectionyoutube_update_video: merge-safe metadata, audience, synthetic-media, visibility, and schedule updatesyoutube_set_thumbnail: validated JPEG/PNG thumbnail upload (maximum 2 MB)youtube_upload_status: processing, file, metadata, and visibility status for an owned videoyoutube_write_audit: local starts, successes, failures, and deduplicated attempts
Always call youtube_upload_plan first and present its exact plan to the channel owner. Use a stable, unique operationId for one intended upload; never reuse it for different content. Uploads default to private even when the caller omits visibility.
Write safety
Writes are disabled in the server configuration by default. To perform a reviewed write:
- Authorize with
managerorfull. - Set
YOUTUBE_MCP_ENABLE_WRITES=truein the MCP server environment. - Include
confirm="APPLY"in the tool call.
Making a video public or unlisted, scheduling publication, or using a generic live-broadcast publication action also requires:
YOUTUBE_MCP_ENABLE_PUBLICATION=true
confirm="PUBLISH"
Methods such as delete, unset, or reportAbuse additionally require:
YOUTUBE_MCP_ENABLE_DESTRUCTIVE=true
confirm="DELETE"
Turn the flags off again after the intended operation. Media operations additionally require comma-separated absolute directories in YOUTUBE_MCP_MEDIA_ROOTS.
Persistent creator mode
For a trusted personal installation, the non-destructive write and publication gates can stay enabled in the MCP client configuration. Per-call APPLY and PUBLISH confirmations still apply, so enabling these flags does not silently authorize an action.
[mcp_servers.youtube.env]
YOUTUBE_MCP_ENABLE_WRITES = "true"
YOUTUBE_MCP_ENABLE_PUBLICATION = "true"
YOUTUBE_MCP_ENABLE_DESTRUCTIVE = "false"
Restart the MCP client after changing its configuration. Keep destructive actions disabled persistently; enable them only for a reviewed delete, unset, or abuse-report operation.
Configuration
| Variable | Default | Purpose | |---|---|---| | YOUTUBE_API_KEY | unset | Public Data API reads without OAuth | | YOUTUBE_MCP_SECRET_STORE | auto | auto, keychain, or file | | YOUTUBE_MCP_ENABLE_WRITES | false | Enable non-destructive external writes | | YOUTUBE_MCP_ENABLE_PUBLICATION | false | Independently enable public, unlisted, scheduled, and live publication | | YOUTUBE_MCP_ENABLE_DESTRUCTIVE | false | Enable destructive external writes | | YOUTUBE_MCP_MEDIA_ROOTS | empty | Allowed upload/download directories | | YOUTUBE_MCP_DATA_DIR | platform application-data directory | Database, cache, exports, file credentials | | YOUTUBE_MCP_CACHE_TTL_SECONDS | 300 | Topic-research cache lifetime | | YOUTUBE_MCP_REQUEST_TIMEOUT_MS | 30000 | Timeout for each idempotent read attempt | | YOUTUBE_MCP_MAX_READ_RETRIES | 3 | Retry count for 429/5xx and transient network read failures | | YOUTUBE_MCP_RETRY_BASE_DELAY_MS | 500 | Exponential backoff base delay with jitter |
On macOS, an existing pre-release data directory at ~/Library/Application Support/youtube-mcp is reused automatically so local snapshots and authorization continue working.
Quotas
The MCP records an estimate of Data API units it consumes. search.list and videos.insert are estimated at 100 units each, and all methods draw from the same project quota pool. Google Cloud Console remains authoritative. Failed calls and read retries may still consume quota, and quota resets follow Google's Pacific-time schedule.
The ledger does not see calls from other applications using the same Google Cloud project.
Official API boundaries
Official YouTube APIs do not provide:
- Private analytics or retention for competitors
- Competitor history from before you start collecting snapshots
- Arbitrary third-party video transcripts
- YouTube UI autocomplete
- vidIQ estimates, Google Trends, Reddit, GitHub, or cross-platform signals
- Every action present in YouTube Studio
This MCP is a YouTube data spine, not a complete market-research methodology.
Development
npm ci
npm run check
npm test
npm run build
npm run validate
npm run inspect
See [CONTRIBUTING.md](CONTRIBUTING.md), [SECURITY.md](SECURITY.md), and [CHANGELOG.md](CHANGELOG.md). Deployment, backup, rotation, and incident procedures are in [docs/OPERATIONS.md](docs/OPERATIONS.md).
License
[MIT](LICENSE)
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: t4god
- Source: t4god/youtube-creator-mcp
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.