YouTube Automation via Rube MCP
Automate YouTube operations through Composio's YouTube toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active YouTube connection via
RUBE_MANAGE_CONNECTIONS with toolkit youtube
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit youtube
- If connection is not ACTIVE, follow the returned auth link to complete Google OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Upload and Manage Videos
When to use: User wants to upload a video or update video metadata
Tool sequence:
YOUTUBE_UPLOAD_VIDEO - Upload a new video [Required]
YOUTUBE_UPDATE_VIDEO - Update title, description, tags, privacy [Optional]
YOUTUBE_UPDATE_THUMBNAIL - Set a custom thumbnail [Optional]
Key parameters:
title: Video title (max 100 characters)
description: Video description (max 5000 bytes)
tags: Array of keyword tags
categoryId: YouTube category ID (e.g., '22' for People & Blogs)
privacyStatus: 'public', 'private', or 'unlisted'
videoFilePath: Object with {name, mimetype, s3key} for the video file
Pitfalls:
- UPLOAD_VIDEO consumes high quota; prefer UPDATE_VIDEO for metadata-only changes
- videoFilePath must be an object with s3key, not a raw file path or URL
- Tags total must not exceed 500 characters including separators
- Angle brackets
< > in tags are automatically stripped
- Description limit is 5000 bytes, not characters (multibyte chars count more)
2. Search YouTube Content
When to use: User wants to find videos, channels, or playlists
Tool sequence:
YOUTUBE_SEARCH_YOU_TUBE - Search for content [Required]
YOUTUBE_VIDEO_DETAILS - Get full details for a specific video [Optional]
YOUTUBE_GET_VIDEO_DETAILS_BATCH - Get details for multiple videos [Optional]
Key parameters:
q: Search query (supports exact phrases, exclusions, channel handles)
type: 'video', 'channel', or 'playlist'
maxResults: Results per page (1-50)
pageToken: For pagination
Pitfalls:
- Search endpoint only returns 'snippet' part; use VIDEO_DETAILS for statistics
- Search results are capped at 500 total items
- Search has higher quota cost (100 units) vs list endpoints (1 unit)
- BATCH video details practical limit is ~50 IDs per call; chunk larger sets
3. Manage Playlists
When to use: User wants to create playlists or manage playlist contents
Tool sequence:
YOUTUBE_LIST_USER_PLAYLISTS - List user's existing playlists [Optional]
YOUTUBE_CREATE_PLAYLIST - Create a new playlist [Optional]
YOUTUBE_ADD_VIDEO_TO_PLAYLIST - Add a video to a playlist [Optional]
YOUTUBE_LIST_PLAYLIST_ITEMS - List videos in a playlist [Optional]
Key parameters:
playlistId: Playlist ID ('PL...' for user-created, 'UU...' for uploads)
part: Resource parts to include (e.g., 'snippet,contentDetails')
maxResults: Items per page (1-50)
pageToken: Pagination token from previous response
Pitfalls:
- Do NOT pass channel IDs ('UC...') as playlist IDs; convert 'UC' to 'UU' for uploads
- Large playlists require pagination via pageToken; follow nextPageToken until absent
- items[].id is not the videoId; use items[].snippet.resourceId.videoId
- Creating duplicate playlist names is allowed; check existing playlists first
4. Get Channel and Video Analytics
When to use: User wants to analyze channel performance or video metrics
Tool sequence:
YOUTUBE_GET_CHANNEL_ID_BY_HANDLE - Resolve a handle to channel ID [Prerequisite]
YOUTUBE_GET_CHANNEL_STATISTICS - Get channel subscriber/view/video counts [Required]
YOUTUBE_LIST_CHANNEL_VIDEOS - List all videos from a channel [Optional]
YOUTUBE_GET_VIDEO_DETAILS_BATCH - Get per-video statistics [Optional]
YOUTUBE_GET_CHANNEL_ACTIVITIES - Get recent channel activities [Optional]
Key parameters:
channelId: Channel ID ('UC...'), handle ('@handle'), or 'me'
forHandle: Channel handle (e.g., '@Google')
id: Comma-separated video IDs for batch details
parts: Resource parts to include (e.g., 'snippet,statistics')
Pitfalls:
- Channel statistics are lifetime totals, not per-period
- BATCH video details may return fewer items than requested for private/deleted videos
- Response data may be nested under
data or data_preview; parse defensively
- contentDetails.duration uses ISO 8601 format (e.g., 'PT4M13S')
5. Manage Subscriptions and Comments
When to use: User wants to subscribe to channels or view video comments
Tool sequence:
YOUTUBE_SUBSCRIBE_CHANNEL - Subscribe to a channel [O
1---2name: youtube-automation3description: YouTube Automation via Rube MCP4---567# YouTube Automation via Rube MCP89Automate YouTube operations through Composio's YouTube toolkit via Rube MCP.1011## Prerequisites1213- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)14- Active YouTube connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `youtube`15- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas1617## Setup1819**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.2021221. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds232. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `youtube`243. If connection is not ACTIVE, follow the returned auth link to complete Google OAuth254. Confirm connection status shows ACTIVE before running any workflows2627## Core Workflows2829### 1. Upload and Manage Videos3031**When to use**: User wants to upload a video or update video metadata3233**Tool sequence**:341. `YOUTUBE_UPLOAD_VIDEO` - Upload a new video [Required]352. `YOUTUBE_UPDATE_VIDEO` - Update title, description, tags, privacy [Optional]363. `YOUTUBE_UPDATE_THUMBNAIL` - Set a custom thumbnail [Optional]3738**Key parameters**:39- `title`: Video title (max 100 characters)40- `description`: Video description (max 5000 bytes)41- `tags`: Array of keyword tags42- `categoryId`: YouTube category ID (e.g., '22' for People & Blogs)43- `privacyStatus`: 'public', 'private', or 'unlisted'44- `videoFilePath`: Object with `{name, mimetype, s3key}` for the video file4546**Pitfalls**:47- UPLOAD_VIDEO consumes high quota; prefer UPDATE_VIDEO for metadata-only changes48- videoFilePath must be an object with s3key, not a raw file path or URL49- Tags total must not exceed 500 characters including separators50- Angle brackets `< >` in tags are automatically stripped51- Description limit is 5000 bytes, not characters (multibyte chars count more)5253### 2. Search YouTube Content5455**When to use**: User wants to find videos, channels, or playlists5657**Tool sequence**:581. `YOUTUBE_SEARCH_YOU_TUBE` - Search for content [Required]592. `YOUTUBE_VIDEO_DETAILS` - Get full details for a specific video [Optional]603. `YOUTUBE_GET_VIDEO_DETAILS_BATCH` - Get details for multiple videos [Optional]6162**Key parameters**:63- `q`: Search query (supports exact phrases, exclusions, channel handles)64- `type`: 'video', 'channel', or 'playlist'65- `maxResults`: Results per page (1-50)66- `pageToken`: For pagination6768**Pitfalls**:69- Search endpoint only returns 'snippet' part; use VIDEO_DETAILS for statistics70- Search results are capped at 500 total items71- Search has higher quota cost (100 units) vs list endpoints (1 unit)72- BATCH video details practical limit is ~50 IDs per call; chunk larger sets7374### 3. Manage Playlists7576**When to use**: User wants to create playlists or manage playlist contents7778**Tool sequence**:791. `YOUTUBE_LIST_USER_PLAYLISTS` - List user's existing playlists [Optional]802. `YOUTUBE_CREATE_PLAYLIST` - Create a new playlist [Optional]813. `YOUTUBE_ADD_VIDEO_TO_PLAYLIST` - Add a video to a playlist [Optional]824. `YOUTUBE_LIST_PLAYLIST_ITEMS` - List videos in a playlist [Optional]8384**Key parameters**:85- `playlistId`: Playlist ID ('PL...' for user-created, 'UU...' for uploads)86- `part`: Resource parts to include (e.g., 'snippet,contentDetails')87- `maxResults`: Items per page (1-50)88- `pageToken`: Pagination token from previous response8990**Pitfalls**:91- Do NOT pass channel IDs ('UC...') as playlist IDs; convert 'UC' to 'UU' for uploads92- Large playlists require pagination via pageToken; follow nextPageToken until absent93- items[].id is not the videoId; use items[].snippet.resourceId.videoId94- Creating duplicate playlist names is allowed; check existing playlists first9596### 4. Get Channel and Video Analytics9798**When to use**: User wants to analyze channel performance or video metrics99100**Tool sequence**:1011. `YOUTUBE_GET_CHANNEL_ID_BY_HANDLE` - Resolve a handle to channel ID [Prerequisite]1022. `YOUTUBE_GET_CHANNEL_STATISTICS` - Get channel subscriber/view/video counts [Required]1033. `YOUTUBE_LIST_CHANNEL_VIDEOS` - List all videos from a channel [Optional]1044. `YOUTUBE_GET_VIDEO_DETAILS_BATCH` - Get per-video statistics [Optional]1055. `YOUTUBE_GET_CHANNEL_ACTIVITIES` - Get recent channel activities [Optional]106107**Key parameters**:108- `channelId`: Channel ID ('UC...'), handle ('@handle'), or 'me'109- `forHandle`: Channel handle (e.g., '@Google')110- `id`: Comma-separated video IDs for batch details111- `parts`: Resource parts to include (e.g., 'snippet,statistics')112113**Pitfalls**:114- Channel statistics are lifetime totals, not per-period115- BATCH video details may return fewer items than requested for private/deleted videos116- Response data may be nested under `data` or `data_preview`; parse defensively117- contentDetails.duration uses ISO 8601 format (e.g., 'PT4M13S')118119### 5. Manage Subscriptions and Comments120121**When to use**: User wants to subscribe to channels or view video comments122123**Tool sequence**:1241. `YOUTUBE_SUBSCRIBE_CHANNEL` - Subscribe to a channel [O