SM

sealingp/mcp-video-extraction

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

12 stars 6 forks Качество 55 Тренд 19

An MCP server that provides text extraction capabilities from various video platforms and audio files.

Обзор

An MCP server that provides text extraction capabilities from various video platforms and audio files. This server implements the Model Context Protocol (MCP) to provide standardized access to audio transcription services. This service supports downloading videos and extracting audio from various platforms, including but not limited to: - YouTube - Bilibili - TikTok - Instagram - Twitter/X - Facebook - Vimeo - Dailymotion - SoundCloud For a complete list of supported platforms, please visit yt-dlp supported sites. This project utilizes OpenAI's Whisper model for audio-to-text processing through MCP tools. The server exposes four main tools: 1. Video download: Download videos from supported platforms 2. Audio download: Extract audio from videos on supported platforms 3. Video text extraction: Extract text from videos (download and transcribe) 4.

README

Показан фрагмент оригинального README. Открыть оригинал.

MCP Video & Audio Text Extraction Server

An MCP server that provides text extraction capabilities from various video platforms and audio files. This server implements the Model Context Protocol (MCP) to provide standardized access to audio transcription services.

Supported Platforms

This service supports downloading videos and extracting audio from various platforms, including but not limited to:

  • YouTube
  • Bilibili
  • TikTok
  • Instagram
  • Twitter/X
  • Facebook
  • Vimeo
  • Dailymotion
  • SoundCloud

For a complete list of supported platforms, please visit yt-dlp supported sites.

Core Technology

This project utilizes OpenAI’s Whisper model for audio-to-text processing through MCP tools. The server exposes four main tools:

  1. Video download: Download videos from supported platforms
  2. Audio download: Extract audio from videos on supported platforms
  3. Video text extraction: Extract text from videos (download and transcribe)
  4. Audio file text extraction: Extract text from audio files

MCP Integration

This server is built using the Model Context Protocol, which provides:

  • Standardized way to expose tools to LLMs
  • Secure access to video content and audio files
  • Integration with MCP clients like Claude Desktop

Features

  • High-quality speech recognition based on Whisper
  • Multi-language text recognition
  • Support for various audio formats (mp3, wav, m4a, etc.)
  • MCP-compliant tools interface
  • Asynchronous processing for large files

Tech Stack

  • Python 3.10+
  • Model Context Protocol (MCP) Python SDK
  • yt-dlp (YouTube video download)
  • openai-whisper (Core audio-to-text engine)
  • pydantic

System Requirements

  • FFmpeg (Required for audio processing)
  • Minimum 8GB RAM
  • Recommended GPU acceleration (NVIDIA GPU + CUDA)
  • Sufficient disk space (for model download and temporary files)

Important First Run Notice

Important: On first run, the system will automatically download the Whisper model file (approximately 1GB). This process may take several minutes to tens of minutes, depending on your network conditions. The model file will be cached locally and won’t need to be downloaded again for subsequent runs.

Installation

When using uv no specific installation is needed. We will use uvx to directly run the video extraction server:

curl -LsSf https://astral.sh/uv/install.sh | sh

Install FFmpeg

FFmpeg is required for audio processing. You can install it through various methods:

# Ubuntu or Debian
sudo apt update && sudo apt install ffmpeg

# Arch Linux
sudo pacman -S ffmpeg

# MacOS
brew install ffmpeg

# Windows (using Chocolatey)
choco install ffmpeg

# Windows (using Scoop)
scoop install ffmpeg

Usage

Configure for Claude/Cursor

Add to your Claude/Cursor settings:

"mcpServers": {
  "video-extraction": {
    "command": "uvx",
    "args": ["mcp-video-extraction"]
  }
}
Открыть полный README на GitHub

Установка

uvx mcp-video-extraction
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

"mcpServers": { "video-extraction": { "command": "uvx", "args": ["mcp-video-extraction"] } }