YouTube MCP
YouTube MCP
用于 YouTube 视频分析的模型上下文协议 (MCP) 服务器,提供使用 Gemini AI 获取成绩单、总结内容和查询视频的工具。
特征
📝成绩单提取:从 YouTube 视频中获取详细的成绩单
📊视频摘要:使用 Gemini AI 生成简洁的摘要
❓自然语言查询:询问有关视频内容的问题
🔍 YouTube 搜索:查找符合特定查询的视频
💬评论分析:检索并分析视频评论
Related MCP server: YouTube Translate MCP
要求
Python 3.9+
Google Gemini API 密钥
YouTube 数据 API 密钥
本地运行
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 youtube-mcp:
npx -y @smithery/cli install @Prajwal-ak-0/youtube-mcp --client claude选项 1:直接安装
克隆存储库:
git clone https://github.com/Prajwal-ak-0/youtube-mcp cd youtube-mcp创建虚拟环境并安装依赖项:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install -e .使用您的 API 密钥创建一个
.env文件:GEMINI_API_KEY=your_gemini_api_key YOUTUBE_API_KEY=your_youtube_api_key运行 MCP 服务器:
python main.py
选项 2:使用 MCP CLI
安装 MCP CLI:
pip install mcp在您的项目中创建一个
mcp.json文件:{ "youtube": { "command": "uv", "args": [ "--directory", "/absolute/path/to/youtube-mcp", "run", "main.py", "--transport", "stdio", "--debug" ] } }使用 MCP 启动服务器:
mcp run youtube
与 Docker 一起使用
构建 Docker 镜像:
docker build -t youtube-mcp .使用您的 API 密钥运行容器:
docker run -e GEMINI_API_KEY=your_gemini_api_key -e YOUTUBE_API_KEY=your_youtube_api_key youtube-mcp
在 Smithery 上部署
该 MCP 服务器可以部署在Smithery上,以便于访问:
在 Smithery 上添加或声明您的服务器
单击 Smithery 部署选项卡上的“部署”
出现提示时提供您的 API 密钥
可用工具
youtube/get-transcript:获取视频记录youtube/summarize:生成视频摘要youtube/query:回答有关视频的问题youtube/search:搜索 YouTube 视频youtube/get-comments:检索视频评论youtube/get-likes:获取视频点赞数
贡献
欢迎贡献!请随时提交 Pull 请求。
This server cannot be deployed
Maintenance
Related MCP Connectors
YouTube transcripts, search, channel browsing, and playlists for AI agents via MCP.
An MCP server that gives any LLM or agent clean YouTube transcripts on demand: a single video, a whole channel, or a playlist, plus AI cleanup of auto-generated captions. API-key auth, credit-based, same backend as the public v1 API. Get a free API key with 25 free credits at youtubetranscriptdownload.com/account.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Multimodal video analysis MCP — transcription, vision, and OCR for any video URL.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to extract transcripts from YouTube videos, allowing AI to analyze and work with video content directly.126 npm4MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables access to YouTube video content through transcripts, translations, summaries, and subtitle generation in various languages.55MIT
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server that enables searching YouTube videos, retrieving and storing transcripts, and performing semantic search over video content without using the official YouTube API.39MIT
- AlicenseBqualityFmaintenanceMCP (Model Context Protocol) server that utilizes the Google Gemini Vision API to interact with YouTube videos. It allows users to get descriptions, summaries, answers to questions, and extract key moments from YouTube videos.427 npm6MIT