Youtube MCP Server 575050e0

MCP音视频

提供方 temiedani

音视频 stdio · 本地进程 OAuth 授权 社区 / 第三方
查看接入方式

YouTube MCP Server是一个基于模型上下文协议(MCP)的服务器,为AI模型提供与YouTube内容交互的标准化接口。该服务器提供视频搜索、内容分析、评论处理等一系列工具,支持对YouTube视频和频道信息的深度处理和分析。

一句话选型结论

按资料字段整理

Youtube MCP Server 575050e0 属于音视频类 MCP 服务器,stdio · 本地进程,OAuth 授权,有可直接复制的远程端点配置。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类音视频 传输方式stdio · 本地进程 鉴权OAuth 授权 部署方式支持远程部署
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

音视频
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

适用场景

视频分析Python内容处理AI接口

安装与配置

stdio · 本地进程 OAuth 授权
客户端在本机拉起子进程,数据不出本机
python3 --version # 应显示Python 3.11.x

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    确认你的客户端支持远程端点,并拿到服务地址。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
转写与字幕

把音视频转成文字和字幕。

音视频处理

裁剪、转码、拼接素材。

内容分发

把成品发到对应平台。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在音视频场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Youtube MCP Server 575050e0当前 未标注 stdio · 本地进程 支持远程部署 有 2026-05-17
Ableton MCP B7b69a6a 16 stdio · 本地进程 本地部署 有 2026-05-17
Mini Max MCP 8 SSE · 服务端推送 远程部署 有 2026-05-18
LocalAI 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Youtube E0eb3510 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Voicemode MCP 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

音视频
字段来自项目仓库与公开索引,中文说明由本站标注
提供方temiedani上游标注的维护方 temiedani
分类音视频本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · Python本地安装时用到的包标识与运行时
部署类型支持远程部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

14.4 KB
来自项目仓库与上游目录的原文,未做删改

YouTube MCP Server

Model Contex Protocol (MCP) server that enables AI models to interact with YouTube content through a standardized interface. This server provides a set of tools for video search, content analysis, comment processing, and more.

🌟 Features

  • 🔍 Video Search & Discovery

  • Search YouTube videos

  • Get trending videos
  • Find related content
  • Channel information

  • 📊 Content Analysis

  • Detailed video information

  • Channel statistics
  • Video transcripts
  • Comprehensive summaries

  • 💬 Social Features

  • Comment retrieval
  • Comment analysis
  • User interaction data

🚀 Quick Start

Prerequisites

1. Installing Python

macOS:```bash

Using Homebrew (recommended)

brew install python@3.11

Verify installation

python3 --version # Should show Python 3.11.x


**Linux (Ubuntu/Debian):**```bash
# Update package list
sudo apt update

# Install Python
sudo apt install python3.11 python3.11-venv

# Verify installation
python3 --version  # Should show Python 3.11.x

Windows:

  1. Download Python installer from python.org
  2. Run the installer
  3. Check "Add Python to PATH" during installation
  4. Open Command Prompt and verify:```cmd
    python --version # Should show Python 3.11.x

#### 2. Installing uv

**macOS/Linux:**```bash
# Install uv using the official installer
curl -LsSf https://astral.sh/uv/install.sh | sh

# Verify installation
uv --version

Windows (PowerShell):```powershell

Install uv using the official installer

(Invoke-WebRequest -Uri "https://astral.sh/uv/install.ps1" -UseBasicParsing).Content | pwsh -Command -

Verify installation

uv --version


**Alternative Installation Methods:**

Using pip (if you prefer):```bash
# Install uv using pip
pip install uv

# Verify installation
uv --version

