Ask your AI

Copy this and paste it into ChatGPT, Claude or another assistant to get an answer based on this site.

How do I connect YouTube to an AI agent? Please use this URL as a reference:
https://agentok.jp/en/services/youtube.md
Video (Global)

How to connect YouTube to AI agents

TL;DR

The short answer
VerdictOfficial, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review
MethodOfficial API (REST)
PricingFree (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.

AuthenticationAPI key (for public data) / OAuth 2.0 (for your own data and writes)
Checked by the operator2026.12.05
How the operator checkedChecked against official documentation

For AI agents: Markdown ・ JSON

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

  • Gemini

    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.

  • Microsoft Copilot

    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

  • Zapier

    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

    Make maintains a YouTube app that automates uploads, playlist management, comment replies and thumbnail updates.

  • n8n

    An official node covering channel retrieval and updates, banner uploads, video uploads and playlist operations. Available self-hosted or in the cloud.

  • Power Automate

    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.

  • IFTTT

    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).

  • Pipedream

    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.

  • Composio

    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).

  • Yoom

    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 requiredRead only

Searches public videos and reads their content. Cannot reach private videos or your channel's management data

Terms of serviceNo issues

An in-app integration by Google, the service provider itself, operating within normal viewing

Source: relevant section of the terms

Data pathProcessed inside the Gemini app (Google's servers)
Official connectorMicrosoft CopilotOfficial from the integration service
Permissions requiredRead only

Connects with a Google account and monitors changes to public video metadata. No write operations

Terms of serviceNo issues

Provided by Microsoft as an official connector and reads through the YouTube API

Source: relevant section of the terms

Data pathGoes through Microsoft's Power Platform servers
Third-party integrationZapierOfficial from the integration service
Permissions requiredRead 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 serviceNo issues

A regular integration using the official API over OAuth

Source: relevant section of the terms

Data pathGoes through Zapier's servers; credentials are held by Zapier
Third-party integrationMakeOfficial from the integration service
Permissions requiredRead and write

OAuth connection with a Google account. You choose which operations each module uses, but the authorization itself covers channel operations

Terms of serviceNo issues

A regular integration using the official API over OAuth

Source: relevant section of the terms

Data pathGoes through Make's servers
Third-party integrationn8nOfficial from the integration service
Permissions requiredRead and write

Uses OAuth credentials from your own Google Cloud project. Permissions depend on the scopes you grant

Terms of serviceNo issues

A regular integration using the official API over OAuth

Source: relevant section of the terms

Data pathWith self-hosting, everything stays on your own server. Credentials are stored in n8n
Third-party integrationPower AutomateOfficial from the integration service
Permissions requiredRead only

Connects with a Google account and monitors new-video metadata

Terms of serviceNo issues

Provided by Microsoft as an official connector

Source: relevant section of the terms

Data pathGoes through Microsoft's servers
Third-party integrationIFTTTOfficial from the integration service
Permissions requiredRead and write

OAuth connection with a Google account. Connecting asks for permission to manage your YouTube account

Terms of serviceNo issues

An integration using the official API, also documented in YouTube's official help

Source: relevant section of the terms

Data pathGoes through IFTTT's servers
Third-party integrationPipedreamOfficial from the integration service
Permissions requiredRead and write

OAuth connection with a Google account. You choose the actions, but authorization is per account

Terms of serviceNo issues

A regular integration using the official API over OAuth

Source: relevant section of the terms

Data pathGoes through Pipedream's servers
Third-party integrationComposioOfficial from the integration service
Permissions requiredRead and write

OAuth 2.0. You can connect with Composio's managed OAuth app and choose which tools each session gets

Terms of serviceNo issues

A regular integration using the official API over OAuth

Source: relevant section of the terms

Data pathGoes through Composio's servers; credentials are held by Composio
Third-party integrationYoomOfficial from the integration service
Permissions requiredRead and write

OAuth connection with a Google account. Focused on monitoring new videos and comments

Terms of serviceNo issues

A regular integration using the official API over OAuth

Source: relevant section of the terms

Data pathGoes through Yoom's servers
Unofficial MCPZubeidHendricks/youtube-mcp-serverThird party (unofficial)
Permissions requiredRead only

Uses your own YouTube Data API key. Public data only; permissions are per Google Cloud project

Terms of serviceConditional

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 pathRuns 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 requiredRead only

No credentials required. Fetches publicly available captions, including for other people's videos

Terms of serviceIssues

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 pathRuns 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.

Source: relevant section of the 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 termsProhibited
Bot detection / CAPTCHAAutomated 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.

Source: relevant section of the terms of service

Usage

How to connect

  1. Create a project in the Google Cloud Console and enable the YouTube Data API v3
  2. For public data only, issue an API key under Credentials, and restrict it to the YouTube Data API v3
  3. 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)
  4. 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
  5. 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.

Claude Desktop(公式 API を使う非公式 MCP)
{
  "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

Claude Desktop(字幕特化の非公式 MCP)
{
  "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 Code(字幕特化の非公式 MCP)
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 のみに制限する
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

読み取り用途では OAuth スコープを youtube.readonly に絞る
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

Instruction to the agent

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

Instruction to the agent

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

Instruction to the agent

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 checkedChecked against official documentation
Clients triedNot 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

Related articles

How to connect Spotify to AI agents

Official, individuals OK

How to connect Strava to AI agents

Business or paid only

How to connect kintone to AI agents

Official, individuals OK

How to connect Instagram to AI agents

Business or paid only