PA

pauling-ai/youtube-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

35 stars 32 forks 质量 80 趋势 9MIT

为YouTube数据API v3、分析API和报告API提供全面的MCP服务器。40个工具,用于频道分析、视频发布、文字稿、观众洞察、SEO发现、评论和批量......

概览

一个全面的模型上下文协议服务器,支持YouTube数据API v3、分析API和报告API。赋予AI助手对您的YouTube频道的全面访问权限——包括分析、视频管理、评论等功能。 涵盖内容:- 频道与视频数据 - YouTube 分析(表现、观众、留存、收入)- 视频发布与播放列表管理 - 文字稿提取 - YouTube SEO(搜索建议、趋势)- 评论 - 批量报告 现有的YouTube多重服务器专注于文字稿抓取或基础搜索。

概述(AI 翻译)

一个全面的模型上下文协议服务器,支持YouTube数据API v3、分析API和报告API。赋予AI助手对您的YouTube频道的全面访问权限——包括分析、视频管理、评论等功能。

40个工具 覆盖:

  • 频道和视频数据
  • YouTube 分析(表现、观众、留存、收入)
  • 视频发布与播放列表管理
  • 转录本提取
  • YouTube SEO(搜索建议、热门趋势)
  • 评论
  • 批量报告

为什么是这家服务器?

现有的 YouTube MCP 服务器专注于文字稿抓取或基础搜索。该服务器覆盖三个 YouTube API,是唯一提供以下功能的开源 MCP 服务器:

  • YouTube Analytics API — 频道表现、热门视频/短视频、观众留存曲线、流量来源、人口统计、收入、周数分析
  • YouTube 报告 API — 安排并下载批量 CSV 报告
  • 完整数据API覆盖 — 不仅阅读,还能上传视频、管理播放列表、发布评论、设置缩略图
  • YouTube SEO工具 — 自动补全建议、热门视频、分类发现

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

YouTube MCP Server

A comprehensive Model Context Protocol server for the YouTube Data API v3, Analytics API, and Reporting API. Gives AI assistants full access to your YouTube channel — analytics, video management, comments, and more.

40 tools covering:

  • Channel & video data
  • YouTube Analytics (performance, audience, retention, revenue)
  • Video publishing & playlist management
  • Transcript extraction
  • YouTube SEO (search suggestions, trending)
  • Comments
  • Bulk reporting

Why This Server?

Existing YouTube MCP servers focus narrowly on transcript scraping or basic search. This server covers three YouTube APIs and is the only open-source MCP server that provides:

  • YouTube Analytics API — channel performance, top videos/Shorts, audience retention curves, traffic sources, demographics, revenue, day-of-week analysis
  • YouTube Reporting API — schedule and download bulk CSV reports
  • Full Data API coverage — not just read, but also upload videos, manage playlists, post comments, set thumbnails
  • YouTube SEO tools — autocomplete suggestions, trending videos, category discovery
  • Dual transcript strategy — official captions API for your own videos, youtube-transcript-api fallback for any public video
  • Quota tracking — client-side tracking with hard-fail protection so you don’t silently exhaust your daily quota
Feature This server Others
Analytics API (watch time, retention, CTR) Yes No
Reporting API (bulk CSV exports) Yes No
Video upload & management Yes Rare
Playlist management Yes Rare
Comments (read + write) Yes No
SEO / trending / suggestions Yes No
Transcript extraction Yes Yes
Quota tracking Yes No
Total tools 40 1-5

Prerequisites

  • Python 3.11+
  • A Google Cloud project with YouTube APIs enabled
  • OAuth 2.0 credentials

Google Cloud Setup

1. Create a Google Cloud Project

  1. Go to Google Cloud Console
  2. Create a new project (or use an existing one)

2. Enable APIs

Enable all three APIs in APIs & Services > Library:

  • YouTube Data API v3
  • YouTube Analytics API
  • YouTube Reporting API
  1. Go to APIs & Services > OAuth consent screen
  2. Set User Type to External
  3. Fill in the app name and required fields
  4. Add the Google account that owns your YouTube channel as a test user

Important: You must sign in with the Google account that owns the YouTube channel, not a manager. Only the owner account can access Analytics data.

4. Create OAuth Credentials

  1. Go to APIs & Services > Credentials
  2. Click Create Credentials > OAuth client ID
  3. Application type: Desktop app
  4. Download the JSON file
  5. Save it as ~/.youtube-mcp/client_secret.json
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "youtube": { "command": "youtube-studio-mcp" } } }