3. Setting Up Google Cloud Credentials

  1. Create a Google Cloud Project:```bash
    # Go to Google Cloud Console
    https://console.cloud.google.com

# Click on "Select a Project" at the top
# Click "New Project"
# Name it (e.g., "youtube-mcp-server")
# Click "Create"
```

  1. Enable YouTube Data API:bash # In the Google Cloud Console: # 1. Go to "APIs & Services" > "Library" # 2. Search for "YouTube Data API v3" # 3. Click "Enable"

  2. Create OAuth 2.0 Credentials:bash # In the Google Cloud Console: # 1. Go to "APIs & Services" > "Credentials" # 2. Click "Create Credentials" > "OAuth client ID" # 3. Select "Desktop app" as application type # 4. Name it (e.g., "YouTube MCP Client") # 5. Click "Create"

  3. Download and Store Credentials:```bash
    # 1. After creating credentials, click "Download JSON"
    # 2. Rename the downloaded file to 'credentials.json'
    # 3. Move it to your project root:
    mv ~/Downloads/client_secret_*.json ./credentials.json

# Verify the file exists and has correct permissions
ls -l credentials.json # Should show -rw------- (readable only by you)
```

  1. First-time Authentication:```bash
    # Run the server once to authenticate
    python mcp_videos.py

# This will:
# 1. Open your browser
# 2. Ask you to sign in to Google
# 3. Grant permissions to the application
# 4. Create a token.pickle file (automatically ignored by git)
```

⚠️ Important Security Notes:

  • Never commit credentials.json or token.pickle to git
  • Keep your credentials secure and don't share them
  • If credentials are compromised:
    1. Go to Google Cloud Console
    2. Delete the compromised credentials
    3. Create new credentials
    4. Update your local credentials.json

Installation

  1. Clone the repository:```bash
    git clone https://github.com/yourusername/youtube-mcp-server.git
    cd youtube-mcp-server

2. Create and activate a virtual environment:```bash
# Create virtual environment
python -m venv .venv

# Activate virtual environment
# On macOS/Linux:
source .venv/bin/activate
# On Windows (Command Prompt):
.venv\Scripts\activate
# On Windows (PowerShell):
.venv\Scripts\Activate.ps1
  1. Install dependencies using uv:```bash

Install project in editable mode

uv pip install -e .

If you encounter any SSL errors on macOS, you might need to:

export SSL_CERT_FILE=/etc/ssl/cert.pem


4. Set up YouTube API credentials:
   - Go to Google Cloud Console
   - Create a new project
   - Enable YouTube Data API v3
   - Create credentials (OAuth 2.0 Client ID)
   - Download the credentials and save as `client_secrets.json`

### Development Setup

For development, you might want to install additional tools:```bash
# Install development dependencies
uv pip install -e ".[dev]"

# Install pre-commit hooks
pre-commit install

Configuration

  1. Create a .env file in the project root:```env

Required environment variables

YOUTUBE_API_KEY=your_api_key_here

Optional configuration

YOUTUBE_API_QUOTA_LIMIT=10000 # Daily quota limit
YOUTUBE_API_REGION=US # Default region


2. Verify your setup:```bash
# Check if credentials are properly set up
ls -l credentials.json  # Should exist and be readable
ls -l .env             # Should exist and be readable
ls -l token.pickle     # Should exist after first authentication

# Test the server
python mcp_videos.py

🛠️ Usage

Starting the Server```bash

python mcp_videos.py


### Available Tools

1. **Search Videos**```python
@mcp.tool()
async def get_videos(search: str, max_results: int)
  1. Get Video Info```python
    @mcp.tool()
    async def get_video_info(video_id: str)

3. **Get Channel Details**```python
@mcp.tool()
async def get_channel_details(channel_id: str)
  1. Get Video Comments```python
    @mcp.tool()
    async def get_video_comments_tool(video_id: str, max_results: int = 100)

5. **Get Trending Videos**```python
@mcp.tool()
async def get_trending_videos_tool(region_code: str = "US", max_results: int = 50)
  1. Get Related Videos```python
    @mcp.tool()
    async def get_related_videos_tool(video_id: str, max_results: int = 25)

7. **Summarize Video**```python
@mcp.tool()
async def summarize_video(video_id: str, include_comments: bool = True)
  1. Generate Video Flash Cards```python
    @mcp.tool()
    async def generate_video_flashcards(
    video_id: str,
    max_cards: int = 10,
    categories: Optional[List[str]] = None,
    difficulty: Optional[str] = None
    )

This tool generates educational flash cards from video content:

- Creates different types of cards (Fill in the blank, Q&A, Definition)
- Includes timestamps for video reference
- Categorizes cards by type and difficulty
- Provides card statistics

Example usage:```python
# Generate 15 flash cards from a video
cards = generate_video_flashcards(
    video_id="dQw4w9WgXcQ",
    max_cards=15,
    categories=["Q&A", "Definition"],
    difficulty="Medium"
)

