
Ffmpeg Mcp
io.github.PedroMarianoAlmeida由 GitHub 帳號 PedroMarianoAlmeida 發布v1.0.2更新於 Oct 24, 2026
FFmpeg video/audio tools: cut, convert, concat, remove silence, and raw commands.
概覽
本機 MCP 伺服器,為助理提供 FFmpeg 工具,可在工作區內剪裁、轉檔、合併影音並移除靜音。
- 可以做什麼
- 依起始時間與長度擷取影片片段,或將靜態圖片轉為固定長度影片
- 將多段影片合併成一個檔案
- 在 mp4、mp3、wav、mov 等格式間轉檔,包含從影片擷取音訊
- 自動偵測並移除影片或播客音訊中的靜音片段
- 以本機輸入、單一輸出路徑與少量編解碼及時間選項執行受限的 FFmpeg 指令
- 適用情境
- 適合讓助理對本機檔案做日常媒體處理,例如裁切片段、轉換格式、合併影片或去除靜音;由於內附 FFmpeg 執行檔,不需在系統中另外安裝。
- 執行需求
- 以本機程序執行,可透過 npm 套件 ffmpeg-mcp-server 安裝,或以 Node.js 從原始碼建置,已內附 FFmpeg 執行檔。可選擇設定 FFMPEG_MCP_WORKSPACE 指定媒體目錄,未設定時使用伺服器目前的工作目錄。執行工具前須先建立輸出目錄。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Ffmpeg Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
FFmpeg MCP Server
A Model Context Protocol (MCP) server that provides video and audio manipulation tools powered by FFmpeg. This server enables AI assistants to perform media operations like cutting videos, converting formats, removing silence, and more.
Features
- Self-contained - Includes bundled FFmpeg binary via
ffmpeg-static, no system installation required - Format conversion - Convert between audio/video formats (mp4, mp3, wav, mov, etc.)
- Video editing - Cut segments, concatenate multiple videos, convert images to video
- Audio processing - Detect and remove silent segments automatically
- Local by default - Inputs and outputs stay inside a configured workspace
Available Tools
Installation
From npm (recommended)
From source
Configuration
Workspace and safety
Every input and output must be inside FFMPEG_MCP_WORKSPACE. If it is unset, the server's current working directory is used. The server resolves symlinks before reading and rejects URL schemes, traversal outside the workspace, and symlink outputs. Create output directories before running a tool.
ffmpeg_raw is deliberately restricted. It accepts local -i inputs, one final local output path, and a small set of codec and timing options. It does not accept filters, forced formats, or arbitrary FFmpeg flags because those options can load extra files or use network protocols.
For example, set a dedicated media directory in your MCP configuration:
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code
Add to your Claude Code MCP settings:
Usage Examples
Cut a video segment
Convert formats
Remove silence
Restricted raw operations
Development
License
MIT
來源:README.md,提交 518b13c
工具
0版本歷史
1- v1.0.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分