Token导航 LogoToken导航TokenDH.com
Popcorn MCP logo
音视频stdio官方级别未说明来源级核验

Popcorn MCP

MCP Server

Popcorn是一款为AI代理设计的本地视频分析工具,能够提取视频转录、检测场景变化并返回关键帧,适用于编码代理理解视频内容。

工具数

5

提示词数

0

GitHub Stars

4

资源数

0
视频分析本地处理TypeScriptClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

haithamelmengad

提供方

haithamelmengad

最后核验

2026/5/17 20:45

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install mlx-whisper # Apple Silicon (fastest)

详细介绍

README • ⚖️ License

🍿

popcorn

🇨🇳 中文 • 🇯🇵 日本語 • 🇰🇷 한국어 • 🇪🇸 Español • 🇩🇪 Deutsch • 🇫🇷 Français • 🇧🇷 Português • 🇷🇺 Русский • 🇸🇦 العربية • 🇮🇹 Italiano • 🇳🇱 Nederlands • 🇹🇷 Türkçe • 🇻🇳 Tiếng Việt • 🇮🇳 हिन्दी

An agent skill that gives any coding agent the ability to watch and understand video. Works with Claude Code, Codex, and any MCP-compatible agent.

Quick Start • How It Works • MCP Tools • Transcription • Configuration • Troubleshooting • License

Popcorn enables AI agents to watch and understand long-form videos by extracting transcripts, detecting scene changes, and returning key frames. Everything runs locally—no external APIs, no fees, complete privacy.

______________________________________________________________________

快速开始

# Install FFmpeg (required)
brew install ffmpeg                    # macOS
sudo apt install ffmpeg                # Ubuntu/Debian

# Install Popcorn
git clone https://github.com/anthropics/popcorn.git
cd popcorn && npm install && npm run build

# Optional: Install a transcription backend
pip install mlx-whisper                # Apple Silicon (fastest)
pip install openai-whisper             # Any platform

添加到Claude桌面配置(~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "popcorn": {
      "command": "node",
      "args": ["/path/to/popcorn/dist/index.js"]
    }
  }
}

主要特点:

  • 场景检测 --以视觉过渡而非固定间隔捕获帧
  • 本地转录 --4种后端选项(mlx耳语、更快耳语、耳语cpp、耳语)
  • 内联图像 --在MCP响应中直接返回关键帧
  • 智能预设 --自动配置屏幕录像、演示文稿、电影、采访
  • 零配置 --只需通过一条视频路径,它就可以工作了
  • 隐私第一 --一切都在本地运行,没有数据离开您的机器

______________________________________________________________________

文档

入门指南

指南

参考

______________________________________________________________________

运作原理

核心组件:

  1. FF探头 --提取视频元数据(持续时间、分辨率、编解码器)
  2. FFmpeg场景检测 --使用以下命令查找视觉过渡 select='gt(scene,N)' 过滤器
  3. 并行帧提取 --在场景切换时间戳处捕获JPEG
  4. 多后端转录 --Whisper变体将音频转换为带时间戳的文本
  5. 分析包 --结果保存到 .popcorn/ 目录
  6. MCP响应 --返回元数据+内联base64图像
Video File ──▶ FFprobe ──▶ FFmpeg ──▶ Whisper ──▶ Analysis Bundle
                 │           │          │              │
                 ▼           ▼          ▼              ▼
              metadata    frames    transcript    MCP Response

______________________________________________________________________

MCP工具

工具说明
popcorn_analyze主分析——提取帧,转录音频,返回结果
popcorn_suggest探测视频元数据并获取推荐设置
popcorn_presets列出可用的视频类型和目标
popcorn_backends检测您的系统并显示转录选项
popcorn_read使用时间过滤读取转录片段

基本用法

{
  "tool": "popcorn_analyze",
  "arguments": {
    "path": "/path/to/video.mp4"
  }
}

带预设

