MM

mikechambers/media-utils-mcp

Deployment & 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 では、Cocolatey を使用します:

インストール

必要な依存関係をインストールします。

Claude デスクトップにインストールするには、 claude desktop config.json ファイルに以下を追加します。

使用法

サーバを実行するには:

[--permitted] フラグは、MCP のどのディレクトリがセキュリティ上の理由でアクセスできるかを指定するために使用されます。

開発

MCP 検査器を使用して開発を実行できます。

##特徴

このMCPは、メディアファイルを分析するためのツールを提供します。

-getMediaInfo: ファイルが画像や動画であるかを自動的に検出し、適切なメタデータを返す

  • getAllowedDirectories : MCP がアクセスできるディレクトリのリスト(設定で指定)

-ImagesFromVideos : 各ビデオからイメージを生成します。これは、ビデオのコンテンツの最も代表的なフレームからです。

質問、機能要求、フィードバック

ご質問、機能リクエスト、ヘルプが必要な場合、またはチャットが必要な場合は、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
MCP 初心者?mcpskill.org のガイドから始めましょう →