Youtube Whisper Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Youtube Whisper Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
一个基于 Whisper 语音识别的 YouTube 视频总结 MCP 服务器,解决原版 MCP 无法处理无字幕视频的问题。
✅ 无需字幕 - 直接从音频转录,不依赖视频字幕 ✅ 中文优化 - 针对中文视频优化,支持中英混合 ✅ 完全本地 - 所有处理在本地完成,保护隐私 ✅ 免费使用 - 基于开源工具,无 API 费用
YouTube 视频 → yt-dlp 下载音频 → Whisper 转文字 → GPT 总结在安装此 MCP 服务器之前,请确保已安装以下工具:
# 安装 Homebrew(如未安装)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 安装依赖
brew install yt-dlp ffmpeg
# 安装 Whisper
pip install openai-whisper
# 或者使用 Homebrew
brew install whisper# Ubuntu/Debian
sudo apt update
sudo apt install yt-dlp ffmpeg
pip install openai-whisper
# 或者使用 pipx
pipx install openai-whisper# 使用 Chocolatey
choco install yt-dlp ffmpeg
# 安装 Python(如果未安装)
choco install python
# 安装 Whisper
pip install openai-whisper推荐使用 nvm 安装:
# macOS/Linux
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install --lts
nvm use --lts
# Windows
# 从 https://nodejs.org 下载安装# 克隆或下载此项目
cd youtube-whisper-mcp
# 安装依赖
npm install
# 构建
npm run build在 OpenCode 配置文件中添加:
{
"mcpServers": {
"youtube-whisper": {
"command": "node",
"args": ["/path/to/your/youtube-whisper-mcp/server.js"]
}
}
}或者使用 npx(推荐):
{
"mcpServers": {
"youtube-whisper": {
"command": "npx",
"args": ["-y", "youtube-whisper-mcp"]
}
}
}注意:如需使用 npx 方式,请先发布到 npm:
npm publishnpm test或者运行快速测试脚本:
node quick-test.js安装后,以下工具将自动在 OpenCode 中可用:
总结 YouTube 视频(无需字幕)
参数:
url (必填): YouTube 视频链接summary_length (可选): 总结长度 - short | medium | long使用示例:
"summarize https://www.youtube.com/watch?v=VIDEO_ID"返回:
{
"video_info": {
"title": "视频标题",
"url": "https://youtube.com/watch?v=...",
"duration": "23:10",
"uploader": "频道名称",
"views": 24943
},
"summary": "视频内容总结...",
"transcript_length": 5000,
"full_transcript": "完整转录文本..."
}获取视频完整转录文本
参数:
url (必填): YouTube 视频链接使用示例:
"get transcript of https://www.youtube.com/watch?v=VIDEO_ID" // 在 transcribeAudio 函数中修改
const command = `whisper "${audioPath}" --model tiny --language Chinese --output_format json`;tiny - 最快,最不准确base - 平衡选择small - 推荐日常使用medium - 准确,但较慢large - 最准确,最慢问题: ERROR: Unable to download video data: HTTP Error 403
解决方案:
# 更新 yt-dlp
pip install -U yt-dlp
# 或使用 Homebrew
brew upgrade yt-dlp问题: whisper: command not found
解决方案:
# 确保 Whisper 已安装
which whisper
# 如果使用 pip 安装,可能需要添加到 PATH
export PATH="$PATH:$(python -m site --user-base)/bin"解决方案:
--model medium 或 --model large--language Chinese解决方案:
-x 参数)可以加快处理MCP 服务器会在 /tmp/youtube-whisper-mcp/ 目录自动清理。但您可以手动清理:
rm -rf /tmp/youtube-whisper-mcp/*默认使用简单截取,您可以通过集成 OpenAI/Claude API 来获得更好的总结效果:
// 在 server.js 中修改 summarizeText 函数
async function summarizeText(text) {
const response = await axios.post('https://api.openai.com/v1/chat/completions', {
model: 'gpt-3.5-turbo',
messages: [
{
role: 'system',
content: '你是一个专业的视频内容总结助手。请用简洁的中文总结以下内容。'
},
{
role: 'user',
content: `请总结这段视频转录内容(500字左右):\n\n${text}`
}
],
max_tokens: 1000
}, {
headers: {
'Authorization': `Bearer ${process.env.OPENAI_API_KEY}`,
'Content-Type': 'application/json'
}
});
return response.data.choices[0].message.content;
}如果您喜欢 NoteGPT 的总结效果,可以这样组合使用:
"get transcript of https://youtube.com/watch?v=..."youtube-whisper-mcp/
├── server.js # MCP 服务器主程序
├── package.json # 项目配置
├── README.md # 使用说明
├── quick-test.js # 快速测试脚本
└── .gitignore # Git 忽略配置欢迎贡献代码!请遵循以下步骤:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)本项目基于 MIT 许可证开源。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.