Youtube MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Youtube MCP or direct API to upload videos, fetch channel analytics, manage playlists, and moderate comments through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Youtube Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Youtube now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools and Triggers

Tools
Triggers
Add Video to PlaylistTool to add a video to a playlist by inserting a playlist item.
Insert Channel SectionTool to create a new channel section for the authenticated user's YouTube channel.
Insert Comment ReplyTool to create a reply to an existing YouTube comment.
Create PlaylistTool to create a new YouTube playlist on the authenticated user's channel.
Delete Channel SectionTool to delete a YouTube channel section.
Delete CommentTool to delete a YouTube comment owned by the authenticated user or channel.
Delete PlaylistTool to delete a YouTube playlist owned by the authenticated user/channel.
Delete Playlist ItemTool to delete a playlist item (remove a video from a playlist).
Delete VideoTool to delete a YouTube video owned by the authenticated user/channel.
Get Channel ActivitiesGets recent activities from a YouTube channel including video uploads, playlist additions, likes, and other channel events.
Get channel ID by handleRetrieves the YouTube Channel ID for a specific YouTube channel handle.
Get Channel StatisticsGets detailed statistics for YouTube channels including subscriber counts, view counts, and video counts.
Video Details BatchRetrieves multiple YouTube video resource parts in a single batch call.
Get Video RatingRetrieves the ratings that the authorized user gave to a list of specified videos.
List captionsRetrieves a list of caption tracks for a YouTube video.
List Channel SectionsTool to retrieve channel sections from YouTube.
List channel videosLists videos from a specified YouTube channel.
List CommentsList individual comments from YouTube videos.
List Comment ThreadsTool to retrieve comment threads from YouTube videos or channels matching API request parameters.
List I18n LanguagesReturns a list of application languages that the YouTube website supports.
List I18n RegionsTool to retrieve a list of content regions that the YouTube website supports.
List Live Chat MessagesTool to list live chat messages for a specific chat.
List Playlist ImagesTool to retrieve playlist images associated with a specific playlist.
List Playlist ItemsTool to list videos in a playlist, with pagination support.
List Super Chat EventsLists Super Chat events for a channel, showing supporter purchases during live streams.
List user playlistsRetrieves playlists owned by the authenticated user, implicitly using mine=True.
List user subscriptionsRetrieves the authenticated user's YouTube channel subscriptions, allowing specification of response parts and pagination.
List Video Abuse Report ReasonsTool to retrieve a list of abuse report reasons that can be used to report abusive videos on YouTube.
List Video CategoriesTool to list YouTube video categories that can be associated with videos.
Download YouTube caption trackDownloads a specific YouTube caption track, which must be owned by the authenticated user, and returns its content as text.
Multipart upload videoUploads a video to YouTube using multipart upload in a single request.
Post Comment on VideoTool to post a new top-level comment on a YouTube video.
Rate VideoTool to add a like or dislike rating to a YouTube video, or remove an existing rating.
Report Video for AbuseTool to report a YouTube video for containing abusive content.
Search YouTubeSearches YouTube for videos, channels, or playlists using a query term, returning the raw API response.
Set Comment Moderation StatusTool to set the moderation status of one or more YouTube comments.
Subscribe to channelSubscribes the authenticated user to a specified YouTube channel, identified by its unique `channelId` which must be valid and existing.
Unsubscribe from channelTool to unsubscribe the authenticated user from a YouTube channel by deleting a subscription.
Update caption trackUpdates a YouTube caption track's metadata such as name, language, or draft status.
Update channelUpdates a channel's metadata including branding settings and localizations.
Update Channel SectionTool to update an existing YouTube channel section by ID.
Update CommentTool to modify the text of an existing YouTube comment.
Update PlaylistTool to modify an existing YouTube playlist's metadata (title, description, privacy status).
Update Playlist ItemTool to modify a playlist item's properties such as position or note.
Update thumbnailSets the custom thumbnail for a YouTube video using an image from a URL.
Update videoUpdates metadata for a YouTube video identified by videoId, which must exist; an empty list for tags removes all existing tags.
Upload videoUploads a video from a local file path to a YouTube channel; the video file must be in a YouTube-supported format.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Youtube tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('List the latest videos from my Youtube channel')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Youtube Integration

  • Supports both Youtube MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, uploading, and managing your Youtube content

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Youtube access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Youtube
  • Scoped, least privilege access to Youtube resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Youtube with Composio?

No, you can get started immediately using Composio's built-in Youtube app. For production, we recommend configuring your own OAuth credentials.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.