Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Self-hosted YouTube Studio & Analytics MCP server. Use yt_channel_snapshot and yt_shorts_experiment_table to inspect channel performance and render report.html. Use yt_video_details to diagnose 100-point audience retention curves, drop-off cliffs, and traffic sources for a 11-char video_id. Use yt_upload_draft, yt_update_video, and yt_post_comment to upload/schedule videos, update metadata/thumbnails, and post comments in YouTube Studio. Use yt_list_videos to find video IDs, yt_list_comments and yt_reply_comment to read and answer comments, and yt_delete_video (irreversible, needs the exact title) to remove a video; prefer yt_update_video with privacy_status to hide one. Dangerous actions ask the user first; yt_get_safety_settings / yt_set_safety_settings (the /yt-safety command) change which ones.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
yt_channel_snapshotA

Fetch live YouTube channel statistics, recent long-form videos, and Shorts metrics, and write an updated local report.html dashboard and channel_snapshot.json cache on disk. When YouTube OAuth2 credentials are present (and force_public is false), queries YouTube Data API v3 (~3 quota units) and YouTube Analytics API v2 for private owner metrics (averageViewPercentage, swipedAwayRate, engagedViews, estimatedMinutesWatched, subscribersGained); public page scraping is opt-in only (force_public=true or MATEAI_YT_PUBLIC_SCRAPE=1); without OAuth or opt-in it returns setup instructions. Overwrites report.html idempotently on each run.

yt_shorts_experiment_tableA

Generate a GitHub-Flavored Markdown comparison table of the channel's YouTube Shorts ordered newest-first with columns for Publish Date, Title, Views, Viewed vs Swiped Away %, Average % Viewed, Engaged Views, and Subscribers Gained. Pulls live data from YouTube Data API v3 + YouTube Analytics API v2 when OAuth2 is configured (or public channel pages when unauthenticated, where private retention columns are shown as '—'). Returns a 'No Shorts found' notice if the channel has no Shorts.

yt_video_detailsA

Fetch the owner's view of one video (title, description, tags, privacyStatus, publishAt; works for private and scheduled videos) plus owner-authorized YouTube Analytics retention diagnostics for a single 11-character video_id: 100-point elapsedVideoTimeRatio audience retention curve, exact MM:SS drop-off cliffs, relativeRetentionPerformance peer percentiles, and traffic source breakdown. Retention curve and traffic diagnostics require channel-owner OAuth2 (a studioDiagnosisError explains a missing scope). Public page metadata (title, views, likes) is scraped only when force_public=true or MATEAI_YT_PUBLIC_SCRAPE=1. When words_or_script_path is provided, maps each retention drop-off cliff onto the exact spoken words at that timestamp.

yt_upload_draftA

Upload a local MP4/MOV video file to YouTube Studio via YouTube Data API v3 (videos.insert, costs ~1,600 daily quota units) and optionally attach a custom thumbnail (thumbnails.set) and top-level pinned comment (commentThreads.insert). Requires channel OAuth2 with youtube.force-ssl scope. Non-idempotent: each call creates a new YouTube video resource and returns {videoId, studioUrl, watchUrl, privacyStatus, publishAt}. Defaults to privacy_status='private' (unpublished draft); when publish_at (ISO 8601 future timestamp) is provided, privacy_status is forced to 'private' until YouTube automatically publishes the video at publish_at. Inline parameters (title, description, tags, hashtags, pinned_comment) override values parsed from spec_path.

yt_update_videoA

Perform a partial, idempotent update on an existing YouTube video's metadata, visibility, schedule, or custom thumbnail in YouTube Studio via YouTube Data API v3 (videos.list + videos.update, costs ~51 quota units). Requires channel-owner OAuth2. Fetches current snippet/status first so omitted parameters (title, description, tags, privacy_status, publish_at) are preserved unchanged rather than cleared. Setting publish_at automatically forces privacy_status='private' as required by YouTube's scheduling API. When privacy_status or publish_at is set, contains_synthetic_media is required (true or false): YouTube can't read the current disclosure back and a status update may reset it. Title and description must not contain '<' or '>' (write 'over 75%', not '>75%'). Returns {videoId, studioUrl, updatedFields}.

yt_post_commentA

Post a public top-level comment thread on a YouTube video or Short via YouTube Data API v3 (commentThreads.insert, costs ~50 daily quota units). Requires OAuth2 with youtube.force-ssl scope. Non-idempotent: each call publishes a new visible comment immediately under the authenticated channel identity and returns {commentId, videoId, text}. Fails if comments are disabled on the target video or the video is private. Built-in limits (not adjustable): at most 20 comments+replies per rolling hour and 100 per rolling 24 hours, and the same text at most 2 times per 24 hours.

yt_list_videosA

