Video Quality MCP Server
Enables comprehensive video quality analysis including metadata extraction, GOP structure analysis, quality metrics comparison (PSNR, SSIM, VMAF), artifact detection, and transcoding effect assessment through FFmpeg-based tools.
README
Video Quality MCP Server
An MCP (Model Context Protocol) Server for video quality analysis and transcoding effect comparison.
Features
- 📹 Video Metadata Analysis - Extract encoding parameters, resolution, frame rate, etc.
- 🎬 GOP/Frame Structure Analysis - Analyze keyframe distribution and GOP structure
- 📊 Quality Metrics Comparison - Calculate objective metrics like PSNR, SSIM, VMAF
- 🔍 Artifact Analysis - Detect blur, blocking, ringing, banding, dark detail loss
- 📝 Transcode Summary - Generate LLM-friendly transcoding quality assessment reports
Installation
pip install -r requirements.txt
Running
Running as MCP Server
python main.py
The server communicates with clients via stdio protocol.
Configuration in Cursor
Add the following to your Cursor MCP configuration file:
{
"mcpServers": {
"video-quality": {
"command": "python",
"args": ["/path/to/video-quality-mcp/main.py"]
}
}
}
Tools
1. analyze_video_metadata
Parse video file metadata and encoding parameters.
Input:
path(string): Path to video file
Output:
- Container format, duration, file size, bitrate
- Video codec, profile, level, resolution, frame rate, pixel format
2. analyze_gop_structure
Analyze video GOP structure and frame type distribution.
Input:
path(string): Path to video file
Output:
- I/P/B frame distribution statistics
- GOP average/min/max length
- Keyframe timestamp list
3. compare_quality_metrics
Compare quality metrics between two video files.
Input:
reference(string): Path to reference videodistorted(string): Path to video to evaluate
Output:
- PSNR (Y/U/V components)
- SSIM score
- VMAF score
4. analyze_artifacts
Analyze video artifacts and perceptual quality proxy metrics.
Input:
target(string): Path to target videoreference(string, optional): Path to reference video (optional)
Output:
- Single stream mode: Artifact type scores
- Comparison mode: Artifact change delta values
- Risk summary and likely causes
5. summarize_transcode_comparison
Generate comprehensive transcoding effect assessment report.
Input:
source(string): Path to source videotranscoded(string): Path to transcoded video
Output:
- Quality change verdict
- VMAF delta and bitrate savings
- Key issues list
- Encoding parameter optimization recommendations
Technical Implementation
- FFmpeg/ffprobe Wrapper - Unified command-line interface
- No Deep Learning Dependencies - Uses traditional image processing and signal analysis methods
- Structured Output - All tools return standard JSON format
- Error Handling - Clear error message return mechanism
Requirements
- Python 3.10+
- FFmpeg (must be installed and configured in PATH)
- Python packages listed in
requirements.txt
Notes
- Ensure FFmpeg is properly installed with VMAF support
- Large file analysis may take a long time
- All paths should preferably use absolute paths
Documentation
For Chinese documentation, see README.zh.md.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.