# YouTube — MCP server on mcp.ai > Busca, vídeo, canal, playlist, comentários, trending e relacionados do YouTube. A leitura é hospedada pela plataforma, sem credencial. Conecte seu canal com o Google para responder, comentar e moderar comentários pela API oficial. By: mcp.ai · official Page: https://new.mcp.ai/youtube ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_youtube?ms=1796396580000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## Install in your AI client (step by step) Link to paste in any client: https://api.mcp.ai/p_youtube ### Claude 1. Copy the YouTube link above (Copy button). 2. In Claude, Plugins → Add → Add custom connector: name YouTube, paste the link and click Continue. Under Authentication, choose Sign in now and click Add. 3. The first time, Claude opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When YouTube needs your account, the AI sends you a link: click Conectar canal do YouTube and authorize. 5. Done: just ask in the chat. Open: https://claude.ai/plugins ### ChatGPT 1. Copy the YouTube link above (Copy button). 2. In ChatGPT (web), Plugins → Add → Add custom MCP server: name YouTube, paste the link, under Authentication choose OAuth or no authentication, check I understand, click Create as a plugin, then Sign in with YouTube. 3. The first time, ChatGPT opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When YouTube needs your account, the AI sends you a link: click Conectar canal do YouTube and authorize. 5. Done: just ask in the chat. Open: https://chatgpt.com/plugins ### Cursor 1. Copy the YouTube link above (Copy button). 2. In Cursor, Settings → MCP → "Add new MCP server", paste the link and save. 3. The first time, Cursor opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When YouTube needs your account, the AI sends you a link: click Conectar canal do YouTube and authorize. 5. Done: just ask in the chat. ### Claude Desktop 1. Copy the YouTube link above (Copy button). 2. Added it in Claude? The connector lives in your account and shows up on Desktop. If not, Plugins → Add → Add custom connector, paste the link and choose Sign in now. 3. The first time, Claude opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When YouTube needs your account, the AI sends you a link: click Conectar canal do YouTube and authorize. 5. Done: just ask in the chat. ### Manus 1. Copy the YouTube link above (Copy button). 2. Paste the link into a Manus chat and ask it to connect the MCP server. 3. The first time, Manus opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When YouTube needs your account, the AI sends you a link: click Conectar canal do YouTube and authorize. 5. Done: just ask in the chat. ### Agents 1. Copy the YouTube link above (Copy button). 2. Paste the link into your MCP-compatible agent (remote HTTP server). 3. The first time, agent opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When YouTube needs your account, the AI sends you a link: click Conectar canal do YouTube and authorize. 5. Done: just ask in the chat. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/youtube/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/youtube/ Authorization: Bearer sk_live_… # create one at https://new.mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs Install guide (prompt + clients + REST), markdown: https://new.mcp.ai/youtube/index.md How to use (MCP or REST), markdown: https://new.mcp.ai/youtube/skill.md Postman collection (v2.1): https://new.mcp.ai/youtube/postman.json ## Tools - youtube_api(path: string, method?: string, query?: object, body?: string) — Escape hatch: call any path on the YouTube backend. Pass path (e.g. /search), optional method (default GET), query map, and JSON body for POST. Prefer the named youtube_* tools when available; this is - youtube_channel_about(id?: string, forUsername?: string, ids?: string[]) — Channel description, links, country, subscriber count, banner. - youtube_channel_community(id?: string, forUsername?: string, token?: string, ids?: string[]) — Community posts tab for a channel. - youtube_channel_featured(id?: string, forUsername?: string, token?: string, ids?: string[]) — Featured channels listed on a channel. Note: YouTube deprecated the featured-channels tab; this route exists upstream but typically returns an empty/error envelope. - youtube_channel_home(id?: string, forUsername?: string, token?: string, ids?: string[]) — Channel home page payload (featured shelves + meta). - youtube_channel_playlists(id?: string, forUsername?: string, sort_by?: string, token?: string, ids?: string[]) — Channel playlists tab. - youtube_channel_search(id?: string, forUsername?: string, query: string, token?: string, ids?: string[]) — Search a channel's own videos and playlists. - youtube_channel_shorts(id?: string, forUsername?: string, token?: string, ids?: string[]) — Channel shorts tab. - youtube_channel_shorts_post(id?: string, forUsername?: string, params: string, token?: string, ids?: string[]) — POST variant of channel shorts. Requires a `params` continuation token from a prior GET response. Skip in daily smoke (no synthetic params). - youtube_channel_store(id?: string, forUsername?: string, ids?: string[]) — Store / merch shelf for a channel. - youtube_channel_videos(id?: string, forUsername?: string, sort_by?: string, token?: string, ids?: string[]) — Channel videos tab. - youtube_channel_videos_post(id?: string, forUsername?: string, params: string, token?: string, ids?: string[]) — POST variant of channel videos. Requires a `params` continuation token captured from a prior GET response — used to fetch deeper pages or filtered shelves that the GET surface can't address. Skip in d - youtube_comment_delete(comment_id: string, account?: string, comment_ids?: string[]) — Apaga DEFINITIVAMENTE um comentário (não tem desfazer). Só funciona em comentário do próprio canal ou em vídeo do canal conectado. Para esconder sem apagar, prefira youtube_comment_moderate com `rejec - youtube_comment_moderate(comment_ids: string[], status: string, ban_author?: boolean, account?: string) — Modera comentários no canal conectado: publica (`published`), segura para revisão (`heldForReview`) ou rejeita (`rejected`). `ban_author` só é aceito junto de `rejected`. Vale apenas para comentários - youtube_comment_post(video_id: string, text: string, account?: string, video_ids?: string[]) — Publica um comentário NOVO de topo em um vídeo, como o canal conectado. Para responder alguém, use youtube_comment_reply. Custa 50 unidades da cota. - youtube_comment_reply(replies: object[], account?: string) — Responde comentários como o canal conectado. Aceita VÁRIAS respostas numa chamada (`replies`), e um item que falha não derruba os outros. `parent_id` tem que ser o id de um comentário de TOPO (campo ` - youtube_comment_threads(video_id?: string, channel_id?: string, order?: string, moderation_status?: string, search_terms?: string, max_results?: integer, page_token?: string, account?: string, video_ids?: string[], channel_ids?: string[]) — Comentários de TOPO pela API oficial, com as respostas já existentes. É daqui que sai o `parent_id` usado em youtube_comment_reply (o id do thread), então prefira esta tool a youtube_comments quando a - youtube_comment_update(comment_id: string, text: string, account?: string, comment_ids?: string[]) — Edita o texto de um comentário ou resposta PUBLICADO pelo canal conectado (corrigir um erro sem apagar e repostar, o que perderia as curtidas e o encadeamento). Só funciona em comentário de autoria do - youtube_comments(id: string, sort_by?: string, token?: string, ids?: string[]) — Top-level comments thread for a video. - youtube_download(id: string, cgeo?: string, ids?: string[]) — Stream/download metadata for a video (formats, audio/video URLs, status). - youtube_hashtag(tag: string, type?: string, token?: string) — Posts under a hashtag (without leading #). - youtube_home_feed(geo?: string, lang?: string, token?: string) — YouTube home feed (anonymous, geo/lang aware). - youtube_hype(geo?: string, lang?: string, token?: string) — YouTube Hype: viral / hyped videos feed. - youtube_my_channels(account?: string) — Lista os canais do YouTube conectados (os que podem responder e moderar comentários), com id, nome e estatísticas. Use antes de responder para confirmar de qual canal a resposta vai sair. Custa 1 unid - youtube_playlist(id: string, token?: string, ids?: string[]) — Playlist items by playlist id. - youtube_resolve_url(url: string) — Resolve a YouTube URL or share link to its videoId / pageType. - youtube_search(query: string, type?: string, sort_by?: string, duration?: string, upload_date?: string, geo?: string, lang?: string, token?: string) — Search videos, channels, playlists. - youtube_trending(geo?: string, type?: string, lang?: string) — Trending videos by region. - youtube_video_related(id: string, token?: string, ids?: string[]) — Related videos for a given video id. ## Example prompts - "Busque vídeos sobre "receita fit"" - "Quais comentários do meu canal ainda não foram respondidos?" - "Responda os comentários do vídeo dQw4w9WgXcQ agradecendo pelo feedback" ## Links Docs: https://mcp.ai/docs/mcps/youtube Website: https://mcp.ai/mcps/youtube