IY 

icraft2170/youtube-data-mcp-server 是从 https://github.com/icraft2170/youtube-data-mcp-server. 导入的 MCP 服务器候选
概览
icraft2170/youtube-data-mcp-server 是从 https://github.com/icraft2170/youtube-data-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个利用 YouTube Data API 的模型上下文协议(MCP)服务器实现。它允许 AI 语言模型通过标准化界面与 YouTube 内容交互。
主要特色
视频信息
- 检索详细视频信息(标题、描述、时长、统计数据)
- 按关键词搜索视频
- 基于特定视频获取相关视频
- 计算和分析视频互动比例
文字稿/字幕管理
- 带多语言支持的视频字幕检索
- 指定转录文本的语言偏好
- 访问带时间戳的字幕以提供内容精确参考
频道分析
- 查看详细频道统计数据(订阅人数、观看次数、视频数量)
- 获取频道表现最佳的视频
- 分析渠道增长和互动指标
趋势分析
- 按地区和类别查看热门视频
- 比较多个视频的表现指标
- 在特定类别中发现热门内容
可用工具
服务器提供以下MCP工具:
| 工具名称 | 说明 | 所需参数 |
|---|
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
YouTube MCP Server
A Model Context Protocol (MCP) server implementation utilizing the YouTube Data API. It allows AI language models to interact with YouTube content through a standardized interface.
Key Features
Video Information
- Retrieve detailed video information (title, description, duration, statistics)
- Search for videos by keywords
- Get related videos based on a specific video
- Calculate and analyze video engagement ratios
Transcript/Caption Management
- Retrieve video captions with multi-language support
- Specify language preferences for transcripts
- Access time-stamped captions for precise content reference
Channel Analysis
- View detailed channel statistics (subscribers, views, video count)
- Get top-performing videos from a channel
- Analyze channel growth and engagement metrics
Trend Analysis
- View trending videos by region and category
- Compare performance metrics across multiple videos
- Discover popular content in specific categories
Available Tools
The server provides the following MCP tools:
| Tool Name | Description | Required Parameters |
|---|---|---|
getVideoDetails |
Get detailed information about multiple YouTube videos including metadata, statistics, and content details | videoIds (array) |
searchVideos |
Search for videos based on a query string | query, maxResults (optional) |
getTranscripts |
Retrieve transcripts for multiple videos | videoIds (array), lang (optional) |
getRelatedVideos |
Get videos related to a specific video based on YouTube’s recommendation algorithm | videoId, maxResults (optional) |
getChannelStatistics |
Retrieve detailed metrics for multiple channels including subscriber count, view count, and video count | channelIds (array) |
getChannelTopVideos |
Get the most viewed videos from a specific channel | channelId, maxResults (optional) |
getVideoEngagementRatio |
Calculate engagement metrics for multiple videos (views, likes, comments, and engagement ratio) | videoIds (array) |
getTrendingVideos |
Get currently popular videos by region and category | regionCode (optional), categoryId (optional), maxResults (optional) |
compareVideos |
Compare statistics across multiple videos | videoIds (array) |
Installation
Automatic Installation via Smithery
Automatically install YouTube MCP Server for Claude Desktop via Smithery:
npx -y @smithery/cli install @icraft2170/youtube-data-mcp-server --client claude
Manual Installation
# Install from npm
安装
npx -y youtube-data-mcp-server配置
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "youtube-data-mcp-server"],
"env": {
"YOUTUBE_API_KEY": "YOUR_API_KEY_HERE",
"YOUTUBE_TRANSCRIPT_LANG": "ko"
}
}
}
}