Youtube MCP F14a161c

MCP音视频

提供方 glonorce

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

一个提供生产级YouTube库存工具(频道解析、频道视频、频道播放列表、播放列表视频)的模型上下文协议(MCP)服务器,设计为默认安全、配额感知且AI友好。

一句话选型结论

按资料字段整理

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

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

工具与能力

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

能力标签

适用场景

YouTube数据提取Python本地部署视频内容管理API集成配额管理AI友好工具

安装与配置

stdio · 本地进程 无需鉴权
客户端在本机拉起子进程,数据不出本机
python -m pip install --user pipx

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

  1. 1
    准备运行环境

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

  2. 2
    安装服务

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

  3. 3
    写入客户端配置

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

  4. 4
    验证是否可用

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

典型使用场景

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

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

音视频处理

裁剪、转码、拼接素材。

内容分发

把成品发到对应平台。

选择建议

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

值得选的地方

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

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 版本更新与行为细节以官方仓库为准。

更适合

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

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

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

服务器档案

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

详细介绍

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

YouTube MCP (youtube_mcp)

A Model Context Protocol (MCP) server that provides production-grade YouTube inventory tools (channel resolution, channel videos, channel playlists, playlist videos) designed to be safe-by-default, quota-aware, and AI-friendly.

Repository: https://github.com/glonorce/youtube_mcp
PyPI: https://pypi.org/project/glonorce-youtube-mcp/

> Naming note:
> - Repo name: youtube_mcp
> - Python package / import name: youtube_mcp
> - MCP entry module: python -m youtube_mcp.server


Prerequisites (PATH)

Make sure these commands work in your terminal (they must be on PATH):

  • python --version
  • python -m pip --version
  • pipx --version (only if you use the pipx-based MCP config)

✅ What is PATH?

PATH is the list of folders that your OS searches when you run a command like python or pipx.

  • If a command is not on PATH, you'll see errors like:
  • Windows: executable file not found in %PATH%
  • PowerShell: ... is not recognized as the name of a cmdlet

Quick checks (Windows):```powershell
where python
where pipx
$env:Path


On Windows:
- install Python from https://www.python.org/downloads/
- during installation, check **"Add Python to PATH"**

Install pipx (only if you use the pipx-based MCP config):```bash
python -m pip install --user pipx
python -m pipx ensurepath

Notes:
- After pipx ensurepath, restart your terminal/IDE so pipx is available on PATH.
- Verify with: pipx --version


✨ Available on PyPI```bash

pip install glonorce-youtube-mcp

run

youtube_mcp


---

## Screenshots

---

## Features

- **7 MCP tools** (1 text-output tool + 6 structured-output tools)
- **Safe defaults** (public data only; shorts/live excluded unless enabled)
- **Quota-aware design** (budgeting + expensive strategies as explicit opt-in)
- **Tool discovery works in MCP hosts** (tools registered with rich docstrings)
- **Resilient YouTube Data API client** (endpoint allowlist, retries, gzip handling)

---

## Tools

This server exposes **7 tools**:

1) `get_yt_video_info(video_id_or_url) -> str`
   - Accepts a raw video id **or** a full YouTube URL.
   - Returns video metadata + transcript (when available).

2) `resolve_youtube_channel(channel_ref, ...) -> dict`

3) `list_youtube_channel_videos(channel_ref, ...) -> dict`
   - Paginated.
   - Returns `nextPageToken` **and** `next_page_token` (alias).

4) `list_youtube_channel_playlists(channel_ref, ...) -> dict`
   - Paginated.
   - Returns `nextPageToken` **and** `next_page_token` (alias).

5) `list_youtube_playlist_videos(playlist_id, ...) -> dict`
   - Paginated.
   - Returns `nextPageToken` **and** `next_page_token` (alias).

6) `search_youtube_channel_videos(channel_ref, query, ...) -> dict`
   - Keyword search within a channel (**quota-expensive**, uses Search API).
   - Paginated.

7) `list_youtube_video_comments(video_id, ...) -> dict`
   - Public comment threads for a video (comments may be disabled).
   - Paginated.

All tools except `get_yt_video_info` return **structured JSON** and are documented with AI-friendly docstrings.

---

## Installation & MCP configuration

> PyPI distribution name: **`glonorce-youtube-mcp`**
>
> Repo name: `youtube_mcp` · import name: `youtube_mcp`

### API key

All inventory/search/comment tools require a YouTube Data API v3 key:

- `YOUTUBE_API_KEY`

### Option 1 (recommended for MCP hosts): pipx (no repo clone)

Use this when you want a "zero local project" setup (no clone, no venv management).```json
{
  "mcpServers": {
    "youtube_mcp": {
      "command": "pipx",
      "args": ["run", "--spec", "glonorce-youtube-mcp", "youtube_mcp"],
      "env": {
        "YOUTUBE_API_KEY": "YOUR_KEY"
      }
    }
  }
}

Option 2: pip into a dedicated venv (no repo clone)```bash

python -m venv .venv_youtube_mcp

Windows: .venv_youtube_mcp\Scripts\activate

macOS/Linux: source .venv_youtube_mcp/bin/activate

python -m pip install -U pip
python -m pip install glonorce-youtube-mcp


MCP host JSON example (simple):```json
{
  "mcpServers": {
    "youtube_mcp": {
      "command": "youtube_mcp",
      "env": {
        "YOUTUBE_API_KEY": "YOUR_KEY"
      }
    }
  }
}

