Youtube MCP 6bdf9496

MCP音视频

提供方 GeLi2001

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

一个基于Go语言的YouTube数据API v3服务器,提供视频搜索、频道信息获取、视频详情检索等功能,适用于AI助手和其他MCP客户端。

一句话选型结论

按资料字段整理

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

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

工具与能力

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

能力标签

适用场景

视频搜索Go本地部署频道信息视频详情YouTubeAPIMCP服务器

安装与配置

stdio · 本地进程 OAuth 授权
客户端在本机拉起子进程,数据不出本机
docker run -e YOUTUBE_API_KEY="your_api_key" youtube-mcp-server

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

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Docker,再按安装命令拉取依赖。

  2. 2
    安装服务

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

  3. 3
    写入客户端配置

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

  4. 4
    验证是否可用

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

典型使用场景

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

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

音视频处理

裁剪、转码、拼接素材。

内容分发

把成品发到对应平台。

选择建议

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

值得选的地方

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

先想清楚的地方

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

更适合

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

不太适合

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

同类对比

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

服务器档案

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

详细介绍

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

YouTube MCP Server

A Go-based Model Context Protocol (MCP) server that provides access to the YouTube Data API v3. This server allows AI assistants and other MCP clients to search for videos, get channel information, retrieve video details, and more.

Features

  • Video Search: Search for YouTube videos with filtering options
  • Channel Information: Get detailed information about YouTube channels
  • Video Details: Retrieve comprehensive details about specific videos
  • Playlist Items: Get items from YouTube playlists
  • Channel Search: Search for YouTube channels

Prerequisites

  1. Go 1.19 or later installed on your system
  2. YouTube Data API v3 credentials from Google Cloud Console

Setup

1. Get YouTube API Credentials

  1. Go to the Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the YouTube Data API v3:
    - Navigate to "APIs & Services" → "Library"
    - Search for "YouTube Data API v3"
    - Click "Enable"
  4. Create credentials:
    - Go to "APIs & Services" → "Credentials"
    - Click "Create Credentials" → "API Key" (for public data access)
    - Or create "OAuth client ID" (for user-specific data)

2. Install Dependencies```bash

go mod tidy


### 3. Configuration

#### Option A: Using .env File (Recommended)

1. Create a `.env` file from the example:```bash
cp .env.example .env
  1. Edit .env with your API key:```bash

YouTube Data API v3 Configuration

YOUTUBE_API_KEY=your_actual_api_key_here

OAuth2 Configuration (optional, for user-specific data)

OAUTH2_CREDENTIALS_FILE=client_secret.json
TOKEN_FILE=token.json


#### Option B: Using Environment Variables```bash
export YOUTUBE_API_KEY="your_api_key_here"

Option C: Using JSON Config File (Legacy)```bash

cp config.example.json config.json

Edit config.json with your settings

Run with: ./youtube-mcp-server -json-config


## Usage

### Build and Run```bash
# Build the server
go build -o youtube-mcp-server ./cmd/server

# Run the server (uses .env file)
./youtube-mcp-server

# Or run with JSON config file
./youtube-mcp-server -json-config -config config.json

Running with Docker (Coming Soon)```bash

Build Docker image

docker build -t youtube-mcp-server .

Run with environment variables

docker run -e YOUTUBE_API_KEY="your_api_key" youtube-mcp-server


## Available MCP Tools

### 1. search_videos

Search for YouTube videos based on a query.

**Parameters:**

- `query` (string, required): Search query for videos
- `max_results` (integer, optional): Maximum number of results (default: 10)
- `channel_id` (string, optional): Limit search to specific channel

**Example:**```json
{
  "method": "tools/call",
  "params": {
    "name": "search_videos",
    "arguments": {
      "query": "golang tutorial",
      "max_results": 5
    }
  }
}

2. get_channel_info

Get information about a YouTube channel.

Parameters:

  • channel_id (string, optional): Channel ID to get info for (if empty, uses authenticated user's channel)

Example:```json
{
"method": "tools/call",
"params": {
"name": "get_channel_info",
"arguments": {
"channel_id": "UCBUKHRdFNRo2gPXRXCKnN7w"
}
}
}


### 3. get_video_details

Get detailed information about a YouTube video.

**Parameters:**

- `video_id` (string, required): YouTube video ID

**Example:**```json
{
  "method": "tools/call",
  "params": {
    "name": "get_video_details",
    "arguments": {
      "video_id": "dQw4w9WgXcQ"
    }
  }
}

4. get_playlist_items

Get items from a YouTube playlist.

Parameters:

  • playlist_id (string, required): YouTube playlist ID
  • max_results (integer, optional): Maximum number of results (default: 10)

Example:```json
{
"method": "tools/call",
"params": {
"name": "get_playlist_items",
"arguments": {
"playlist_id": "PLrAXtmRdnEQy4jrMVwm9wRbWqz4_0dmSh",
"max_results": 10
}
}
}


### 5. search_channels

Search for YouTube channels based on a query.

**Parameters:**

- `query` (string, required): Search query for channels
- `max_results` (integer, optional): Maximum number of results (default: 10)

**Example:**```json
{
  "method": "tools/call",
  "params": {
    "name": "search_channels",
    "arguments": {
      "query": "programming",
      "max_results": 5
    }
  }
}

Configuration Options

The server can be configured via a JSON file or environment variables:

Setting Environment Variable Description
youtube_api_key YOUTUBE_API_KEY YouTube Data API v3 key
oauth2_credentials_file - Path to OAuth2 credentials file
token_file - Path to store OAuth2 tokens
server_name - MCP server name
server_version - MCP server version
server_description - MCP server description

Development

Project Structure```

youtube-mcp/
├── cmd/
│ └── server/
│ └── main.go # Main server entry point
├── pkg/
│ ├── config/
│ │ └── config.go # Configuration management
│ ├── youtube/
│ │ └── youtube_client.go # YouTube API client wrapper
│ └── mcp/
│ └── mcp_tools.go # MCP tool definitions
├── .env.example # Example environment file
├── config.example.json # Example configuration file (legacy)
├── go.mod # Go module definition
└── README.md # This file


### Adding New Tools

1. Add new argument structs in `pkg/mcp/mcp_tools.go`
2. Implement the YouTube API logic in `pkg/youtube/youtube_client.go`
3. Register the new tool in the `SetupMCPTools` function

### Testing```bash
# Run tests
go test ./...

# Run with race detection
go test -race ./...

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

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

Troubleshooting

Common Issues

  1. "quota exceeded" error: You've exceeded your YouTube API quota. Wait for it to reset or upgrade your quota.

  2. "invalid API key" error: Check that your API key is correct and the YouTube Data API v3 is enabled for your project.

  3. OAuth2 authentication issues: Ensure your client_secret.json file is in the correct location and properly formatted.

Getting Help

  • Check the YouTube Data API documentation
  • Review the MCP specification
  • Open an issue on GitHub for bugs or feature requests

Resources

  • YouTube Data API v3 Documentation
  • Google Cloud Console
  • Model Context Protocol
  • metoro-io/mcp-golang

常见问题

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

在客户端按下面的安装命令接入:docker run -e YOUTUBE_API_KEY="your_api_key" youtube-mcp-server。装完在客户端配置里引用同一个包或端点。

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

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

Youtube MCP 6bdf9496 收费吗?

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

Youtube MCP 6bdf9496 需要 API Key 吗?

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

Youtube MCP 6bdf9496 能提供哪些能力?

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

Youtube MCP 6bdf9496 需要什么运行环境?

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

Youtube MCP 6bdf9496 是本地还是远程?

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

热门专题

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

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