Video & Audio Text Extraction

Video & Audio Text Extraction

sealingp

Downloads videos/audio from major platforms (YouTube, TikTok, Instagram, etc.) and converts speech to text using OpenAI's Whisper model. Supports multiple languages and audio formats.

Extracts text from videos and audio files across platforms like YouTube, Bilibili, TikTok, Instagram, Twitter/X, Facebook, and Vimeo using Whisper speech recognition for transcription, content analysis, and accessibility improvements.

92,798 views5Local (stdio)

What it does

  • Extract text from videos on YouTube, TikTok, Instagram, Twitter/X, Facebook, Vimeo
  • Transcribe audio files in mp3, wav, m4a and other formats
  • Download videos from 1000+ supported platforms
  • Extract audio-only from video content
  • Process multi-language speech recognition
  • Handle large files with asynchronous processing

Best for

Content creators needing video transcriptionsAccessibility teams adding captions to mediaResearchers analyzing social media contentAnyone converting audio/video to searchable text
1000+ platforms supported via yt-dlpHigh-quality Whisper AI transcriptionGPU acceleration support

About Video & Audio Text Extraction

Video & Audio Text Extraction is a community-built MCP server published by sealingp that provides AI assistants with tools and capabilities via the Model Context Protocol. Transcribe for YouTube and other platforms. Extract accurate transcript of a YouTube video for accessibility, analysis, It is categorized under other, ai ml.

How to install

You can install Video & Audio Text Extraction in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

Video & Audio Text Extraction is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

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

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"]
  }
}

Available MCP 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

Configuration

The service can be configured through environment variables:

Whisper Configuration

  • WHISPER_MODEL: Whisper model size (tiny/base/small/medium/large), default: 'base'
  • WHISPER_LANGUAGE: Language setting for transcription, default: 'auto'

YouTube Download Configuration

  • YOUTUBE_FORMAT: Video format for download, default: 'bestaudio'
  • AUDIO_FORMAT: Audio format for extraction, default: 'mp3'
  • AUDIO_QUALITY: Audio quality setting, default: '192'

Storage Configuration

  • TEMP_DIR: Temporary file storage location, default: '/tmp/mcp-video'

Download Settings

  • DOWNLOAD_RETRIES: Number of download retries, default: 10
  • FRAGMENT_RETRIES: Number of fragment download retries, default: 10
  • SOCKET_TIMEOUT: Socket timeout in seconds, default: 30

Performance Optimization Tips

  1. GPU Acceleration:

    • Install CUDA and cuDNN
    • Ensure GPU version of PyTorch is installed
  2. Model Size Adjustment:

    • tiny: Fastest but lower accuracy
    • base: Balanced speed and accuracy
    • large: Highest accuracy but requires more resources
  3. Use SSD storage for temporary files to improve I/O performance

Notes

  • Whisper model (approximately 1GB) needs to be downloaded on first run
  • Ensure sufficient disk space for temporary audio files
  • Stable network connection required for YouTube video downloads
  • GPU recommended for faster audio processing
  • Processing long videos may take considerable time

MCP Integration Guide

This server can be used with any MCP-compatible client, such as:

  • Claude Desktop
  • Custom MCP clients
  • Other MCP-enabled applications

For more information about MCP, visit Model Context Protocol.

Documentation

For Chinese version of this documentation, please refer to README_zh.md

License

MIT

Alternatives

Related Skills

Browse all skills
audiopod

Use AudioPod AI's API for audio processing tasks including AI music generation (text-to-music, text-to-rap, instrumentals, samples, vocals), stem separation, text-to-speech, noise reduction, speech-to-text transcription, speaker separation, and media extraction. Use when the user needs to generate music/songs/rap from text, split a song into stems/vocals/instruments, generate speech from text, clean up noisy audio, transcribe audio/video, or extract audio from YouTube/URLs. Requires AUDIOPOD_API_KEY env var or pass api_key directly.

1
docx

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks

59
ffmpeg-cli

Comprehensive video/audio processing with FFmpeg. Use for: (1) Video transcoding and format conversion, (2) Cutting and merging clips, (3) Audio extraction and manipulation, (4) Thumbnail and GIF generation, (5) Resolution scaling and quality adjustment, (6) Adding subtitles or watermarks, (7) Speed adjustment (slow/fast motion), (8) Color correction and filters.

45
video-processor

Process video files with audio extraction, format conversion (mp4, webm), and Whisper

16
yt-dlp

Download audio and video from thousands of websites using yt-dlp. Feature-rich command-line tool supporting format selection, subtitle extraction, playlist handling, metadata embedding, and post-processing. This skill is triggered when the user says things like "download this video", "download from YouTube", "extract audio from video", "download this playlist", "get the mp3 from this video", "download subtitles", or "save this video locally".

12
yt-dlp-downloader

Download videos from YouTube, Bilibili, Twitter, and thousands of other sites using yt-dlp. Use when the user provides a video URL and wants to download it, extract audio (MP3), download subtitles, or select video quality. Triggers on phrases like "下载视频", "download video", "yt-dlp", "YouTube", "B站", "抖音", "提取音频", "extract audio".

9