一个基于模型上下文协议(MCP)的服务器,使AI编码助手(如Claude、Cursor、Windsurf等)能够分析YouTube视频的文字记录。该服务器使用Gemini API处理YouTube视频并提取其文字记录以回答问题,从而使视频内容可供您的AI助手进行分析、总结和学习。
🤖 多客户端支持:适用于Claude Code、Cursor、Windsurf和其他兼容MCP的客户端
安装程序会自动检查所有依赖项,并在缺少任何组件时提供特定于平台的安装说明。
这些安装程序直接下载服务器,无需git:
curl
curl -sSL https://raw.githubusercontent.com/boxabirds/yt-gemini-mcp/main/install-mcp-universal-no-git.sh | bash
wget
wget -qO- https://raw.githubusercontent.com/boxabirds/yt-gemini-mcp/main/install-mcp-universal-no-git.sh | bash
# 快速安装
iwr -useb https://raw.githubusercontent.com/boxabirds/yt-gemini-mcp/main/install-mcp-universal-no-git.ps1 | iex
为了最简单的体验,请下载两个文件:
# 下载PowerShell安装程序及其包装器
curl -O https://raw.githubusercontent.com/boxabirds/yt-gemini-mcp/main/install-mcp-universal-no-git.ps1
curl -O https://raw.githubusercontent.com/boxabirds//yt-gemini-mcp/main/install-mcp-universal-no-git.cmd
# 运行安装程序
install-mcp-universal-no-git.cmd
或者直接使用上述的PowerShell。
您也可以将这些脚本作为GitHub Gists分享:
# Unix/Linux/macOS
curl -sSL https://gist.github.com/YOUR_USERNAME/GIST_ID/raw/install-mcp-universal-no-git.sh | bash
# Windows
iwr -useb https://gist.github.com/YOUR_USERNAME/GIST_ID/raw/install-mcp-universal-no-git.ps1 | iex
如果您更喜欢克隆仓库:
# 克隆并运行安装程序
git clone https://github.com/your-username/yt-gemini-mcp.git
cd yt-gemini-mcp
chmod +x install-mcp-universal.sh
./install-mcp-universal.sh
# 克隆并运行安装程序
git clone https://github.com/your-username/yt-gemini-mcp.git
cd yt-gemini-mcp
install-mcp-universal.cmd
安装后,服务器将在您的AI助手中的ask-youtube可用。
你能分析一下这个关于Python异步编程的YouTube视频吗?
https://www.youtube.com/watch?v=example123
Claude将自动使用ask-youtube服务器来获取并分析视频内容。
安装后,您可以测试服务器:
~/Library/Application\ Support/YouTube-Transcript-MCP/test-server.sh
~/.mcp-installer/test-server.sh
%LOCALAPPDATA%\.mcp-installer\test-server.cmd
安装程序在以下位置创建文件:
~/Library/Application Support/YouTube-Transcript-MCP/servers/~/.mcp-installer/servers/%LOCALAPPDATA%\.mcp-installer\servers\~/Library/Application Support/YouTube-Transcript-MCP/venv/~/.mcp-installer/venv/%LOCALAPPDATA%\.mcp-installer\venv\claude mcp add命令管理~/.cursor/mcp.json或%USERPROFILE%\.cursor\mcp.json~/.gemini/settings.json或%USERPROFILE%\.gemini\settings.json确保至少安装了一个支持的客户端,并且它位于系统PATH中(对于像Claude Code这样的命令行工具)。
根据错误消息安装缺失的依赖项。安装程序提供了特定于平台的安装命令。
jq未找到(Unix/Linux/macOS):
# macOS
brew install jq
# Ubuntu/Debian
sudo apt-get install jq
# RHEL/CentOS
sudo yum install jq
Python未找到:
您必须提供有效的Gemini API密钥。从Google AI Studio获取。
安装程序尝试多个来源:
如果全部失败,您可能需要:
确保AI助手安装在默认位置:
~/.gemini/claude命令在PATH中可用~/.cursor/或%USERPROFILE%\.cursor\keys.json中,具有受限文件权限(仅限所有者)keys.json文件或测试脚本要更新服务器,只需再次运行安装程序。它将:
欢迎贡献!请随时提交Pull Request。
此项目是开源的,可在MIT许可证下获得。