{
  "tool": "popcorn_analyze",
  "arguments": {
    "path": "/path/to/video.mp4",
    "videoType": "screencast",
    "objective": "detailed"
  }
}

______________________________________________________________________

视频类型

类型最适合场景检测
screencast教程、编码课程、UI演示低门槛
presentation幻灯片、讲座、主题演讲幻灯片转换
movie电影、电视节目平衡
interview播客、谈话主持人转录优先级
surveillance监控录像,行车记录仪高门槛
sports实时事件,快速动作高帧率

目标

目标使用时间
summary需要快速概述
detailed不要错过任何东西
find_moment搜索特定内容
transcribe音频/语音最重要
visual_only只关心视觉效果
quick_scan需要快速预览

______________________________________________________________________

转录后端

Popcorn会自动检测您的系统并推荐最佳后端。

后端比较

后端速度最适合安装
mlx耳语最快苹果硅(M1/M2/M3/M4)pip install mlx-whisper
更快的耳语快速NVIDIA GPUpip install faster-whisper
耳语cpp中等跨平台brew install whisper-cpp
低语最兼容pip install openai-whisper

处理时间(60分钟视频)

后端时间
mlx耳语3-8分钟
更快的耳语5-10分钟
耳语cpp10-20分钟
耳语30-60分钟

强制后端

{
  "tool": "popcorn_analyze",
  "arguments": {
    "path": "/path/to/video.mp4",
    "backend": "mlx-whisper"
  }
}

______________________________________________________________________

配置

所有参数

参数类型说明
path字符串必修的。 视频文件的绝对路径
videoTypestring视频类型预设
objectivestring分析目标预设
transcribeboolean启用/禁用转录
backendstring转录后端
modelstringWhisper型号(tiny, base, small, medium, large)
languagestring语言代码(例如。, en, es, fr)
frameMode字符串sceneinterval
sceneThresholdnumber场景灵敏度(0-1)
maxFramesnumber要提取的最大帧数
inlineFramesnumber以base64格式返回的帧

输出结构

.popcorn/_/
├── analysis.json          # Full metadata
├── transcript.txt         # Plain text
├── transcript.json        # Timestamped segments
├── transcript.chunks.json # LLM-friendly chunks
└── assets/
    ├── audio.wav
    └── frames/
        ├── scene_000001.jpg
        └── ...

______________________________________________________________________

故障排除

未找到FFmpeg

brew install ffmpeg          # macOS
sudo apt install ffmpeg      # Ubuntu/Debian

无转录后端

pip install mlx-whisper      # Apple Silicon
pip install openai-whisper   # Any platform

检测到的帧太少

{ "sceneThreshold": 0.15, "minSceneInterval": 2 }

检测到太多帧

{ "sceneThreshold": 0.5, "minSceneInterval": 10 }

故障排除指南 更多解决方案。

______________________________________________________________________

发展

npm install          # Install dependencies
npm run build        # Build
npm run dev          # Development mode
npm start            # Run server

项目结构

popcorn/
├── src/
│   ├── index.ts        # MCP server
│   ├── analyze.ts      # Analysis pipeline
│   ├── ffmpeg.ts       # Video processing
│   ├── transcribe.ts   # Multi-backend transcription
│   ├── presets.ts      # Video type presets
│   └── commands.ts     # Shell execution
├── docs/               # Documentation
└── skills/             # Agent skills

______________________________________________________________________

贡献

  1. 分叉存储库
  2. 创建要素分支(git checkout -b feature/amazing)
  3. 提交更改(git commit -m 'Add amazing feature')
  4. 推送到分支(git push origin feature/amazing)
  5. 打开拉取请求

______________________________________________________________________

许可证

MIT许可证——见 许可证 了解详情。

______________________________________________________________________

致谢

______________________________________________________________________

Made with 🍿 for AI agents everywhere

目录标签

目录标签

视频分析本地处理TypeScriptClaude本地部署AI代理工具场景检测语音转录

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

5

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP