Skip to main content
Glama

MCP Media Processing Server

by maoxiaoke

MCP媒体处理服务器

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

特征

  • 视频处理和转换
  • 图像处理和操作
  • 媒体压缩
  • 视频剪辑和编辑
  • 图像效果和水印

先决条件

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

  • 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 文件。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Node.js 服务器通过模型上下文协议提供高级视频和图像处理功能,支持转换、压缩、编辑和效果应用等操作。

  1. 特征
    1. 先决条件
      1. 如何使用
        1. NPX
      2. API
        1. 工具
      3. 执照

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Node.js server implementing Model Context Protocol that enables interaction with TaskWarrior through natural language to view, filter, add, and complete tasks.
          Last updated -
          3
          13
          1
          JavaScript
          MIT License
        • -
          security
          F
          license
          -
          quality
          Node.js server implementing Model Context Protocol for filesystem operations, allowing Claude to read, write, and manipulate files and directories in specified locations.
          Last updated -
          37,693
          JavaScript
        • -
          security
          F
          license
          -
          quality
          A Node.js server that enables video manipulation through natural language requests, including resizing videos to different resolutions (360p to 1080p) and extracting audio in various formats (MP3, AAC, WAV, OGG).
          Last updated -
          34
          2
          TypeScript
          • Apple
          • Linux
        • -
          security
          F
          license
          -
          quality
          A Node.js application that provides a Model Context Protocol server for interacting with Harbor container registry, supporting operations for projects, repositories, tags, and Helm charts.
          Last updated -
          TypeScript

        View all related MCP servers

        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