Connector guide2-minute read9 MCP toolsEN · DE · IT

如何将 YouTube Data API 连接到 ChatGPT — 通过 MCP

Read YouTube data — videos, channels, playlists, search, comments — and (with OAuth) manage your own uploads. 9 tools, API key + optional OAuth Bearer.

HCBy HelpCode teamUpdated 2 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

YouTube Data API

MCP connector

YouTube Data API

Read YouTube data — videos, channels, playlists, search, comments — and (with OAuth) manage your own uploads. 9 tools, API key + optional OAuth Bearer.

Tools

9

Region

INTL

Category

social

Authentication

Query Param Auth

Required env vars

YOUTUBE_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the YouTube Data API in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Read YouTube data — videos, channels, playlists, search, comments — and (with OAuth) manage your own uploads. 9 tools, API key + optional OAuth Bearer.

试试这样问

YouTube Data API 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

YouTube Data API · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com 登录、点击 Connectors → YouTube Data API、粘贴凭证、生成 MCP API key — 完成。无 Docker、无 git clone、无本地服务器。

YouTube Data API + ChatGPT

Read YouTube data — videos, channels, playlists, search, comments — and (with OAuth) manage your own uploads. 9 tools, API key + optional OAuth Bearer.

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

YOUTUBE_API_KEY

步骤 1 — 获取凭证

google.com/youtube/v3).

Setup:

  1. Create / pick a Google Cloud project at https://console.cloud.google.com.
  2. APIs & Services → Library → enable YouTube Data API v3.
  3. Credentials → Create credentials → API key. (For write operations, also do OAuth2 client + get a Bearer token with youtube.upload/youtube scopes — out of scope here.)
  4. Set YOUTUBE_API_KEY to the API key.

Authentication: query-string ?key=.... Read operations don't need OAuth.

…(continued in the in-app connector instructions)

步骤 2 — 安装 adapter

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

步骤 3 — 在 ChatGPT 中添加连接器

ChatGPT 通过 Connectors 功能 (Plus / Pro / Team / Enterprise 套餐) 支持 MCP 服务器。免费套餐不支持自定义连接器。

  1. 打开 ChatGPT → Settings → Connectors (或点击 composer 中的 🔧 图标 → Manage connectors)。
  2. 点击 "Add custom connector"
  3. 填入:
    • Name: YouTube Data API
    • MCP server URL: https://cloud.anythingmcp.com/mcp
    • Authentication: Bearer token → 粘贴 MCP API key
  4. 点击 Connect

可用工具

ToolWhat it does
youtube_searchSearch videos / channels / playlists
youtube_get_videosFetch video details by ID(s)
youtube_get_videos_chartGet videos from a chart (currently only 'mostPopular')
youtube_get_channelsFetch channel details by ID, handle (@username), forUsername (legacy), or 'mine' (requires OAuth)
youtube_list_playlistsList playlists, filtered by channelId or 'mine' (OAuth)
youtube_list_playlist_itemsList items in a playlist (videos in playlist)
youtube_list_video_commentsList top-level comments on a video
youtube_list_categoriesList video categories for a region
youtube_get_captionsList caption tracks available for a video

FAQ

ChatGPT 免费套餐能用自定义 MCP Connectors 吗? 不能 — 需要 Plus、Pro、Team 或 Enterprise。

下一步

这份指南对你有帮助吗?

Ready to ship

Your YouTube agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

相关指南