# Generate all types of cards
cards = generate_video_flashcards(
    video_id="dQw4w9WgXcQ",
    max_cards=20
)

Card Types:

  • Fill in the blank: Tests recall of specific terms or concepts
  • Q&A: Questions about key points in the video
  • Definition: Explains important concepts

Difficulty Levels:

  • Easy: Basic recall and understanding
  • Medium: Application of concepts
  • Hard: Complex concepts and relationships
  1. Generate Video Quiz```python
    @mcp.tool()
    async def generate_video_quiz(video_id: str) -> str

This tool generates a comprehensive quiz from video content:

- Creates multiple choice questions
- Generates true/false statements
- Includes fill-in-the-blank questions
- Uses video metadata, transcript, and description
- Provides answers and explanations

Example usage:```python
# Generate a quiz from a video
quiz = generate_video_quiz("dQw4w9WgXcQ")

Quiz Features:

  • Multiple Choice Questions

  • Based on video content

  • Includes video metadata
  • Tests understanding of key concepts

  • True/False Questions

  • Tests factual knowledge

  • Based on video statistics
  • Verifies understanding of claims

  • Fill in the Blank

  • Tests recall of specific terms
  • Uses transcript content
  • Focuses on key concepts

Quiz Format:```python
=== Video Quiz ===
Title: [Video Title]
Channel: [Channel Name]
URL: [Video URL]

Question 1 (Multiple Choice):
[Question text]
1. [Option 1]
2. [Option 2]
3. [Option 3]
4. [Option 4]

Answer: [Correct answer]

Question 2 (True/False):
[Statement]

Answer: True/False

Question 3 (Fill in the blank):
[Question with blank]

Answer: [Correct answer]


The quiz tool:

- Generates exactly 10 questions
- Mixes different question types
- Includes video context
- Provides immediate feedback
- Uses video metadata for questions
- Incorporates transcript content
- Tests different levels of understanding

## 📊 Architecture

The project follows a modular architecture:```mermaid
graph TD
    A[LLM Client] --> B[MCP Client]
    B --> C[MCP Server]
    C --> D[YouTube API]
    C --> E[Tool Registry]
    C --> F[Data Formatter]

    subgraph "Tools"
        E --> E1[Video Tools]
        E --> E2[Channel Tools]
        E --> E3[Comment Tools]
        E --> E4[Analysis Tools]
    end

🔧 Development

Project Structure```

youtube-mcp-server/
├── mcp_videos.py # Main server implementation
├── youtube_api.py # YouTube API client
├── yt_helper.py # Helper functions
├── requirements.txt # Project dependencies
├── .env # Environment variables
├── .gitignore # Git ignore rules
└── README.md # This file


### Adding New Tools

1. Create a new async function in `mcp_videos.py`
2. Decorate it with `@mcp.tool()`
3. Implement the tool logic
4. Add appropriate error handling
5. Update documentation

## 📝 API Documentation

### Response Formats

1. **Video Format**```python
{
    "title": str,
    "channel_title": str,
    "duration": str,
    "description": str,
    "view_count": int,
    "like_count": int,
    "comment_count": int,
    "url": str,
    "published_at": str
}
  1. Channel Format```python
    {
    "title": str,
    "subscriber_count": int,
    "video_count": int,
    "view_count": int,
    "description": str,
    "published_at": str
    }

3. **Comment Format**```python
{
    "author": str,
    "text": str,
    "like_count": int,
    "published_at": str
}

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • FastMCP for the MCP framework
  • YouTube Data API for the API
  • All contributors and users of this project

📞 Support

For support, please:

  1. Check the documentation
  2. Open an issue
  3. Contact the maintainers

🔄 Updates

Stay updated with the project:

  • Watch the repository
  • Check the releases
  • Follow the changelog

🔒 Security

Handling Sensitive Data

