YouTube

io.github.mcp-dir由 GitHub 账号 mcp-dir 发布v0.1.0更新于 Nov 2, 2026

Search, video, channel, playlist, comments, trending and related items from YouTube. Hosted by the p

已验证Streamable HTTP可网页运行沟通与协作媒体与设计

概览

AI 生成的概览

托管式 YouTube MCP 服务器,让助手搜索视频、频道和播放列表、读取评论,并以已连接频道身份发布或管理评论。

可以做什么
  • 搜索与浏览:搜索视频、频道和播放列表,解析分享链接,查看首页推荐、热门、Hype 与话题标签内容流
  • 视频与播放列表:获取视频元数据与下载格式/流信息、播放列表条目、视频顶层评论串
  • 频道信息:频道首页栏目、简介、视频、短视频、播放列表、社区帖子、商店货架、推荐频道及频道内搜索,支持批量 id
  • 评论管理:列出已连接频道,回复评论串、发布新评论、编辑、审核(发布、待审、拒绝、封禁作者)与删除
  • 通过通用工具调用 YouTube 后端的任意路径
  • 平台工具:版本信息、问题反馈、连接状态、工具包状态与 MCP 市场检索
适用场景
适合需要做 YouTube 调研或内容运营的场景:查找视频与频道、汇总评论串、跟踪热门趋势,或管理并审核自己频道的评论。它是托管服务,无需本地安装。
运行要求
通过 HTTP 连接的远程 MCP 端点,无需本地运行时或安装包。只读功能无需凭据;发布、编辑、审核和删除评论需以已连接频道身份登录(魔法链接登录,或以 Authorization Bearer 请求头提供访问令牌)。免费额度之外需付费方案。
安装前请注意
评论类工具会写入真实频道:发布、编辑、审核和删除都是实际动作,删除不可撤销。每次调用消耗配额单位,部分操作每次 50 单位。服务器为专有托管服务,返回的数据会发送给你所选的 LLM 宿主。通用后端路径工具可访问命名工具之外的接口。

安装

在 SourceWeft 中

  1. 打开 控制台中的 YouTube,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.mcp-dir%2Fyoutube-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "youtube": {
      "type": "http",
      "url": "https://api.mcp.ai/p_youtube"
    }
  }
}

README

YouTube

YouTube para Claude, ChatGPT e agentes de IA

Busca, vídeo, canal, playlist, comentários, trending e relacionados do YouTube. Hospedado pela plataforma, sem necessidade de credencial.

  • 📊 22 ferramentas
  • ✏️ Leitura e escrita
  • 💬 Funciona com qualquer cliente MCP: Claude Desktop, Cursor, VS Code, Cline, Continue
  • 🔑 Login via magic-link (sem senha)

English version · Documentação completa · Skill pra agentes


Instalar em 1 clique

Claude (Web e Desktop)

A Anthropic unificou a instalação de MCPs em claude.ai/customize/connectors. O mesmo link serve pra Claude Web e Claude Desktop (basta estar logado):

➕ Abrir no Claude e conectar

Manual (se o deeplink não abrir): claude.ai/customize/connectors → + → Adicionar conector personalizado → cole Nome YouTube e URL https://api.mcp.ai/p_youtube.

Cursor

➕ Instalar YouTube no Cursor

VS Code (Copilot Chat)

➕ Instalar YouTube no VS Code

ChatGPT, Manus, OpenClaw e mais 40+ clientes

Funciona em qualquer cliente MCP que suporte MCP over HTTP. A URL do servidor é sempre:

https://api.mcp.ai/p_youtube

Detalhes por cliente: INSTALL.md.


Exemplos de uso

Busque vídeos sobre "receita fit"Detalhes do vídeo dQw4w9WgXcQTrending nos EUA

22 ferramentas disponíveis

