MM

mikechambers/media-utils-mcp

部署与 DevOps

本页由 AI 翻译,技术细节请以原文为准。 查看原文

20 stars 6 forks 质量 49 趋势 0MIT

MCP旨在提供视频和图像处理工具。

概览

MCP服务器提供音频/视频文件处理和分析。 下载FFMPEG,确保它在你的系统路径中。 要安装到 Claude 桌面,请在文件中添加以下内容。 --permitted 标志用于指定 MCP 出于安全原因允许访问哪些目录根节点。 你可以在开发中使用MCP检查器运行: 该MCP提供了分析媒体文件的工具: - : 自动检测文件是图片还是视频,并返回相应的元数据 - : 列出MCP可访问的目录(配置中指定)

概述(AI 翻译)

MCP服务器提供音频/视频文件处理和分析。

要求

FFMPEG

下载FFMPEG,确保它在你的系统路径中。

在 MacOS 上你可以运行:

关于Ubuntu/Debian:

在Windows上,使用Chocolatey:

安装

安装所需的依赖:

要安装到 Claude 桌面,请在 claude_desktop_config.json 文件中添加以下内容。

用途

运行服务器:

--permitted 标志用于指定 MCP 出于安全原因允许访问哪些目录根节点。

发展

你可以在开发中使用MCP检查器运行:

特色

该MCP提供了分析媒体文件的工具:

  • getMediaInfo:自动检测文件是图片还是视频,并返回相应的元数据

  • getAllowedDirectories :列出MCP可访问的目录(配置中指定)

  • 生成图片来自视频:从每个视频生成一张图像,图片来自最能代表视频内容的帧。

问题、功能请求、反馈

如果你有任何问题、功能请求、需要帮助,或者只是想聊天,欢迎加入Discord。

本页由 AI 翻译,技术细节请以原文为准。

README

Media Utils MCP

MCP Server that provides audio / video file processing and analysis.

Requirements

FFMPEG

Download FFMPEG and make sure that it’s in your system path.

On MacOS you can run:

brew install ffmpeg

On Ubuntu/Debian:

sudo apt install ffmpeg

On Windows, use Chocolatey:

choco install ffmpeg

Installation

Install the required dependencies:

npm install @modelcontextprotocol/sdk sharp fluent-ffmpeg zod

To install into Claude desktop, add the following to the claude_desktop_config.json file.

    "media-utils": {
      "command": "npx",
      "args": [
        "-y",
        "node",
        "/Users/FOO/src/media-utils-mcp/src/media-utils-mcp.js",
        "--permitted",
        "/Users/FOO/Desktop/mcp"
      ]
    }

Usage

To run the server:

node src/media-utils-mcp.js --permitted /path/to/dir1 /path/to/dir2

The --permitted flag is used to specify which directories roots the MCP is allowed to access for security reasons.

Development

You can run in development using the MCP inspector:

npx @modelcontextprotocol/inspector node src/media-utils-mcp.js --permitted /Users/FOO/Desktop/mcp/

Features

This MCP provides tools for analyzing media files:

  • getMediaInfo: Automatically detects whether files are images or videos and returns appropriate metadata

  • getAllowedDirectories : List the directories the MCP has access to (specified in config)

  • generateImagesFromVideos : Generates an image from each video, which is from a frame most representative of the content in the video.

Questions, Feature Requests, Feedback

If you have any questions, feature requests, need help, or just want to chat, join the discord.

You can also log bugs and feature requests on the issues page.

License

Project released under a MIT License.

在 GitHub 查看完整 README

安装

npx -y node /Users/FOO/src/media-utils-mcp/src/media-utils-mcp.js --permitted /Users/FOO/Desktop/mcp
新手?先看 mcpskill.org 教程 →