MCP Youtube D5bcbe64

MCP音视频

提供方 jonyx225

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

一个无需API密钥的MCP服务器,提供YouTube视频元数据和字幕提取功能。

一句话选型结论

按资料字段整理

MCP Youtube D5bcbe64 属于音视频类 MCP 服务器,stdio · 本地进程,API Key,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

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

工具与能力

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

能力标签

适用场景

视频处理Python本地部署元数据提取字幕生成MCP协议Python工具

安装与配置

stdio · 本地进程 API Key
客户端在本机拉起子进程,数据不出本机
pip install mcp-youtube-extract

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

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js 等运行时,再按安装命令拉取依赖。

  2. 2
    安装服务

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

  3. 3
    写入客户端配置

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

  4. 4
    验证是否可用

    连接成功后客户端会列出约 1 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

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

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

音视频处理

裁剪、转码、拼接素材。

内容分发

把成品发到对应平台。

选择建议

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

值得选的地方

  • 资料标注 1 个工具,职责相对集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好API Key对应的凭据,并按最小权限配置。
  • 版本更新与行为细节以官方仓库为准。

更适合

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

不太适合

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

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
MCP Youtube D5bcbe64当前 1 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

服务器档案

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

详细介绍

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

MCP YouTube Extract

A Model Context Protocol (MCP) server for YouTube operations, demonstrating core MCP concepts including tools and logging.

✨ No API Key Required! Works out of the box using yt-info-extract for video metadata and yt-ts-extract for transcripts.

Features

  • MCP Server: A fully functional MCP server with:
  • Tools: Extract information from YouTube videos including metadata and transcripts
  • Comprehensive Logging: Detailed logging throughout the application
  • Error Handling: Robust error handling with fallback logic for transcripts
  • YouTube Integration: Built-in YouTube capabilities using yt-info-extract and yt-ts-extract:
  • Extract video information (title, description, channel, publish date, view count)
  • Get video transcripts with intelligent fallback logic
  • Support for both manually created and auto-generated transcripts
  • No API key required for basic functionality

📦 Available on PyPI

This package is now available on PyPI! You can install it directly with:```bash
pip install mcp-youtube-extract


Visit the package page: mcp-youtube-extract on PyPI

## Installation

### Quick Start (Recommended)

The easiest way to get started is to install from PyPI:```bash
pip install mcp-youtube-extract

Or using pipx (recommended for command-line tools):```bash
pipx install mcp-youtube-extract


This will install the latest version with all dependencies. You can then run the MCP server directly:```bash
mcp_youtube_extract

Using uv (Development)

For development or if you prefer uv:```bash

Install uv if you haven't already

curl -LsSf https://astral.sh/uv/install.sh | sh

Clone and install the project

git clone https://github.com/sinjab/mcp_youtube_extract.git
cd mcp_youtube_extract

Install dependencies (including dev dependencies)

uv sync --dev

Set up your API key for development

cp .env.example .env

Edit .env and add your YouTube API key


### From source

1. Clone the repository:```bash
   git clone https://github.com/sinjab/mcp_youtube_extract.git
   cd mcp_youtube_extract
   ```

2. Install in development mode:```bash
   uv sync --dev
   ```

## Configuration

### Environment Variables

**No configuration required!** The server works out of the box using yt-info-extract for metadata extraction.

**Optional:** For enhanced functionality, you can optionally set a YouTube API key:```bash
# Optional YouTube API Configuration
YOUTUBE_API_KEY=your_youtube_api_key_here

Optional:
- YOUTUBE_API_KEY: Your YouTube Data API key (optional, provides additional fallback for metadata extraction)

Getting Your YouTube API Key (Optional)

While not required, you can optionally set up a YouTube Data API key for enhanced functionality. Here's how to get one:

Step 1: Create a Google Cloud Project

  1. Go to the Google Cloud Console
  2. Click "Select a project" at the top of the page
  3. Click "New Project" and give it a name (e.g., "MCP YouTube Extract")
  4. Click "Create"

Step 2: Enable the YouTube Data API

  1. In your new project, go to the API Library
  2. Search for "YouTube Data API v3"
  3. Click on it and then click "Enable"

Step 3: Create API Credentials

  1. Go to the Credentials page
  2. Click "Create Credentials" and select "API Key"
  3. Your new API key will be displayed - copy it immediately
  4. Click "Restrict Key" to secure it (recommended)

Step 4: Restrict Your API Key (Recommended)

  1. In the API key settings, click "Restrict Key"
  2. Under "API restrictions", select "Restrict key"
  3. Choose "YouTube Data API v3" from the dropdown
  4. Click "Save"

Step 5: Set Up Billing (Required)

  1. Go to the Billing page
  2. Link a billing account to your project
  3. Note: YouTube Data API has a free tier of 10,000 units per day, which is typically sufficient for most use cases

API Key Usage Limits

  • Free Tier: 10,000 units per day
  • Cost: $5 per 1,000 units after free tier
  • Note: API key is only used as a fallback when yt-info-extract fails
  • Most users won't need an API key as yt-info-extract handles most requests

Security Best Practices

  • Never commit your API key to version control
  • Use environment variables as shown in the configuration section
  • Restrict your API key to only the YouTube Data API
  • Monitor usage in the Google Cloud Console

Usage

Running the MCP Server

Using PyPI Installation (Recommended)```bash

Install from PyPI

pip install mcp-youtube-extract

Run the server

mcp_youtube_extract


#### Using Development Setup```bash
# Using uv
uv run mcp_youtube_extract

