How to connect YouTube to AI agents
checked by the operator
TL;DR
| Verdict | Official, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review |
|---|---|
| Method | Official API (REST) |
| Pricing | Free (quota-based. Per project by default: 100 searches/day, 100 uploads/day, and 10,000 units/day across all other methods. Additional quota is by application; there is no paid plan) |
The official YouTube Data API v3 is available: an API key reads public data, and OAuth 2.0 covers uploads and playlist management. Google offers no official MCP server, so MCP use means an unofficial server built on the Data API, or going through an iPaaS.
| Authentication | API key (for public data) / OAuth 2.0 (for your own data and writes) |
|---|---|
| Checked by the operator | 2026.12.05 |
| How the operator checked | Checked against official documentation |
Official MCP and AI guides
- Official MCP serverNo
Google offers managed MCP servers for Google Cloud products such as BigQuery and Maps, but YouTube is not on the supported-products list. Every MCP server under YouTube's name is third-party.
- Official guide for AI agentsNo
We confirmed that developers.google.com/youtube/llms.txt does not exist (404 as of 2026-12-05), and found no dedicated guide for AI agents. The developer documentation itself is collected at developers.google.com/youtube.
Connectors
Official connectors from AI services
The Gemini app has an official integration: you can search public videos and pass a video link to check its content and key points. Read-only; no uploads or comment posting.
The Power Platform YouTube connector (by Microsoft, Standard), usable in Copilot Studio. Triggers only: it detects videos matching a search, new videos on a channel, and your own uploads. It has no actions to fetch video data.
Not supported: Claude, ChatGPT
Third-party integration services
A YouTube app with 5 triggers and 7 actions (13 tools via Zapier MCP). Search videos, get channel info and reports, and also upload videos, add to playlists and update thumbnails.
Make maintains a YouTube app that automates uploads, playlist management, comment replies and thumbnail updates.
An official node covering channel retrieval and updates, banner uploads, video uploads and playlist operations. Available self-hosted or in the cloud.
Microsoft's YouTube connector (Standard). Three triggers only (new videos matching a search, new videos on a channel, your own uploads); no actions to fetch or write data.
A YouTube service with triggers for new videos, likes, comments and subscribers, plus an action to upload a video from a URL. YouTube's official help also documents using it with monetization features (Super Chat, channel memberships).
A YouTube Data API app (19 actions, 10 triggers) and a YouTube Analytics app. Create and add to playlists, post comments, fetch channel statistics, and more. Tools can also be called as MCP tools through Pipedream Connect.
A YouTube toolkit with 67 tools and 4 triggers: search, channel statistics, uploads, playlist management and comment moderation, callable from agents through MCP (Tool Router).
A YouTube (YouTube Data API) integration: new videos on a specified channel and comments posted on videos can trigger notifications and recording into other tools.
Unofficial MCP servers
Published by someone other than the provider. The provider does not guarantee how they work or how safe they are.
ZubeidHendricks/youtube-mcp-server
An unofficial MCP server built on the YouTube Data API v3 (about 550 stars), with 10 tools for searching and retrieving videos, channels and playlists. Runs locally with your own API key. The exception is the transcript tool (transcripts_getTranscript), which needs no API key and fetches captions without using the official API.
kimtaeyoon83/mcp-server-youtube-transcript
An unofficial MCP server specialized in fetching transcripts (about 610 stars, distributed on npm). Its main tool is get_transcript. It does not use the official API and fetches caption data directly; its README notes that cloud IP addresses can be blocked with HTTP 429.
Security assessment
For each available connection method: who provides it, the permissions it requires, how the terms treat it, and the data path. Items we could not confirm are marked Unverified.
- Official connectorGeminiThe service provider
Permissions required Read only Searches public videos and reads their content. Cannot reach private videos or your channel's management data
Terms of service No issues An in-app integration by Google, the service provider itself, operating within normal viewing
Source: relevant section of the terms
Data path Processed inside the Gemini app (Google's servers) - Official connectorMicrosoft CopilotOfficial from the integration service
Permissions required Read only Connects with a Google account and monitors changes to public video metadata. No write operations
Terms of service No issues Provided by Microsoft as an official connector and reads through the YouTube API
Source: relevant section of the terms
Data path Goes through Microsoft's Power Platform servers - Third-party integrationZapierOfficial from the integration service
Permissions required Read and write The OAuth scopes it requests are broad: youtube (channel management), youtube.upload, yt-analytics.readonly, yt-analytics-monetary.readonly, youtubepartner, youtube.force-ssl and youtube.readonly are requested together
Terms of service No issues A regular integration using the official API over OAuth
Source: relevant section of the terms
Data path Goes through Zapier's servers; credentials are held by Zapier - Third-party integrationMakeOfficial from the integration service
Permissions required Read and write OAuth connection with a Google account. You choose which operations each module uses, but the authorization itself covers channel operations
Terms of service No issues A regular integration using the official API over OAuth
Source: relevant section of the terms
Data path Goes through Make's servers - Third-party integrationn8nOfficial from the integration service
Permissions required Read and write Uses OAuth credentials from your own Google Cloud project. Permissions depend on the scopes you grant
Terms of service No issues A regular integration using the official API over OAuth
Source: relevant section of the terms
Data path With self-hosting, everything stays on your own server. Credentials are stored in n8n - Third-party integrationPower AutomateOfficial from the integration service
Permissions required Read only Connects with a Google account and monitors new-video metadata
Terms of service No issues Provided by Microsoft as an official connector
Source: relevant section of the terms
Data path Goes through Microsoft's servers - Third-party integrationIFTTTOfficial from the integration service
Permissions required Read and write OAuth connection with a Google account. Connecting asks for permission to manage your YouTube account
Terms of service No issues An integration using the official API, also documented in YouTube's official help
Source: relevant section of the terms
Data path Goes through IFTTT's servers - Third-party integrationPipedreamOfficial from the integration service
Permissions required Read and write OAuth connection with a Google account. You choose the actions, but authorization is per account
Terms of service No issues A regular integration using the official API over OAuth
Source: relevant section of the terms
Data path Goes through Pipedream's servers - Third-party integrationComposioOfficial from the integration service
Permissions required Read and write OAuth 2.0. You can connect with Composio's managed OAuth app and choose which tools each session gets
Terms of service No issues A regular integration using the official API over OAuth
Source: relevant section of the terms
Data path Goes through Composio's servers; credentials are held by Composio - Third-party integrationYoomOfficial from the integration service
Permissions required Read and write OAuth connection with a Google account. Focused on monitoring new videos and comments
Terms of service No issues A regular integration using the official API over OAuth
Source: relevant section of the terms
Data path Goes through Yoom's servers - Unofficial MCPZubeidHendricks/youtube-mcp-serverThird party (unofficial)
Permissions required Read only Uses your own YouTube Data API key. Public data only; permissions are per Google Cloud project
Terms of service Conditional The video and channel tools stay within the official API, and quota is charged to your own project. The transcript tool, however, fetches captions by a method the official API does not offer (keyless direct retrieval), which may conflict with the terms' ban on automated access
Source: relevant section of the terms
Data path Runs locally and connects directly to the YouTube Data API. Retrieved content is passed to the AI service using the MCP server - Unofficial MCPkimtaeyoon83/mcp-server-youtube-transcriptThird party (unofficial)
Permissions required Read only No credentials required. Fetches publicly available captions, including for other people's videos
Terms of service Issues The Terms of Service (Permissions and Restrictions) prohibit accessing the service using automated means such as robots, botnets or scrapers, except for public search engines and similar cases. Fetching captions outside the official API falls under this clause
Source: relevant section of the terms
Data path Runs locally and accesses YouTube directly. Retrieved transcripts are passed to the AI service using the MCP server
Data you can fetch within the terms of service
Data such as videos, channels and comments is available through the official APIs (Data API v3, Analytics API, Reporting API). Caption files for other people's videos cannot be downloaded through the official API (captions.download requires permission to edit the video).
- ScrapingProhibited
The Terms of Service (Permissions and Restrictions, item 3) prohibit accessing the service using automated means such as robots, botnets or scrapers, except for public search engines following robots.txt or with YouTube's prior written permission. Use of the APIs is separately governed by the YouTube API Services Terms of Service.
- Fetching with the agent's own browserConditional
There is an official API or MCP server, so we do not recommend having an agent sign in and operate the site in a browser on your behalf.
For data the official route does not cover:
Automation under the terms Prohibited Bot detection / CAPTCHA Automated access can hit a bot check ("Sign in to confirm you're not a bot", HTTP 429). In hands-on testing with yt-dlp, the default client was blocked; changing the client specification sometimes got through, but behavior is unstable (tested 2026-11-12; search and metadata retrieval re-confirmed on 2026-12-05). What the official API cannot provide is caption files for other people's videos; unofficial tools such as yt-dlp fill that gap. However, the Terms of Service prohibit accessing the service through automated means, so this use conflicts with the terms. In hands-on testing we confirmed that yt-dlp can search, fetch metadata and retrieve captions without an API key (re-confirmed 2026-12-05). No account cookies are used.
Usage
How to connect
- Create a project in the Google Cloud Console and enable the YouTube Data API v3
- For public data only, issue an API key under Credentials, and restrict it to the YouTube Data API v3
- For operating your own channel or uploading, create an OAuth client ID and authorize with the scopes you need (youtube.readonly if read-only is enough)
- From the agent, call the REST endpoints (https://www.googleapis.com/youtube/v3/...) directly. To use it in MCP form, insert an unofficial server built on the Data API, or an iPaaS such as Composio or Zapier
- Design around quota use: searches are capped at 100 per day, and most other reads cost 1 unit out of 10,000 per day
Setup examples
Paste these as they are. Replace the API key, domain and similar values with your own.
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "zubeid-youtube-mcp-server"],
"env": {
"YOUTUBE_API_KEY": "your-api-key"
}
}
}
}公式 MCP がないため、公式 API を使う非公式サーバーの設定例。YOUTUBE_API_KEY には Google Cloud で発行した YouTube Data API v3 のキーを入れる。動画・チャンネル系は公式 API の範囲だが、字幕取得ツールだけは公式 API を使わない取得方法なので注意(規約の評価は字幕ツールの security を参照)。
Official page checked: https://github.com/ZubeidHendricks/youtube-mcp-server
{
"mcpServers": {
"youtube-transcript": {
"command": "npx",
"args": ["-y", "@kimtaeyoon83/mcp-server-youtube-transcript"]
}
}
}公式 API では他人の動画の字幕を取れないため、字幕専用の非公式サーバーの設定例。APIキーなしで動くが、取得方式は利用規約の自動アクセス禁止に触れる。
Official page checked: https://github.com/kimtaeyoon83/mcp-server-youtube-transcript
claude mcp add youtube-transcript -- npx -y @kimtaeyoon83/mcp-server-youtube-transcript字幕専用の非公式サーバー(@kimtaeyoon83/mcp-server-youtube-transcript)を Claude Code に登録する形。起動コマンドとパッケージ名は提供元の README のとおり。取得方式は利用規約の自動アクセス禁止に触れる。
Official page checked: https://github.com/kimtaeyoon83/mcp-server-youtube-transcript
Limiting the features
API の制限: YouTube Data API v3 のみ
アプリケーションの制限: なし(サーバー側で使う場合は IP アドレス制限を推奨)APIキーは Google Cloud Console の「認証情報」で YouTube Data API v3 のみに制限する。キーが漏れても他の Google API には使えず、クォータの不正消費もこの API の範囲に収まる。
Official page checked: https://developers.google.com/youtube/v3/getting-started
scope=https://www.googleapis.com/auth/youtube.readonly自分のチャンネルの読み取りだけなら、認可スコープは youtube.readonly に絞る。youtube(フルアクセス)や youtube.upload は、アップロードや管理操作が本当に必要な場合だけ追加する。
Official page checked: https://developers.google.com/youtube/v3/guides/authentication
Researching public videos
Search for "MCP server" and show the 10 most-viewed videos with title, channel and view count
Uses search.list and videos.list from the Data API. Search has its own bucket of 100 calls per day, so this does not suit repeated searching.
Checking new comments on your own channel
Show the newest comments on the latest video on my channel
Authorize with OAuth 2.0 (youtube.readonly) and fetch with commentThreads.list. Replies and moderation need write scopes.
Understanding a video through its captions
Get the captions of this video and summarize its structure and key points
The official API cannot download captions for other people's videos. Unofficial transcript MCP servers and yt-dlp are used for this, but they conflict with the terms' ban on automated access. For videos you own, captions.download works.
Pitfalls and tips
Pitfalls
- The official API cannot download captions for other people's videos. captions.download requires permission to edit the video (ownership). Unofficial tools fill the gap but conflict with the terms' ban on automated access
- Quota is split into buckets: search and uploads get 100 calls per day each, everything else shares 10,000 units per day. Most write methods cost a higher 50 units (with exceptions such as captions.insert at 400). Extra quota is by application only and cannot be purchased
- The rule that uploads from unaudited OAuth projects were restricted to private was removed on 2026-11-02 (official revision history). Older guides may still assume this restriction
- Zapier's YouTube integration requests broad scopes (channel management, monetization data, even youtubepartner). Even read-only use requires granting them together
- Unofficial tools such as yt-dlp can fetch search results, metadata and captions without an API key, but they conflict with the terms' ban on automated access. They can also be blocked by bot checks and can break without notice when YouTube changes its internals (tested 2026-11-12: the default client was rejected by a bot check, and specifying the android client got through)
- The YouTube connectors in Power Automate and Copilot Studio are triggers only, with no actions to fetch videos or statistics
Tips
- For reading public data only, the official API is the right fit (free, just an API key, self-contained within quota). Add an unofficial server only if you specifically need the MCP form
- For operating your own channel (uploads, comment handling), going through an iPaaS such as Zapier, Make or Composio is the better fit (they manage OAuth and suit fixed automations). Note that Zapier requests broad scopes
- Caption retrieval is an area with no official route. Unofficial MCP servers and yt-dlp work but carry terms risk, so for business use, limit targets to your own videos or get the rights holder's permission first
- For just checking the content of a public video, the Gemini app's official integration is the easiest (no extra setup; just pass a video link)
Test environment and change history
| How it was checked | Checked against official documentation |
|---|---|
| Clients tried | Not yet tried with a real client |
| MCP server version | @kimtaeyoon83/mcp-server-youtube-transcript 0.1.1 (latest at the time of writing) https://www.npmjs.com/package/@kimtaeyoon83/mcp-server-youtube-transcript |
ドキュメント確認済み: Data API の認証・クォータ、未審査プロジェクトの非公開制限の撤廃(2026-11-02)。実機確認済み: yt-dlp 経由の検索・メタデータ取得(2026-12-05)。実機未確認: Data API 自体の接続、各 MCP サーバー、各 iPaaS の接続。tool の一覧は各サービスの公式ページと非公式 MCP の README で確認した。
Change history
- 初版
Sources
Other sources
- YouTube Data API OverviewBasis for the Data API's authentication and quota (100 searches/day, 100 uploads/day, 10,000 units/day for the rest), checked 2026.12.05
- YouTube API Services Terms of ServiceBasis for the terms that apply when using the API, checked 2026.12.05
- YouTube Terms of ServiceBasis for the ban on automated access (Permissions and Restrictions), checked 2026.12.05
- Supported products | Google Cloud MCP serversBasis for YouTube not being on Google's list of products with managed MCP servers, checked 2026.12.05
- YouTube Integrations | ZapierBasis for Zapier's YouTube tools and the OAuth scopes it requests, checked 2026.12.05
- YouTube integration | MakeBasis for Make's YouTube app, checked 2026.12.05
- YouTube integrations | n8nBasis for n8n's YouTube node, checked 2026.12.05
- YouTube - Connectors | Microsoft LearnBasis for the Power Automate / Copilot Studio YouTube connector (triggers only), checked 2026.12.05
- Use IFTTT when you monetize - YouTube HelpBasis for the IFTTT integration being documented in YouTube's official help, checked 2026.12.05
- YouTube Data API App | PipedreamBasis for Pipedream's YouTube Data app actions and triggers, checked 2026.12.05
- Youtube MCP Server | ComposioBasis for Composio's YouTube toolkit (67 tools), checked 2026.12.05
- kimtaeyoon83/mcp-server-youtube-transcriptBasis for the unofficial transcript MCP's setup example, tools and HTTP 429 note, checked 2026.12.05
- ZubeidHendricks/youtube-mcp-serverBasis for the unofficial MCP server built on the Data API, checked 2026.12.05
- @kimtaeyoon83/mcp-server-youtube-transcript | npmBasis for the latest version (0.1.1) of the unofficial transcript MCP, checked 2026.12.05
- Claude ConnectorsWhere we checked that Claude's connector directory has no official YouTube connector, checked 2026.12.05
- Gemini AppsBasis for the Gemini app integrations, including YouTube, checked 2026.12.05
- YouTube Service | IFTTTBasis for IFTTT's YouTube service triggers and actions, checked 2026.12.05
- YouTube Integration | YoomBasis for Yoom's YouTube integration app, checked 2026.12.05
- Quota Calculator | YouTube Data APIBasis for per-method quota costs (most writes cost 50 units, etc.), checked 2026.12.05
- Revision History | YouTube Data APIBasis for the private restriction on uploads from unverified projects being removed on 2026-11-02, checked 2026.12.05
- Captions: download | YouTube Data APIBasis for captions.download requiring permission to edit the video, checked 2026.12.05
- YouTube Data API AuthenticationBasis for the OAuth scopes (youtube.readonly etc.), checked 2026.12.05