If your MCP host can't find youtube_mcp on PATH (Windows error like: executable file not found in %PATH%), use an absolute path.

MCP host JSON example (absolute path to venv Python + module):```json
{
"mcpServers": {
"youtube_mcp": {
"command": "C:\PATH\.venv_youtube_mcp\Scripts\python.exe",
"args": ["-m", "youtube_mcp.server"],
"env": {
"YOUTUBE_API_KEY": "YOUR_KEY"
}
}
}
}


### Option 3: local clone (development)```bash
git clone https://github.com/glonorce/youtube_mcp.git
cd youtube_mcp

python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate

python -m pip install -e .

MCP host JSON example (local clone):```json
{
"mcpServers": {
"youtube_mcp": {
"command": "C:\PATH\youtube_mcp\.venv\Scripts\python.exe",
"args": ["-m", "youtube_mcp.server"],
"env": {
"YOUTUBE_API_KEY": "YOUR_KEY"
}
}
}
}


### Getting Your YouTube API Key

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 (May be 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 (commonly)
- **Cost**: depends on your Google Cloud / billing configuration

#### Security Best Practices

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

---

## Example MCP calls (JSON payloads)

> Exact envelope depends on your MCP client; these show `tool` + `arguments`.

### Resolve a channel```json
{
  "tool": "resolve_youtube_channel",
  "arguments": {
    "channel_ref": "@GoogleDevelopers",
    "resolution_mode": "strict",
    "include_uploads_playlist": true
  }
}

List channel videos (safe default)```json

{
"tool": "list_youtube_channel_videos",
"arguments": {
"channel_ref": "@GoogleDevelopers",
"max_videos": 50,
"page_token": null,
"include_shorts": false,
"include_live": false,
"parts_level": "basic",
"order_strategy": "uploads_playlist",
"order_by": "date"
}
}


---

## Quota reference (best-effort)

> This section is a **best-effort** summary and may change over time.
> Always verify with official documentation.

**Last verified:** 2026-02-18

Official references:
- YouTube Data API quota calculator / costs: https://developers.google.com/youtube/v3/determine_quota_cost
- Usage limits: https://developers.google.com/youtube/v3/getting-started#quota

### Approximate quota usage by tool

Note: `get_yt_video_info` returns text (not structured JSON) and is not included in the quota table because its behavior depends on optional extractors.

| Tool | Primary endpoints | Typical cost (rough) | Notes |
|---|---|---:|---|
| `resolve_youtube_channel` | `channels.list` | ~1 | strict mode mostly `channels.list`; best_effort may use `search.list` |
| `list_youtube_channel_videos` (default) | `channels.list` + `playlistItems.list` + `videos.list` | ~ (1 + 1 + 1) per page | uploads-playlist strategy |
| `list_youtube_channel_videos` (`order_strategy=search_api`) | `search.list` + `videos.list` | ~ (100 + 1) per page | expensive; capped behavior |
| `list_youtube_channel_playlists` | `playlists.list` | ~1 per page | public playlists only |
| `list_youtube_playlist_videos` | `playlistItems.list` + `videos.list` | ~ (1 + 1) per page | public playlist |
| `search_youtube_channel_videos` | `search.list` + `videos.list` | ~ (100 + 1) per page | keyword search within a channel |
| `list_youtube_video_comments` | `commentThreads.list` | ~1 per page | comments may be disabled (403) |

Daily quota:
- Common free quota: **10,000 units/day**
- Reset: daily (Google-defined; see official docs/console)

---

## Testing

Use the venv interpreter to avoid accidentally running global `pytest`.```bash
# recommended
python -m pytest -q

# if you use a venv
.venv\Scripts\python.exe -m pytest -q

Troubleshooting

Only get_yt_video_info is visible (other tools missing)

Your MCP host is running an old installed copy from site-packages.
Fix:```bash
python -m pip install -e .


Then restart the MCP host.

### `YOUTUBE_API_KEY` placeholder is not expanded in some MCP hosts

Some MCP hosts do **not** interpolate placeholders like `${YOUTUBE_API_KEY}` inside `mcp.json`.

❌ Not recommended (may be taken literally):```json
{
  "env": { "YOUTUBE_API_KEY": "${YOUTUBE_API_KEY}" }
}

✅ Recommended (explicit value in config):json { "env": { "YOUTUBE_API_KEY": "YOUR_REAL_KEY_HERE" } }

✅ Also works (set it in the host process environment, then reference nothing in JSON):
- set YOUTUBE_API_KEY in the MCP host environment (OS/IDE)
- then keep mcp.json without placeholders


License

MIT — see LICENSE


Acknowledgements

This project was originally derived from / inspired by https://github.com/sinjab/mcp_youtube_extract.
The codebase has since been heavily rewritten and extended.

常见问题

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

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

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

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

Youtube MCP F14a161c 收费吗?

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

Youtube MCP F14a161c 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Youtube MCP F14a161c 能提供哪些能力?

资料显示约 7 个工具;能力标签包括 Python、语音音频、视频。具体工具清单以官方文档为准。

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

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

Youtube MCP F14a161c 是本地还是远程?

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

热门专题

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

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