loading…
Search for a command to run...
loading…
Enables AI assistants to search videos, channels, and playlists, retrieve video metadata, transcripts, and comments via the YouTube Data API v3.
Enables AI assistants to search videos, channels, and playlists, retrieve video metadata, transcripts, and comments via the YouTube Data API v3.
youtube-connector-mcp is a YouTube MCP Server / Connector that allows AI assistants like Claude, Cursor, Cline, Windsurf, Continue.dev, Grapes AI to interact with the YouTube Data API v3 via the Model Context Protocol (MCP).
🌐 Project Website: https://youtube-connector-mcp-website.vercel.app/
📦 PyPI Package: https://pypi.org/project/youtube-connector-mcp/
# 1. Get your YouTube API Key from Google Cloud Console
# https://console.cloud.google.com/apis/credentials
# 2. Set your API key as environment variable
export YOUTUBE_API_KEY="your_api_key_here"
# 3. Install pipx first (if not installed)
brew install pipx # macOS
# or: apt install pipx # Ubuntu/Debian
# 4. Install the package
pipx install youtube-connector-mcp
# 5. Add the MCP server
claude mcp add youtube-connector-mcp youtube-connector-mcp -s user -e YOUTUBE_API_KEY="${YOUTUBE_API_KEY}"
# 6. Restart Claude Code and start using!
| Requirement | How to Get |
|---|---|
| Python 3.10+ | Download Python or brew install python3 |
| YouTube API Key | Get it free from Google Cloud Console |
| MCP Client | Any MCP-compatible AI: Claude, Cursor, Cline, Windsurf, Continue.dev, etc. |
# Install pipx first (if not installed)
brew install pipx # macOS
# or: apt install pipx # Ubuntu/Debian
# Then install the package
pipx install youtube-connector-mcp
# Or with pip in a virtual environment
python3 -m venv .venv
source .venv/bin/activate
pip install youtube-connector-mcp
git clone https://github.com/ShellyDeng08/youtube-connector-mcp.git
cd youtube-connector-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
youtube-connector-mcp --help
claude mcp list # Check if server is registered
| Tool | Platform | Config |
|---|---|---|
| Claude Code | CLI | claude mcp add |
| Claude Desktop | macOS/Windows | claude_desktop_config.json |
| Cursor IDE | Desktop | Settings UI |
| Cline | VS Code Extension | .cline/config.yaml |
Note: Any MCP-compatible AI tool works! Just use the standard JSON config format below.
claude mcp add (Claude Code - Easiest)# Install for current project only
claude mcp add youtube-connector-mcp youtube-connector-mcp -s local -e YOUTUBE_API_KEY="${YOUTUBE_API_KEY}"
# Install for all your projects (recommended)
claude mcp add youtube-connector-mcp youtube-connector-mcp -s user -e YOUTUBE_API_KEY="${YOUTUBE_API_KEY}"
# Install to project's .mcp.json
claude mcp add youtube-connector-mcp youtube-connector-mcp -s project -e YOUTUBE_API_KEY="${YOUTUBE_API_KEY}"
Don't have an API key? See Creating a YouTube API Key below - it's free and takes just a few minutes.
适用于任何 MCP 兼容的 AI 工具
{
"mcpServers": {
"youtube-connector-mcp": {
"command": "youtube-connector-mcp",
"env": {
"YOUTUBE_API_KEY": "your_api_key_here"
}
}
}
}
各工具配置文件位置:
| Tool | Config File Path |
|---|---|
| Claude Code | ~/.claude/mcp_config.json |
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) |
| Cursor IDE | Settings → MCP Servers (UI) |
| Cline (VS Code) | .cline/config.yaml |
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"youtube-connector-mcp": {
"command": "youtube-connector-mcp",
"env": {
"YOUTUBE_API_KEY": "your_api_key_here"
}
}
}
}
Add to your .cline/config.yaml:
mcpServers:
youtube-connector-mcp:
command: youtube-connector-mcp
env:
YOUTUBE_API_KEY: "your_api_key_here"
Set as Environment Variable (Recommended):
# Linux/Mac - Add to ~/.bashrc, ~/.zshrc, or ~/.profile
export YOUTUBE_API_KEY="your_api_key_here"
source ~/.zshrc
# Windows PowerShell - Add to $PROFILE
$env:YOUTUBE_API_KEY="your_api_key_here"
# Or set permanently
[System.Environment]::SetEnvironmentVariable('YOUTUBE_API_KEY', 'your_api_key_here', 'User')
# Windows CMD
setx YOUTUBE_API_KEY "your_api_key_here"
Or Put Directly in MCP Config:
{
"mcpServers": {
"youtube-connector-mcp": {
"command": "youtube-connector-mcp",
"env": {
"YOUTUBE_API_KEY": "AIzaSyC-Your-Actual-API-Key-Here"
}
}
}
}
Security Note: Using environment variables is safer as it keeps your key out of version control.
| Variable | Required | Default | Description |
|---|---|---|---|
YOUTUBE_API_KEY |
Yes | - | YouTube Data API v3 key |
YOUTUBE_RATE_LIMIT |
No | 100 | Max requests per second |
| Tool | Description |
|---|---|
youtube_search |
Search videos, channels, playlists with filters (duration, date, type, order) |
youtube_get_video |
Get detailed video metadata, statistics, thumbnails, and content details |
youtube_get_channel |
Get channel info, subscriber count, upload playlists, statistics |
youtube_get_transcript |
Retrieve actual video transcript text with timestamps |
youtube_get_comments |
Fetch video comments with pagination support |
youtube_get_playlist |
Get playlist details and complete video list |
youtube_list_playlists |
List all playlists for a specific channel |
| Category | Example Prompts |
|---|---|
| Search | "Search for Python tutorials" / "Find recent AI videos" / "Channels about cooking with 100k+ subscribers" |
| Video | "Get details for this video: URL" / "What's the view count?" / "Get the transcript" |
| Channel | "How many subscribers does @MKBHD have?" / "Recent uploads from this channel" / "Channel statistics" |
| Playlist | "List all playlists for this channel" / "Get videos in this playlist" |
Error: No MCP servers configured
Solutions:
~/.claude/mcp_config.json existsclaude mcp list to see registered serversError: command not found: python
Solutions:
python3 instead of pythonwhich python3 (Mac/Linux) or where python (Windows)Error: ModuleNotFoundError: No module named 'mcp'
Solutions:
pipx reinstall youtube-connector-mcpsource .venv/bin/activateError: 403 Forbidden - quota exceeded
Solutions:
Error: "No transcript available" or "Transcripts are disabled"
Solutions:
Error: "YouTube is blocking requests from your IP"
Solutions: See youtube-transcript-api documentation for proxy options.
git clone https://github.com/ShellyDeng08/youtube-connector-mcp.git
cd youtube-connector-mcp
poetry install --with dev
poetry run pytest
# Bump version (PyPI doesn't allow re-uploading the same version)
poetry version patch # 0.3.0 → 0.3.1
poetry version minor # 0.3.0 → 0.4.0
poetry version major # 0.3.0 → 1.0.0
# Build and publish
poetry build
poetry publish
MIT License - see LICENSE for details.
YouTube MCP Server, YouTube MCP Connector, MCP YouTube API, Claude MCP YouTube, Cursor MCP YouTube, AI YouTube API, Model Context Protocol YouTube
Выполни в терминале:
claude mcp add youtube-connector-mcp -- npx Transcripts, channel stats, search
автор: YouTubeAI image generation using various models.
автор: modelcontextprotocolUnified GPU inference API with 30 AI services (LLM, image gen, video, TTS, whisper, embeddings, reranking, OCR) as MCP tools. Pay-per-use via x402 USDC or API k
автор: gpu-bridgeA powerful image generation tool using Google's Imagen 3.0 API through MCP. Generate high-quality images from text prompts with advanced photography, artistic,
автор: hamflxНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории media