Manage YouTube content including videos, channels, playlists and creator operations. Search content, organize media, publish updates and interact with YouTube resources programmatically.
OpenCode is an open-source agent for the terminal. Remote MCP servers go in its config file and sign in through OAuth.
This guide connects YouTube to OpenCode through MewCP, so OpenCode can use YouTube's 16 tools, like get_my_channel, get_my_playlists and get_my_subscriptions, without your YouTube credentials ever reaching the app.
YouTube signs in through managed OAuth. MewCP stores the token encrypted, refreshes it before it expires and injects it only at call time. Your agent never holds it, so it can never leak it.
More apps
Meta Ads connects AI agents to Facebook and Instagram advertising accounts to analyze campaign performance, create and edit campaigns, ad sets and creatives, manage custom audiences and product catalogs, inspect conversion tracking signals, run A/B tests, and investigate advertising issues.
Read public social media posts, comments, profiles and trends from 18 platforms.
Manifold consolidates SEO research, AI search visibility tracking, social media intelligence, advertising research, and B2B lead discovery in one platform. Analyze Google rankings and backlinks, monitor brand mentions in ChatGPT and Perplexity, research social content across Reddit, YouTube, TikTok, LinkedIn, and X, and find business contacts with verified work emails.
Create and manage AI-generated videos with Reelsmith.video through MCP-compatible AI agents. Upload video projects, select editing and caption styles, start video processing, track rendering status, and retrieve finished videos
Other clients
YouTube works the same way in every client below. Pick yours for its own guide.
Free to start.
Scope access to the exact YouTube tools and accounts you allow, work and personal side by side. Anything outside that scope is refused at call time, even when the model asks for it.
Each call is logged: what ran, on which account, and whether it worked. Failures come back structured, so the agent knows whether to retry instead of guessing.
Every app sits behind one secure MCP URL, and there is no server for you to deploy or keep running. Add an integration in the dashboard and it is live on the next call, with no config to change and no new credentials to wire up. Tools load only when a task needs them, so your agent stays fast and focused however many apps you connect.
Edit ~/.config/opencode/opencode.json, or opencode.json in your project root.
Start a new chat and ask: "List the tools you can use from MewCP." You should see your connected apps.
Get information about the authenticated user's YouTube channel. Returns snippet, contentDetails, and statistics for the channel.
Get playlists from the authenticated user's channel. Returns snippet and contentDetails for each playlist.
Get the authenticated user's channel subscriptions. Returns snippet and contentDetails for each subscription.
Get recent activities on the authenticated user's channel. Returns snippet and contentDetails for each activity.
Subscribe to a YouTube channel. Returns the created subscription resource including snippet details.
Search for videos on YouTube.
Get detailed information about a specific video by ID.
Get videos from a specific channel.
Get comments for a specific video.
Post a comment on a video.
Rate a video (like or dislike).
Get videos from a specific playlist.
Create a new playlist on the authenticated user's channel.
Add a video to a playlist.
Fetch the transcript (captions) for a YouTube video as plain text and individual timed segments. Uses auto-generated or manually created captions. Specify preferred languages in priority order; falls back to the first available if none match.
List all available transcript tracks for a YouTube video, including language, language code, whether the track is auto-generated, and whether it can be translated. Use this before get_video_transcript to discover available languages.