Video Caption MCP Server

Video Caption MCP Server

An MCP server that automatically transcribes video content and burns stylized captions directly into the video file. It leverages the Groq Whisper API for fast transcription and supports multiple visual styles tailored for social media and professional content.

Category
访问服务器

README

🎬 Video Caption MCP Server

An MCP (Model Context Protocol) server that automatically transcribes and burns stylized captions into videos. Designed to work with Poke by Interaction Co.

Upload a video → AI transcribes it → Stylized captions are burned in → Download the result.

How It Works

You → Poke: "Caption this video: https://example.com/video.mp4"
     ↓
Poke calls your MCP server's `caption_video` tool
     ↓
1. Downloads the video
2. FFmpeg extracts audio (16kHz mono WAV)
3. Groq Whisper API transcribes with timestamps (FREE!)
4. Generates SRT subtitle file
5. FFmpeg burns styled captions into the video
     ↓
Returns: download link + full transcript

Caption Styles

Style Look Best For
tiktok (default) Poppins bold white on dark box TikTok, Reels, Shorts
modern Poppins white with outline General purpose
classic Yellow text, bottom Movies, TV style
minimal Small Poppins, bottom-left Clean, professional
bold Impact font, heavy shadow Maximum readability

Setup (15 minutes)

1. Get a Free Groq API Key

  1. Go to console.groq.com
  2. Sign up (no credit card needed)
  3. Go to API Keys → Create new key
  4. Copy the key – you'll need it in step 3

Groq's free tier includes Whisper transcription at no cost with generous rate limits.

2. Deploy to Render

Option A: One-Click Deploy

Deploy to Render

  1. Click the button above
  2. Connect your GitHub account
  3. It will create a new repo from this template and deploy it

Option B: Manual Deploy

  1. Fork this repo to your GitHub
  2. Go to render.com → New → Web Service
  3. Connect your forked repo
  4. Render auto-detects the Dockerfile
  5. Click "Create Web Service"

3. Set Environment Variables

In your Render dashboard → Environment:

Variable Value Required
GROQ_API_KEY Your Groq API key ✅ Yes
BASE_URL https://your-app-name.onrender.com ✅ Yes
WHISPER_MODEL whisper-large-v3-turbo No (default)
MAX_VIDEO_DURATION_SEC 600 No (default: 10 min)
PORT 8000 No (default)

⚠️ Important: Set BASE_URL to your actual Render URL so download links work!

4. Connect to Poke

  1. Go to poke.com/settings/connections/integrations/new
  2. Enter a name: Video Captioner
  3. Enter the MCP Server URL: https://your-app-name.onrender.com/mcp
  4. Click Create Integration

5. Test It!

Message Poke:

"Use the Video Captioner integration's caption_video tool to caption this video: https://example.com/my-video.mp4"

Or more naturally:

"Can you add captions to this video? https://example.com/my-video.mp4 Use the bold style."

MCP Tools

caption_video

Transcribes and burns captions into a video.

Parameters:

  • video_url (required): Direct URL to a video file
  • language (optional): ISO-639-1 code, default "en"
  • style (optional): modern, classic, minimal, or bold
  • font_size (optional): 12-72, default 24

list_caption_styles

Returns all available caption style presets with descriptions.

Local Development

# Clone the repo
git clone https://github.com/YOUR_USERNAME/video-caption-mcp.git
cd video-caption-mcp

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # or .venv\Scripts\activate on Windows

# Install dependencies
pip install -r requirements.txt

# Make sure FFmpeg is installed
ffmpeg -version  # should work

# Set environment variables
export GROQ_API_KEY="your-key-here"
export BASE_URL="http://localhost:8000"

# Run the server
python src/server.py

Test with the MCP Inspector:

npx @modelcontextprotocol/inspector
# Connect to http://localhost:8000/mcp using "Streamable HTTP" transport

Architecture

video-caption-mcp/
├── src/
│   └── server.py          # FastMCP server + file serving
├── Dockerfile             # Python 3.13 + FFmpeg
├── render.yaml            # Render deployment config
├── requirements.txt       # Python dependencies
└── README.md

The server exposes:

  • POST /mcp – MCP protocol endpoint (for Poke)
  • GET /files/{job_id}/{filename} – Serves captioned video downloads
  • GET /health – Health check

Limitations

  • Video size: Groq free tier accepts audio up to 25 MB (roughly 10-15 min of video audio)
  • Duration: Default max 10 minutes (configurable via MAX_VIDEO_DURATION_SEC)
  • Render free tier: May spin down after inactivity; first request after sleep takes ~30s
  • File cleanup: Output files are auto-deleted after 1 hour
  • Direct URLs only: The video URL must be a direct download link (not YouTube, etc.)

Tips

  • For YouTube/social media videos, use a service to get a direct download link first
  • The modern style works best for vertical/short-form video
  • Use language parameter for non-English videos for better accuracy
  • Groq's Whisper is extremely fast – transcription usually takes just seconds

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选