Skip to main content
Glama
maoxiaoke

MCP Media Processing Server

by maoxiaoke

MCP媒体处理服务器

铁匠徽章

一个实现模型上下文协议 (MCP) 的 Node.js 服务器,用于媒体处理操作,提供强大的视频和图像处理功能。

特征

  • 视频处理和转换

  • 图像处理和操作

  • 媒体压缩

  • 视频剪辑和编辑

  • 图像效果和水印

Related MCP server: MCP FFmpeg Video Processor

先决条件

在使用此服务器之前,请确保您的系统上安装了以下依赖项:

  • FFmpeg :视频处理操作所需

    • macOS: brew install ffmpeg

    • Ubuntu/Debian: sudo apt-get install ffmpeg

    • Windows:从FFmpeg官方网站下载

  • ImageMagick :图像处理操作所需

    • macOS: brew install imagemagick

    • Ubuntu/Debian: sudo apt-get install imagemagick

    • Windows:从ImageMagick 官方网站下载

如何使用

将其添加到您的claude_desktop_config.json中:

NPX

{
  "mcpServers": {
    "mediaProcessor": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-media-processor@latest"
      ]
    }
  }
}

API

工具

视频操作

  • 执行ffmpeg

    • 使用自定义选项执行任何 FFmpeg 命令

    • 输入:

      • inputPath (字符串):输入视频文件的绝对路径

      • options (string[]):FFmpeg 命令选项数组

      • outputPath (字符串,可选):输出文件的绝对路径

      • outputFilename (字符串,可选):输出文件名

  • 转换视频

    • 将视频转换为不同的格式

    • 输入:

      • inputPath (字符串):输入视频文件的绝对路径

      • outputFormat (字符串):所需的输出格式(例如,mp4、mkv、avi)

      • outputPath (字符串,可选):自定义输出路径

      • outputFilename (字符串,可选):自定义输出文件名

  • 压缩视频

    • 压缩视频文件

    • 输入:

      • inputPath (字符串):输入视频文件的绝对路径

      • quality (数字,可选):压缩质量(1-51,质量越低越好)

      • outputPath (字符串,可选):自定义输出路径

      • outputFilename (字符串,可选):自定义输出文件名

  • 修剪视频

    • 将视频修剪至指定时长

    • 输入:

      • inputPath (字符串):输入视频文件的绝对路径

      • startTime (字符串):开始时间,格式为 HH:MM:SS

      • duration (字符串):持续时间,格式为 HH:MM:SS

      • outputPath (字符串,可选):自定义输出路径

      • outputFilename (字符串,可选):自定义输出文件名

图像操作

  • 压缩图像

    • 使用 ImageMagick 压缩 PNG 图像

    • 输入:

      • inputPath (字符串):输入 PNG 图像的绝对路径

      • quality (数字,可选):压缩质量(1-100)

      • outputPath (字符串,可选):自定义输出路径

      • outputFilename (字符串,可选):自定义输出文件名

  • 转换图像

    • 将图像转换为不同的格式

    • 输入:

      • inputPath (字符串):输入图像文件的绝对路径

      • outputFormat (字符串):所需的输出格式(例如,jpg,png,webp,gif)

      • outputPath (字符串,可选):自定义输出路径

      • outputFilename (字符串,可选):自定义输出文件名

  • 调整图像大小

    • 将图像调整为指定尺寸

    • 输入:

      • inputPath (字符串):输入图像文件的绝对路径

      • width (数字,可选):目标宽度(以像素为单位)

      • height (数字,可选):目标高度(以像素为单位)

      • maintainAspectRatio (boolean, 可选): 是否保持纵横比

      • outputPath (字符串,可选):自定义输出路径

      • outputFilename (字符串,可选):自定义输出文件名

  • 旋转图像

    • 按指定角度旋转图像

    • 输入:

      • inputPath (字符串):输入图像文件的绝对路径

      • degrees (数字):旋转角度(度)

      • outputPath (字符串,可选):自定义输出路径

      • outputFilename (字符串,可选):自定义输出文件名

  • 添加水印

    • 为图像添加水印

    • 输入:

      • inputPath (字符串):输入图像文件的绝对路径

      • watermarkPath (字符串):水印图像文件的绝对路径

      • position (字符串,可选):水印的位置(默认值:“东南”)

      • opacity (数字,可选):水印不透明度(0-100)

      • outputPath (字符串,可选):自定义输出路径

      • outputFilename (字符串,可选):自定义输出文件名

  • 应用效果

    • 对图像应用视觉效果

    • 输入:

      • inputPath (字符串):输入图像文件的绝对路径

      • effect (字符串):要应用的效果(模糊、锐化、边缘、浮雕、灰度、棕褐色、否定)

      • intensity (数字,可选):效果强度(0-100)

      • outputPath (字符串,可选):自定义输出路径

      • outputFilename (字符串,可选):自定义输出文件名

执照

此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。

Install Server
F
license - not found
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maoxiaoke/mcp-media-processor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server