# Or directly
python -m mcp_youtube_extract.server

Running Tests```bash

Run all pytest tests

uv run pytest

Run specific pytest test

uv run pytest tests/test_with_api_key.py

Run tests with coverage

uv run pytest --cov=src/mcp_youtube_extract --cov-report=term-missing


**Note**: The `tests/` directory contains 4 files:
- `test_context_fix.py` - Pytest test for context API fallback functionality
- `test_with_api_key.py` - Pytest test for full functionality with API key
- `test_youtube_unit.py` - **Unit tests** for core YouTube functionality
- `test_inspector.py` - **Standalone inspection script** (not a pytest test)

**Test Coverage**: The project currently has 62% overall coverage with excellent coverage of core functionality:
- `youtube.py`: 81% coverage (core business logic)
- `logger.py`: 73% coverage (logging utilities)
- `server.py`: 22% coverage (MCP protocol handling)
- `__init__.py`: 100% coverage (package initialization)

### Running the Inspection Script

The `test_inspector.py` file is a standalone script that connects to the MCP server and validates its functionality:```bash
# Run the inspection script to test server connectivity and functionality
uv run python tests/test_inspector.py

This script will:
- Connect to the MCP server
- List available tools, resources, and prompts
- Test the get_yt_video_info tool with a sample video
- Validate that the server is working correctly

Using the YouTube Tool

The server provides one main tool: get_yt_video_info

This tool takes a YouTube video ID and returns:
- Video metadata (title, description, channel, publish date, view count) via yt-info-extract
- Video transcript (with fallback logic for different transcript types) via yt-ts-extract

Example Usage:```python

Extract video ID from YouTube URL: https://www.youtube.com/watch?v=dQw4w9WgXcQ

video_id = "dQw4w9WgXcQ"
result = get_yt_video_info(video_id)


### Client Configuration

To use this MCP server with a client, add the following configuration to your client's settings:

#### Using PyPI Installation (Recommended)```json
{
  "mcpServers": {
    "mcp_youtube_extract": {
      "command": "mcp_youtube_extract"
    }
  }
}

With optional API key:```json
{
"mcpServers": {
"mcp_youtube_extract": {
"command": "mcp_youtube_extract",
"env": {
"YOUTUBE_API_KEY": "your_youtube_api_key"
}
}
}
}


#### Using Development Setup```json
{
  "mcpServers": {
    "mcp_youtube_extract": {
      "command": "uv",
      "args": [
        "--directory",
        "<your-project-directory>",
        "run",
        "mcp_youtube_extract"
      ]
    }
  }
}

With optional API key:```json
{
"mcpServers": {
"mcp_youtube_extract": {
"command": "uv",
"args": [
"--directory",
"<your-project-directory>",
"run",
"mcp_youtube_extract"
],
"env": {
"YOUTUBE_API_KEY": "your_youtube_api_key"
}
}
}
}


## Development

### Project Structure```
mcp_youtube_extract/
├── src/
│   └── mcp_youtube_extract/
│       ├── __init__.py
│       ├── server.py          # MCP server implementation
│       ├── google_api.py      # yt-info-extract integration
│       ├── transcript_api.py  # yt-ts-extract integration
│       ├── youtube.py         # Unified API facade
│       └── logger.py          # Logging configuration
├── tests/
│   ├── __init__.py
│   ├── test_context_fix.py    # Context API fallback tests
│   ├── test_inspector.py      # Server inspection tests
│   ├── test_with_api_key.py   # Full functionality tests
│   └── test_youtube_unit.py   # Unit tests for core functionality
├── logs/                      # Application logs
├── .env                       # Environment variables (create from .env.example)
├── .gitignore                 # Git ignore rules (includes coverage files)
├── pyproject.toml
├── LICENSE                    # MIT License
└── README.md

Testing Strategy

The project uses a comprehensive testing approach:

  1. Unit Tests (test_youtube_unit.py): Test core YouTube functionality with mocked yt-info-extract
  2. Integration Tests (test_context_fix.py, test_with_api_key.py): Test full server functionality
  3. Manual Validation (test_inspector.py): Interactive server inspection tool

Error Handling

The project includes robust error handling:
- Graceful extraction failures: Returns appropriate error messages instead of crashing
- Multiple fallback strategies: yt-info-extract provides automatic fallback between YouTube Data API, yt-dlp, and pytubefix
- Transcript fallback logic: Multiple strategies for transcript retrieval via yt-ts-extract
- Consistent error responses: Standardized error message format
- Comprehensive logging: Detailed logs for debugging and monitoring

Building```bash

Install build dependencies

uv add --dev hatch

Build the package

uv run hatch build
```

License

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

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Getting Started

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m &#x27;Add some amazing feature&#x27;)
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

If you encounter any issues or have questions, please:
1. Check the existing issues
2. Create a new issue with detailed information about your problem
3. Include logs and error messages when applicable

常见问题

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

在客户端按下面的安装命令接入:pip install mcp-youtube-extract。装完在客户端配置里引用同一个包或端点。

MCP Youtube D5bcbe64 怎么在客户端里配置?

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

MCP Youtube D5bcbe64 收费吗?

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

MCP Youtube D5bcbe64 需要 API Key 吗?

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

MCP Youtube D5bcbe64 能提供哪些能力?

资料显示约 1 个工具;能力标签包括 视频处理、Python、API密钥。具体工具清单以官方文档为准。

MCP Youtube D5bcbe64 需要什么运行环境?

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

MCP Youtube D5bcbe64 是本地还是远程?

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

热门专题

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

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