ToolDescrição
youtube_home_feedYouTube home feed (anonymous, geo/lang aware).
youtube_trendingTrending videos by region.
youtube_searchSearch videos, channels, playlists.
youtube_resolve_urlResolve a YouTube URL or share link to its videoId / pageType.
youtube_downloadStream/download metadata for a video (formats, audio/video URLs, status).
youtube_hypeYouTube Hype: viral / hyped videos feed.
youtube_hashtagPosts under a hashtag (without leading #).
youtube_playlistPlaylist items by playlist id.
youtube_commentsTop-level comments thread for a video.
youtube_video_relatedRelated videos for a given video id.
youtube_channel_homeChannel home page payload (featured shelves + meta).
youtube_channel_aboutChannel description, links, country, subscriber count, banner.
youtube_channel_videosChannel videos tab. Bulk support: accepts ids for batched execution.
youtube_channel_shortsChannel shorts tab. Bulk support: accepts ids for batched execution.
youtube_channel_playlistsChannel playlists tab. Bulk support: accepts ids for batched execution.
youtube_channel_communityCommunity posts tab for a channel.
youtube_channel_featuredFeatured channels listed on a channel.
youtube_channel_storeStore / merch shelf for a channel.
youtube_channel_searchSearch a channel's own videos and playlists.
youtube_channel_videos_postPOST variant of channel videos.
youtube_channel_shorts_postPOST variant of channel shorts.
youtube_apiEscape hatch: call any path on the YouTube backend.

Detalhe de cada tool: docs/ferramentas.md


Preços

Planos a partir do tier grátis. Veja docs/precos.md.


Privacidade & LGPD

  • Sub-processadores: o LLM host que você escolher (Claude, ChatGPT, Cursor, agente próprio). Lista completa em docs/privacidade-lgpd.md.
  • Os dados retornados pelas tools são enviados ao LLM host que você escolher, sub-processador fora do nosso controle. Recomendamos planos com opt-out de treinamento.

Perguntas frequentes

O servidor é open source? O servidor é proprietário (hosted). Este repositório é o wrapper público com manifestos, docs e skills — tudo MIT.

Posso usar com agente próprio (não Claude/Cursor)? Sim — qualquer cliente que suporte MCP over HTTP. URL: https://api.mcp.ai/p_youtube.


Suporte


Licença

MIT — veja LICENSE. O servidor MCP em api.mcp.ai/p_youtube é proprietário (hosted); este repositório (manifestos, docs, skills) é MIT.

来源:README.md,提交 1cf7430

工具

35

youtube_home_feed

YouTube home feed (anonymous, geo/lang aware).

输入参数geolangtoken

youtube_resolve_url

Resolve a YouTube URL or share link to its videoId / pageType.

输入参数url必填

youtube_download

Stream/download metadata for a video (formats, audio/video URLs, status). Bulk support: accepts ids for batched execution.

输入参数id必填idscgeo

youtube_hype

YouTube Hype: viral / hyped videos feed.

输入参数geolangtoken

youtube_hashtag

Posts under a hashtag (without leading #).

输入参数tag必填typetoken

youtube_playlist

Playlist items by playlist id. Bulk support: accepts ids for batched execution.

输入参数id必填idstoken

youtube_comments

Top-level comments thread for a video. Bulk support: accepts ids for batched execution.

输入参数id必填idstokensort_by

youtube_channel_home

Channel home page payload (featured shelves + meta). Bulk support: accepts ids for batched execution.

输入参数ididstokenforUsername

youtube_channel_about

Channel description, links, country, subscriber count, banner. Bulk support: accepts ids for batched execution.

输入参数ididsforUsername

youtube_channel_videos

Channel videos tab. Bulk support: accepts ids for batched execution.

输入参数ididstokensort_byforUsername

youtube_channel_shorts

Channel shorts tab. Bulk support: accepts ids for batched execution.

输入参数ididstokenforUsername

youtube_channel_playlists

Channel playlists tab. Bulk support: accepts ids for batched execution.

输入参数ididstokensort_byforUsername

youtube_channel_community

Community posts tab for a channel. Bulk support: accepts ids for batched execution.

输入参数ididstokenforUsername

youtube_channel_store

Store / merch shelf for a channel. Bulk support: accepts ids for batched execution.

输入参数ididsforUsername

youtube_channel_videos_post

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 daily smoke (no synthetic params). Bulk support: accepts ids for batched execution.

输入参数ididstokenparams必填forUsername

youtube_channel_shorts_post

POST variant of channel shorts. Requires a `params` continuation token from a prior GET response. Skip in daily smoke (no synthetic params). Bulk support: accepts ids for batched execution.

输入参数ididstokenparams必填forUsername

youtube_api

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 for routes not in the manifest.

输入参数bodypath必填querymethod

youtube_my_channels

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 unidade da cota.

输入参数account

youtube_comment_threads

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 intenção for responder. Sem `video_id`, traz os comentários do canal conectado inteiro (bom para 'o que ainda não respondi'). Custa 1 unidade da cota. Bulk support: accepts video_ids, channel_ids for batched execution.

输入参数orderaccountvideo_idvideo_idschannel_idpage_tokenchannel_idsmax_resultssearch_termsmoderation_status

youtube_comment_reply

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 `id` do thread devolvido por youtube_comment_threads), nunca o id de uma resposta. Cada resposta consome 50 unidades da cota da API do YouTube, então responda o que importa em vez de varrer o canal.

输入参数accountreplies必填

youtube_comment_post

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. Bulk support: accepts video_ids for batched execution.

输入参数text必填accountvideo_id必填video_ids

youtube_comment_update

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 próprio canal. Custa 50 unidades da cota. Bulk support: accepts comment_ids for batched execution.

输入参数text必填accountcomment_id必填comment_ids

youtube_comment_moderate

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 em vídeos do próprio canal. Custa 50 unidades por comentário.

输入参数status必填accountban_authorcomment_ids必填

youtube_comment_delete

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 `rejected`. Custa 50 unidades da cota. Bulk support: accepts comment_ids for batched execution.

输入参数accountcomment_id必填comment_ids

show_version

Show Version

Show the current MCP platform and adapter versions.

无需输入参数。

report_bug

Report Bug

Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.

输入参数contextmessage必填conversation

connect

Connection Status

Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.

无需输入参数。

toolkit_info

Toolkit Info

Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.

无需输入参数。

marketplace

Marketplace

The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.

输入参数limitqueryactionmcp_idmessagetool_idargumentsimmediatetier_slugprompt_bodyprompt_slugprompt_tool另有 11 个

authenticate

Authenticate

MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

输入参数token

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分