⚠️ IMPORTANT: Never commit sensitive files to the repository:

  • token.pickle
  • client_secrets.json
  • .env files
  • Any other credential files

These files are automatically ignored by .gitignore, but if you accidentally commit them:

  1. Remove them from git tracking:bash git rm --cached token.pickle git rm --cached client_secrets.json

  2. Revoke and regenerate any exposed credentials

  3. Update your local .env file with new credentials
  4. Never share or expose these files publicly

Best Practices

  1. Always use environment variables for sensitive data
  2. Keep credentials in .env file (already in .gitignore)
  3. Regularly rotate API keys and tokens
  4. Use OAuth 2.0 for authentication
  5. Monitor GitHub's secret scanning alerts

🖥️ Claude Desktop Setup

1. Install Claude Desktop

  1. Download Claude Desktop:
  • Visit Claude Desktop
  • Download the appropriate version for your OS:
    • macOS: .dmg file
    • Windows: .exe installer
    • Linux: .AppImage or .deb package
  1. Install the Application:```bash
    # macOS
    # 1. Open the .dmg file
    # 2. Drag Claude to Applications folder
    # 3. Open from Applications

# Windows
# 1. Run the .exe installer
# 2. Follow the installation wizard
# 3. Launch from Start Menu

# Linux (Ubuntu/Debian)
sudo dpkg -i claude-desktop_.deb # For .deb package
# OR
chmod +x Claude-
.AppImage # For AppImage
./Claude-*.AppImage
```

2. Configure MCP Client

  1. Open Claude Desktop Settings:
  • Click on the gear icon (⚙️) or
  • Use keyboard shortcut:
    • macOS: Cmd + ,
    • Windows/Linux: Ctrl + ,
  1. Add MCP Configuration:
  • Navigate to "MCP Settings" or "Advanced Settings"
  • Add the following configuration:json { "mcpServers": { "youtube_videos": { "command": "uv", "args": [ "--directory", "<your base directory>/youtube-mcp-server", "run", "mcp_videos.py" ] } } }
  1. Replace Path:
  • Replace `` with your actual project path
  • Example for different OS:```json
    // macOS/Linux
    "/Users/username/Documents/youtube-mcp-server"

    // Windows
    "C:\Users\username\Documents\youtube-mcp-server"
    ```

  1. Verify Configuration:bash # Test the MCP server path cd "<your base directory>/youtube-mcp-server" uv run mcp_videos.py

3. Using Claude with MCP

  1. Start Claude Desktop
  2. Connect to MCP Server:
  • The server should start automatically
  • You'll see a connection status indicator
  • Available tools will be listed in the interface
  1. Test the Connection:python # Try a simple command get_videos("python programming", max_results=5)

Troubleshooting MCP Connection

  1. Server Won't Start:```bash
    # Check if the path is correct
    pwd # Should show your project directory

# Verify Python environment
which python # Should point to your virtual environment

# Check uv installation
uv --version
```

  1. Connection Issues:
  • Verify the server is running
  • Check the configuration path
  • Ensure all dependencies are installed
  • Check the logs in Claude Desktop
  1. Common Errors:```bash
    # Path not found
    # Solution: Use absolute path in configuration

# Permission denied
# Solution: Check file permissions
chmod +x mcp_videos.py

# Module not found
# Solution: Verify virtual environment
source .venv/bin/activate # or appropriate activation command
```

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
Youtube MCP Server 575050e0 怎么安装?

在客户端按下面的安装命令接入:python3 --version # 应显示Python 3.11.x。装完在客户端配置里引用同一个包或端点。

Youtube MCP Server 575050e0 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

Youtube MCP Server 575050e0 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Youtube MCP Server 575050e0 需要 API Key 吗?

资料标注需要OAuth 授权认证,使用前准备好对应凭据,并按最小权限配置。

Youtube MCP Server 575050e0 能提供哪些能力?

资料显示能力标签包括 视频分析、Python、OAuth认证。具体工具清单以官方文档为准。

Youtube MCP Server 575050e0 需要什么运行环境?

运行时为 Python;属于本地进程,需要在本机装好运行环境。

Youtube MCP Server 575050e0 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。