Skip to main content
Glama
bitscorp-mcp

MCP FFmpeg Video Processor

by bitscorp-mcp

MCP FFmpeg 视频处理器

铁匠徽章

一个使用 FFmpeg 处理视频文件的 Node.js 服务器。此服务器提供以下 API:

  • 将视频调整为不同的分辨率(360p、480p、720p、1080p)

  • 从各种格式的视频中提取音频(MP3、AAC、WAV、OGG)

先决条件

在运行此应用程序之前,您需要安装以下内容:

  1. Node.js (v14 或更高版本)

  2. **FFmpeg——**视频处理需要它

安装 FFmpeg

在 macOS 上:

brew install ffmpeg

在 Ubuntu/Debian 上:

sudo apt update
sudo apt install ffmpeg

在 Windows 上:

  1. 官方网站下载FFmpeg

  2. 将文件解压到文件夹(例如, C:\ffmpeg

  3. bin文件夹添加到 PATH 环境变量中

Related MCP server: ffmpeg-mcp

安装

  1. 克隆此存储库:

git clone https://github.com/bitscorp-mcp/mcp-ffmpeg.git
cd mcp-ffmpeg
  1. 安装依赖项:

npm install

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 mcp-ffmpeg:

npx -y @smithery/cli install @bitscorp-mcp/mcp-ffmpeg --client claude

运行服务器

使用以下命令启动服务器:

npm start

对于文件更改时自动重启的开发:

npm run dev

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 mcp-ffmpeg:

npx -y @smithery/cli install @bitscorp-mcp/mcp-ffmpeg --client claude

要为 Cursor 安装 mcp-ffmpeg,请转至“设置”->“Cursor 设置”->“功能”->“MCP 服务器”->“+ 添加”

选择类型:命令并粘贴以下内容,使用来自 Adjust 的 API 密钥

npx -y @smithery/cli@latest run @bitscorp/mcp-ffmpeg

与 Claude Desktop 一起使用

该 MCP FFmpeg 服务器可以与 Claude Desktop 集成,通过自然语言请求处理视频。

使用 npx 运行

您可以直接使用 npx 运行服务器:

npx /path/to/mcp-ffmpeg

或者如果你已经将包发布到 npm:

npx mcp-ffmpeg

配置 Claude 桌面

要将此服务器添加到 Claude Desktop,请更新您的 Claude Desktop 配置文件:

  1. 找到您的 Claude Desktop 配置文件:

    • macOS: ~/.config/claude-desktop/config.json~/Library/Application Support/Claude Desktop/config.json

    • Windows: %APPDATA%\Claude Desktop\config.json

    • Linux: ~/.config/claude-desktop/config.json

  2. 将 FFmpeg MCP 服务器添加到mcpServers部分:

{
    "mcpServers": {
        "ffmpeg": {
            "command": "npx",
            "args": [
                "--yes",
                "/absolute/path/to/mcp-ffmpeg"
            ]
        }
    }
}

如果您已将软件包发布到 npm:

{
    "mcpServers": {
        "ffmpeg": {
            "command": "npx",
            "args": [
                "--yes",
                "mcp-ffmpeg"
            ]
        }
    }
}
  1. 重新启动 Claude Desktop 以使更改生效。

克劳德的示例提示

配置完成后,您可以使用如下提示:

Using the ffmpeg MCP server, please resize the video at /path/to/video.mp4 to 720p resolution.

笔记

  • 上传的视频暂时存储在uploads目录中

  • 处理后的视频和音频文件存储在output目录中

  • 服务器上传文件大小限制为 500MB

执照

麻省理工学院

Available Tools

4 tools
extract-audioC

Extract audio from a video file

ParametersJSON Schema
NameRequiredDescriptionDefault
videoPathYesPath to the video file to extract audio from
formatNoAudio format to extractmp3
outputDirNoOptional directory to save the output file (defaults to a temporary directory)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states what the tool does but doesn't cover important behavioral aspects like whether it modifies the original video file, what permissions are needed, error handling, or performance characteristics. The description is minimal and lacks operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with just one sentence that directly states the tool's purpose. There's no wasted language or unnecessary elaboration, making it front-loaded and efficient. Every word earns its place in conveying the core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is insufficiently complete. It doesn't explain what the tool returns (e.g., path to extracted audio file, success/failure indicators) or important behavioral details. For a tool that performs file operations with multiple parameters, more context is needed for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description doesn't add any parameter information beyond what's already in the schema, which has 100% coverage with clear descriptions for all parameters. The baseline score of 3 reflects that the schema adequately documents parameters, so the description doesn't need to compensate but also doesn't provide additional value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('extract') and resource ('audio from a video file'), making it immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'get-video-info' or 'resize-video', which might also involve video processing but serve different functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools or any context-specific usage scenarios, leaving the agent to infer based on tool names alone. There's no explicit when/when-not or alternative recommendations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get-ffmpeg-versionA

Get the version of FFmpeg installed on the system

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool retrieves version information, implying a read-only operation, but does not disclose potential side effects, error conditions, permissions required, or output format. This leaves significant gaps in understanding how the tool behaves beyond its basic function.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that directly states the tool's purpose without any unnecessary words or structural fluff. It is front-loaded and efficiently communicates the essential information, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is adequate for a basic read operation but incomplete for practical use. It lacks details on output format (e.g., string, object), error handling, or system dependencies, which are important for an agent to invoke it correctly in varied contexts.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, so the schema fully documents the lack of inputs. The description appropriately does not mention parameters, aligning with the schema. Since there are no parameters to explain, this meets the baseline for tools without inputs, though it doesn't add extra semantic context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get') and resource ('version of FFmpeg installed on the system'), distinguishing it from sibling tools like 'extract-audio' or 'resize-video' which perform different operations. It precisely defines what the tool does without being vague or tautological.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'get-video-info' (which might include version information) or other system-check tools. It lacks explicit context, prerequisites, or exclusions, offering only a basic statement of purpose without usage instructions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get-video-infoC

Get detailed information about a video file

ParametersJSON Schema
NameRequiredDescriptionDefault
videoPathYesPath to the video file to analyze

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden but only states what the tool does without behavioral details. It doesn't disclose if this is a read-only operation, potential errors (e.g., invalid paths), performance aspects, or output format, which are critical for a tool with no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's function without unnecessary words. It's appropriately sized and front-loaded, making it easy to understand at a glance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what 'detailed information' includes (e.g., metadata, duration, resolution) or behavioral traits, leaving gaps that could hinder an agent's ability to use the tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with the single parameter 'videoPath' documented in the schema. The description adds no additional meaning beyond what the schema provides, such as examples or constraints, so it meets the baseline for high coverage without extra value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get detailed information') and resource ('about a video file'), making the tool's purpose understandable. However, it doesn't differentiate from sibling tools like 'get-ffmpeg-version' or 'resize-video' beyond the general video focus, which keeps it from a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description lacks context about prerequisites, such as needing a valid video file path, or comparisons to siblings like 'extract-audio' for audio-related tasks, leaving usage unclear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

resize-videoB

Resize a video to one or more standard resolutions

ParametersJSON Schema
NameRequiredDescriptionDefault
videoPathYesPath to the video file to resize
resolutionsYesResolutions to convert the video to
outputDirNoOptional directory to save the output files (defaults to a temporary directory)

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action ('resize a video') but doesn't describe what happens (e.g., creates new files, overwrites existing ones, requires specific permissions, or has performance/rate limits). For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded with the core action ('resize a video') and adds clarifying detail ('to one or more standard resolutions'). Every part of the sentence earns its place by specifying scope and output.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (a mutation operation with 3 parameters), no annotations, and no output schema, the description is minimally adequate. It covers the basic purpose but lacks details on behavioral traits, error handling, or output format. For a video processing tool, more context on file formats, processing time, or result location would be beneficial.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all three parameters thoroughly. The description adds minimal value beyond the schema by mentioning 'standard resolutions', which aligns with the enum in the schema but doesn't provide additional context like aspect ratio preservation or quality settings. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'resize' and resource 'video', specifying it converts to 'standard resolutions'. It distinguishes from sibling tools like 'extract-audio' or 'get-video-info' by focusing on resolution transformation rather than extraction or metadata retrieval. However, it doesn't explicitly differentiate from all siblings (e.g., 'get-ffmpeg-version' is clearly different).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., video file format compatibility), when not to use it (e.g., for non-standard resolutions), or how it relates to sibling tools like 'extract-audio' for audio-only processing. Usage is implied only by the tool name and description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.0
    • Changedget-ffmpeg-version1 field changed
      • removedInput schema / additionalProperties
        Removed value: -false
  2. 4 tool updates
    • First observedextract-audio
    • First observedget-ffmpeg-version
    • First observedget-video-info
    • First observedresize-video

TDQS

B3.1/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: extract-audio handles audio extraction, get-ffmpeg-version checks system version, get-video-info provides metadata, and resize-video adjusts video dimensions. There is no overlap in functionality, making tool selection unambiguous.

Naming Consistency4/5

The tools follow a consistent verb-noun pattern with hyphens (e.g., extract-audio, resize-video), except for get-ffmpeg-version which includes an extra noun. This minor deviation does not significantly impact readability or predictability.

Tool Count3/5

With only 4 tools, the set feels thin for a video processing domain. While the tools cover basic operations, there are likely gaps for common tasks like format conversion, trimming, or adding effects, which might limit agent effectiveness.

Completeness2/5

The tool set is severely incomplete for video processing. It lacks essential operations such as format conversion, trimming/cutting, merging videos, adding subtitles, or applying filters. This will cause frequent agent failures when handling typical video editing workflows.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers