
An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

A Model Context Protocol server that uses the YouTube Data API and a Python transcript package to let AI language models search videos, analyze channels and playlists, fetch transcripts, and view trends.
YouTube MCP Server is cataloged as an MCP server attributed to space-cadet. A Model Context Protocol server that uses the YouTube Data API and a Python transcript package to let AI language models search videos, analyze channels and playlists, fetch transcripts, and view trends. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for YouTube MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
OAuth is only required to access private YouTube playlists; public content works without authentication.
Transcript functionality uses the youtube-transcript-api Python package, so Python 3.7 or higher and that package must be installed.
Empty transcript results are normal for videos that do not have transcripts available.
README.md · 899cf9703936 · 采集于 2026-11-13 13:52:03 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Last Updated: 2025-07-05
A Model Context Protocol (MCP) server implementation utilizing the YouTube Data API. It allows AI language models to interact with YouTube content through a standardized interface.
✅ YouTube Transcript Support: This server includes full transcript/caption functionality using the youtube-transcript-api Python package. Simply install Python dependencies and optionally configure the Python path - transcripts work seamlessly for videos with available captions.
youtube-transcript-api Python packageNote: OAuth is only required if you want to access your private YouTube playlists. Public content works without authentication.
Ensure OAuth is configured (see Prerequisites section above)
Authenticate with Google:
For npx users:
npx yt-mcp-auth auth
For local development:
npm run auth
Handle the "Google hasn't verified this app" warning:
Complete the OAuth flow:
Verify authentication:
For npx users:
npx yt-mcp-auth status
For local development:
npm run auth:status
Check status:
# npx users
npx yt-mcp-auth status
# Local development
npm run auth:status
Revoke authentication:
# npx users
npx yt-mcp-auth revoke
# Local development
npm run auth:revoke
Once authenticated, you can access your private playlists using the getMyPlaylists tool.
The server provides the following MCP tools:
| Tool Name | Description | Required Parameters |
|---|---|---|
getVideoDetails | Get detailed information about multiple YouTube videos including metadata, statistics, and content details | videoIds (array) |
searchVideos | Search for videos based on a query string | query, maxResults (optional) |
getTranscripts | Retrieve transcripts for multiple videos | videoIds (array), lang (optional) |
getRelatedVideos | Get videos related to a specific video based on YouTube's recommendation algorithm | videoId, maxResults (optional) |
getChannelStatistics | Retrieve detailed metrics for multiple channels including subscriber count, view count, and video count | channelIds (array) |
getChannelTopVideos | Get the most viewed videos from a specific channel | channelId, maxResults (optional) |
getVideoEngagementRatio | Calculate engagement metrics for multiple videos (views, likes, comments, and engagement ratio) | videoIds (array) |
getTrendingVideos | Get currently popular videos by region and category | regionCode (optional), categoryId (optional), maxResults (optional) |
compareVideos | Compare statistics across multiple videos | videoIds (array) |
getPlaylistDetails | Get detailed information about a specific YouTube playlist | playlistId |
getPlaylistVideos | Retrieve all videos contained in a specific playlist | playlistId, maxResults (optional) |
searchPublicPlaylists | Search for public playlists based on a query string | query, maxResults (optional), channelId (optional) |
getChannelPlaylists | Get all public playlists from a specific channel | channelId, maxResults (optional) |
getMyPlaylists | Get your own playlists (including private ones) | maxResults (optional) |
checkOAuthStatus | Check if OAuth authentication is active | None |
No installation required! Use directly with Claude Desktop:
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "yt-mcp"],
"env": {
"YOUTUBE_API_KEY": "YOUR_API_KEY_HERE",
"YOUTUBE_TRANSCRIPT_LANG": "en"
}
}
}
}
git clone https://github.com/space-cadet/yt-mcp.git
cd yt-mcp
npm install
npm run build
✅ YouTube transcript functionality is fully supported and working!
The transcript feature uses the youtube-transcript-api Python package to reliably fetch transcripts from any video with available captions.
📋 Setup Steps:
Install Python (if not already installed):
python --version or python3 --versionInstall the Python transcript package:
pip install youtube-transcript-api
Or if you use pip3:
pip3 install youtube-transcript-api
Configure Python path (if needed):
python3PYTHON_PATH in your environment to point to your Python executable/Users/username/miniconda3/bin/python/opt/homebrew/bin/python3C:\Python39\python.exe (Windows)🎯 That's it! Once Python and the package are installed, transcript functionality works immediately for any video with available captions.
Step-by-step Google Cloud Console setup:
Create/Select a Project:
Enable YouTube Data API v3:
Create API Key:
Only needed if you want to access private playlists:
http://localhost:3000/oauth2callbackAdd environment variables directly to your Claude Desktop MCP configuration:
Basic configuration (public content + transcripts):
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "yt-mcp"],
"env": {
"YOUTUBE_API_KEY": "YOUR_API_KEY_HERE",
"YOUTUBE_TRANSCRIPT_LANG": "en"
}
}
}
}
Note: This configuration includes full transcript functionality! Just ensure you have Python and youtube-transcript-api installed.
Configuration with custom Python path (for conda/virtual environments):
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "yt-mcp"],
"env": {
"YOUTUBE_API_KEY": "YOUR_API_KEY_HERE",
"YOUTUBE_TRANSCRIPT_LANG": "en",
"PYTHON_PATH": "/path/to/your/python"
}
}
}
}
Note: Most users don't need PYTHON_PATH - only set this if you're using conda, virtual environments, or custom Python installations.
Full configuration (with OAuth and custom Python path):
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "yt-mcp"],
"env": {
"YOUTUBE_API_KEY": "YOUR_API_KEY_HERE",
"YOUTUBE_TRANSCRIPT_LANG": "en",
"PYTHON_PATH": "/path/to/your/python",
"GOOGLE_OAUTH_CLIENT_ID": "YOUR_OAUTH_CLIENT_ID",
"GOOGLE_OAUTH_CLIENT_SECRET": "YOUR_OAUTH_CLIENT_SECRET",
"OAUTH_REDIRECT_URI": "http://localhost:3000/oauth2callback"
}
}
}
}
Create a .env file in the project root:
# Required
YOUTUBE_API_KEY=your_youtube_api_key_here
# Optional
YOUTUBE_TRANSCRIPT_LANG=en
PYTHON_PATH=/path/to/your/python
# OAuth (for private playlists)
GOOGLE_OAUTH_CLIENT_ID=your_oauth_client_id
GOOGLE_OAUTH_CLIENT_SECRET=your_oauth_client_secret
OAUTH_REDIRECT_URI=http://localhost:3000/oauth2callback
Local development MCP configuration:
{
"mcpServers": {
"youtube": {
"command": "node",
"args": ["/path/to/yt-mcp/dist/index.js"]
}
}
}
"Error: YOUTUBE_API_KEY environment variable is not set"
"Google hasn't verified this app" warning during OAuth
"OAuth authentication required" error
npx yt-mcp-auth auth (or npm run auth for local)"invalid_token" error during auth revocation
🐍 Transcript functionality troubleshooting
✅ Good news: Transcript functionality is fully working and battle-tested! Most issues are simple setup problems.
"ModuleNotFoundError: No module named 'youtube_transcript_api'":
pip install youtube-transcript-apipython -c "import youtube_transcript_api; print('Package installed successfully!')""Failed to start Python process" or Python not found:
PYTHON_PATH environment variable to point to your Python executablewhich python3 (macOS/Linux) or where python (Windows)"PYTHON_PATH": "/path/to/your/python""/usr/bin/python3" (system Python)"/Users/username/miniconda3/bin/python" (conda)"C:\\Python39\\python.exe" (Windows)Empty transcript results:
Transcript language issues:
YOUTUBE_TRANSCRIPT_LANG to your preferred language (e.g., "en", "es", "fr")MCP server not responding
npm run buildIf you encounter issues:
# Clone and setup
git clone https://github.com/space-cadet/yt-mcp.git
cd yt-mcp
npm install
# Create .env file with your credentials
cp .env.example .env
# Edit .env with your API keys
# Development commands
npm run dev # Run in development mode with auto-reload
npm run build # Build TypeScript to JavaScript
npm run start # Run built version
npm test # Run tests
npm run lint # Lint code
src/
├── index.ts # Main MCP server
├── auth-cli.ts # OAuth authentication CLI
├── functions/
│ ├── videos.ts # Video-related API functions
│ └── playlists.ts # Playlist-related API functions
└── utils/
├── oauth.ts # OAuth token management
├── oauth-routes.ts # OAuth callback server
└── cli-auth.ts # CLI authentication flow
tokens.json - keep this file secureThis project is forked from youtube-data-mcp-server by icraft2170. Special thanks to the original author for creating the foundation of this YouTube MCP server implementation.
This project is licensed under the MIT License. See the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for YouTube MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/yt-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Runs a free Answer Engine Optimization and AI visibility report for a domain and returns a shareable report plus a structured summary.

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.