List the authenticated channel's uploads (including private, unlisted and scheduled), newest first, with videoId, title, privacyStatus, publishAt, views and URL. Optional query is a case-insensitive substring match on title or description, applied locally. Costs ~2 quota units per 50 videos paged. Requires OAuth2.

yt_list_commentsA

Read top-level comment threads on a video (commentThreads.list, ~1 quota unit): commentId, author, text, likes, publishedAt, replyCount and the first few replies. Single page, max 100. Use a returned commentId as yt_reply_comment's parent_id. Fails if comments are disabled.

yt_reply_commentA

Publish a public reply to a top-level comment (comments.insert, ~50 quota units) under the authenticated channel identity. parent_id must be a top-level commentId from yt_list_comments. Non-idempotent. Built-in limits (not adjustable): at most 20 comments+replies per rolling hour and 100 per rolling 24 hours, and the same text at most 2 times per 24 hours.

yt_delete_videoA

DANGEROUS — the server asks the user in a confirmation dialog before this runs. PERMANENTLY delete one of the channel's videos (videos.delete, ~50 quota units). Irreversible: views, watch hours and comments are lost. To merely hide a video use yt_update_video with privacy_status. Refuses unless confirm_title exactly equals the video's current title.

yt_get_safety_settingsA

Show which actions ask the user for a yes before they run, in plain words. Deleting a video and changing these settings always ask; the rest are the user's choice.

yt_set_safety_settingsA

DANGEROUS — the server asks the user in a confirmation dialog before this runs. Choose which actions ask the user for a yes before they run. confirm is the full list of optional actions that should ask (an empty list means only the always-on ones ask). Deleting a video always asks and cannot be turned off. Use only with the user's explicit choice, normally via the /yt-safety command.

tiktok_channel_snapshotA

Fetch authenticated TikTok profile statistics (followers, total likes, video count) and recent videos (views, likes, comments, shares, duration, publish date, share URL) via the official TikTok Display API v2 (user.info.basic, user.info.profile, user.info.stats, video.list) and cache to tiktok_snapshot.json. Requires OAuth2 setup via python3 tiktok_studio.py setup.

tiktok_upload_draftA

Upload a local MP4/MOV video file as an Inbox Draft to the creator's TikTok mobile app notifications via the official TikTok Content Posting API (/v2/post/publish/inbox/video/init/, which accepts source_info only). Builds and returns the ready-to-paste caption (from spec_path or title/hashtags, with #Shorts stripped) plus an AI-generated content label reminder so the creator can paste the caption and turn on TikTok's AI-generated toggle in the mobile app before publishing. A successful return means TikTok accepted the upload, not that the inbox notification arrived (see deliveryNote).

tiktok_draft_statusA

Check where a video sent with tiktok_upload_draft stands, using its publishId (/v2/post/publish/status/fetch/). Returns state, fail_reason and a one-line plain meaning. Read-only.

cross_platform_shorts_tableA

Generate a GitHub-Flavored Markdown comparison table pairing YouTube Shorts with TikTok videos (matching normalized YouTube Short titles against TikTok title or video_description, while keeping unmatched videos from either platform) across official API metrics: Views, Likes, Comments, YouTube Avg % Viewed, and TikTok Shares.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 16 tools

Disambiguation4/5

Most tools target clearly distinct resources and actions (upload vs update vs delete vs list video, post vs reply vs list comment). The main friction is among the three reporting/analytics tools — yt_channel_snapshot, yt_shorts_experiment_table, and cross_platform_shorts_table — which all fetch similar stats and differ mainly in output form, so an agent may pause on which to call. yt_list_videos vs yt_video_details is also an overlap point but descriptions differentiate list vs single-video scope.

Naming Consistency4/5

Consistent platform-prefix + verb_noun pattern (yt_upload_draft, yt_list_comments, tiktok_channel_snapshot, cross_platform_shorts_table). Minor deviations: noun-phrase names like yt_video_details and cross_platform_shorts_table lack a verb, and there are two 'draft' tools on different platforms with different semantics (upload_draft vs draft_status). Overall predictable and readable.

Tool Count4/5

16 tools covering two platforms plus cross-platform comparison is proportionate — roughly 12 YouTube, 3 TikTok, 1 cross-platform. Slightly top-heavy on YouTube reporting/analytics tools, but each earns a place. Not excessive for the stated dual-platform scope.

Completeness4/5

YouTube side has strong lifecycle coverage: upload, update metadata/schedule, delete with confirmation guard, list, details, comments (list/post/reply), analytics, and safety settings. Notable gaps: no comment deletion/moderation, no playlist or caption operations, and the TikTok side has no update/delete for posted videos (partly API-limited). Minor workaround gaps rather than dead ends.

Maintenance

ActivityNo data
ResponsivenessOutdated data