Vid Subtitle
FreeNot checkedA MCP server that adds subtitles to videos using FFmpeg and OpenAI Whisper API.
About
A MCP server that adds subtitles to videos using FFmpeg and OpenAI Whisper API.
README
Now supports Model Context Protocol (MCP) for video subtitle processing and secure local file access!!! See server/README.md for more details.
https://github.com/user-attachments/assets/105a2fe6-9122-4f33-a4a0-b8ed3f64cabc
vid-subtitle
A Python library to add subtitles to videos using FFmpeg and OpenAI Whisper API.
https://github.com/user-attachments/assets/7c2d0a6a-7d75-4837-b141-097104a0cb5e
Features
- Extract audio from MP4 and MOV video files
- Transcribe audio using OpenAI Whisper API
- Generate SRT subtitle files
- Embed subtitles into video files
- Support for multiple languages (English by default)
Prerequisites
- Python 3.7+
- FFmpeg installed on your system
- OpenAI API key
Installation
pip install vid-subtitle
Setup
Install FFmpeg on your system:
- macOS:
brew install ffmpeg - Ubuntu/Debian:
sudo apt update && sudo apt install ffmpeg - Windows: Download from FFmpeg official website
- macOS:
Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY="your-api-key-here"or create a
.envfile in the root directory and add the following:OPENAI_API_KEY=your-api-key-here
Usage
Basic Usage
from vid_subtitle import add_subtitles, add_subtitle_file
# Add subtitles to a video using transcription
add_subtitles(
input_video="input.mp4",
output_video="output_with_subtitles.mp4",
language="en" # Optional, defaults to English
)
# Add existing subtitles to a video (no transcription needed)
add_subtitle_file(
input_video="input.mp4",
subtitle_file="existing_subtitles.srt",
output_video="output_with_embedded_subtitles.mp4"
)
This will:
- Extract audio from the input video
- Transcribe the audio using OpenAI Whisper API
- Generate an SRT subtitle file
- Create a new video with embedded subtitless
CLI Usage
# Add subtitles with transcription
vid-subtitle add -l en -v input.mp4 output.mp4
# Embed existing subtitles into video
vid-subtitle embed input.mp4 subtitles.srt output.mp4
# Extract subtitles only (no video output)
vid-subtitle extract input.mp4 -o subtitles.srt
# Refine subtitles
vid-subtitle refine subtitles.srt refined_subtitles.srt -i "Refine the subtitles to be more accurate."
# Show supported languages
vid-subtitle languages
# Show library information
vid-subtitle info
Supported Languages
The library supports all languages supported by OpenAI Whisper API. Use ISO 639-1 language codes:
en- English (default)es- Spanishfr- Frenchde- Germanit- Italianpt- Portugueseru- Russianja- Japaneseko- Koreanzh- Chinese- And many more...
Supported Video Formats
- MP4 (.mp4)
- MOV (.mov)
Output Files
The library generates two outputs:
- Video file with embedded subtitles:
{output_video} - Separate SRT subtitle file:
{input_video_name}.srt
Error Handling
The library includes comprehensive error handling for:
- Missing FFmpeg installation
- Invalid video formats
- Missing OpenAI API key
- Network connectivity issues
- File permission errors
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Installing Vid Subtitle
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/tomoima525/vid-subtitleFAQ
Is Vid Subtitle MCP free?
Yes, Vid Subtitle MCP is free — one-click install via Unyly at no cost.
Does Vid Subtitle need an API key?
No, Vid Subtitle runs without API keys or environment variables.
Is Vid Subtitle hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Vid Subtitle in Claude Desktop, Claude Code or Cursor?
Open Vid Subtitle on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Vid Subtitle with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
