Qwen Video Understanding MCP Server
Enables video and image analysis using Qwen3-VL models deployed on Modal's serverless GPU infrastructure, supporting hours-long video processing, timestamp grounding, OCR in 32 languages, and various analysis tasks including summarization, text extraction, and frame comparison.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Qwen Video Understanding MCP Server summarize this presentation video https://youtube.com/watch?v=abc123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Qwen Video Understanding MCP Server
An MCP (Model Context Protocol) server that enables Claude and other AI agents to analyze videos and images using Qwen3-VL deployed on Modal.
Highlights
Hours-long video support with full recall
Timestamp grounding - second-level precision
256K context (expandable to 1M)
32-language OCR support
Free/self-hosted on Modal serverless GPU
Related MCP server: Vision MCP Server
Features
Video Analysis: Analyze videos via URL with custom prompts
Image Analysis: Analyze images via URL
Video Summarization: Generate brief, standard, or detailed summaries
Text Extraction: Extract on-screen text and transcribe speech
Video Q&A: Ask specific questions about video content
Frame Comparison: Analyze changes and progression in videos
Architecture
Claude/Agent → MCP Server → Modal API → Qwen3-VL (GPU)The MCP server acts as a bridge between Claude and your Qwen2.5-VL model deployed on Modal's serverless GPU infrastructure.
Prerequisites
Modal Account: Sign up at modal.com
Deployed Qwen Model: Deploy the video understanding model to Modal (see below)
Python 3.10+
Quick Start
1. Deploy the Model to Modal (if not already done)
cd ~/qwen-video-modal
modal deploy qwen_video.py2. Install the MCP Server
cd ~/qwen-video-mcp-server
pip install -e .Or with uv:
uv pip install -e .3. Configure Environment
cp .env.example .env
# Edit .env with your Modal workspace name4. Add to Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"qwen-video": {
"command": "uv",
"args": [
"--directory",
"/Users/adamanz/qwen-video-mcp-server",
"run",
"server.py"
],
"env": {
"MODAL_WORKSPACE": "adam-31541",
"MODAL_APP": "qwen-video-understanding"
}
}
}
}5. Restart Claude Desktop
The qwen-video tools should now be available.
Available Tools
analyze_video
Analyze a video with a custom prompt.
analyze_video(
video_url="https://example.com/video.mp4",
question="What happens in this video?",
max_frames=16
)analyze_image
Analyze an image with a custom prompt.
analyze_image(
image_url="https://example.com/image.jpg",
question="Describe this image"
)summarize_video
Generate a video summary in different styles.
summarize_video(
video_url="https://example.com/video.mp4",
style="detailed" # brief, standard, or detailed
)extract_video_text
Extract text and transcribe speech from a video.
extract_video_text(
video_url="https://example.com/presentation.mp4"
)video_qa
Ask specific questions about a video.
video_qa(
video_url="https://example.com/video.mp4",
question="How many people appear in this video?"
)compare_video_frames
Analyze changes throughout a video.
compare_video_frames(
video_url="https://example.com/timelapse.mp4",
comparison_prompt="How does the scene change?"
)check_endpoint_status
Check the Modal endpoint configuration.
list_capabilities
List all server capabilities and supported formats.
Configuration
Environment Variable | Description | Default |
| Your Modal workspace/username |
|
| Name of the Modal app |
|
| Override image endpoint URL | Auto-generated |
| Override video endpoint URL | Auto-generated |
Supported Formats
Video: mp4, webm, mov, avi, mkv
Image: jpg, jpeg, png, gif, webp, bmp
Limitations
Videos must be accessible via public URL
Maximum 64 frames extracted per video
Recommended video length: under 10 minutes for best results
First request may have cold start delay (Modal serverless)
Cost
The Modal backend uses A100-40GB GPUs:
~$3.30/hour while processing
Scales to zero when idle (no cost)
Only charged for actual processing time
Troubleshooting
"Request timed out"
Video may be too large
Try a shorter video or reduce
max_frames
"HTTP error 502/503"
Modal container is starting up (cold start)
Wait a few seconds and retry
"Video URL not accessible"
Ensure the URL is publicly accessible
Check for authentication requirements
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytestLicense
MIT
Available Tools
8 toolsanalyze_imageA
Analyze an image using Qwen2.5-VL vision-language model.
The image must be accessible via a public URL.
Examples:
"What's in this image?"
"Describe the scene"
"What text is visible?"
"Identify any people or objects"
"What is the mood or atmosphere?"
Inputs: image_url (required), question, max_tokens.
analyze_videoA
Analyze a video using Qwen3-VL vision-language model.
The video must be accessible via a public URL. The model will:
Download the video
Extract key frames (up to max_frames)
Analyze the frames with your question
Provide timestamp-grounded responses when applicable
Examples:
"What happens in this video?"
"Summarize the main events with timestamps"
"What products are shown?"
"At what timestamp does the speaker mention X?"
"What is being discussed or demonstrated?"
Inputs: video_url (required), question, max_frames, max_tokens.
check_endpoint_statusB
Check the configuration and status of the Modal endpoints.
Returns the configured endpoint URLs and connection status.
Inputs: no named parameters.
compare_video_framesB
Analyze changes and progression across a video.
Useful for:
Before/after comparisons
Tracking movement or changes
Understanding progression of events
Analyzing tutorials or how-to videos
Inputs: video_url (required), comparison_prompt.
extract_video_textA
Extract and transcribe any visible text or speech from a video.
Useful for:
Reading on-screen text, titles, captions
Transcribing spoken content
Extracting text from presentations or documents shown in video
Inputs: video_url (required).
list_capabilitiesB
List the capabilities of this video understanding server.
Inputs: no named parameters.
summarize_videoC
Generate a summary of a video.
Styles:
brief: 1-2 sentence overview
standard: 1-2 paragraph summary with key points
detailed: Comprehensive analysis with timeline
Inputs: video_url (required), style.
video_qaA
Ask a specific question about a video's content.
Examples:
"How many people appear in this video?"
"What color is the car?"
"What is the speaker's main argument?"
"What products are being demonstrated?"
"At what point does the action begin?"
Inputs: video_url (required), question (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have distinct purposes (e.g., analyze_video vs. summarize_video), but some overlap exists: analyze_video and video_qa both handle video Q&A, and extract_video_text could be seen as a subset of analyze_video's capabilities. The descriptions help differentiate, but agents might still misselect between closely related tools.
Tools follow a consistent verb_noun pattern (e.g., analyze_image, check_endpoint_status, list_capabilities), with only minor deviations: compare_video_frames uses 'compare' instead of 'analyze' or 'extract', but it's still readable and fits the pattern. Overall, the naming is predictable and clear.
With 8 tools, the count is well-scoped for a video understanding server. Each tool serves a specific function (e.g., analysis, summarization, text extraction), and there are no redundant or trivial additions. This number allows comprehensive coverage without being overwhelming.
The toolset covers core video understanding tasks well: analysis, summarization, Q&A, text extraction, and comparison. Minor gaps exist, such as no explicit tool for video editing or metadata retrieval, but agents can work around these with the provided tools. The domain is adequately covered for most use cases.
Maintenance
Related MCP Connectors
Video, audio, and image processing for AI agents: convert, transcribe, upscale - 150+ operations.
Turn any video into context for AI agents: transcripts, metadata, chapters, timestamps.
Transcripts, summaries, chapters and timestamped search for video links, for AI agents.
FFmpeg as a service for AI agents: typed video editing tools, async jobs, downloadable outputs.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to analyze, summarize, and extract text from videos and images using the Qwen3-VL-8B-Instruct model deployed on Blaxel. It supports media analysis via URL, including video Q\&A and speech transcription capabilities.7MIT
- AlicenseAqualityDmaintenanceEnables AI agents to analyze images, extract text, compare images, and analyze video through any OpenAI-compatible vision model.421MIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to analyze long videos by downloading them, extracting transcripts and storyboards, and zooming into specific moments with high-resolution frames and OCR.1MIT
- AlicenseAqualityCmaintenanceEnables Claude Code and other AI agents to understand videos and images via Qwen3.7-Plus, supporting native video analysis, image understanding, and convenience tools like summarization and OCR.5178 npm2MIT