
sealingp/mcp-video-extraction
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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
- Twitter/X
- 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:
- Video download: Download videos from supported platforms
- Audio download: Extract audio from videos on supported platforms
- Video text extraction: Extract text from videos (download and transcribe)
- 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
Using uv (recommended)
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"]
}
}
インストール
uvx mcp-video-extraction設定
"mcpServers": {
"video-extraction": {
"command": "uvx",
"args": ["mcp-video-extraction"]
}
}