OpenCV MCP Server
by GongRzhe
Image and video processing with computer vision through AI assistants
ai-ml Python Intermediate Self-hostable No API key
β 96 stars π
Updated: 6mo ago
Description
An MCP server providing OpenCV's image and video processing capabilities. Offers 22+ tools spanning image basics (resize, crop, color conversion), processing (filters, edge detection, thresholding, contours), computer vision (feature detection with SIFT/ORB/BRISK, face detection, YOLO object detection), and video processing (frame extraction, motion detection, object tracking, webcam integration). Supports real-time camera detection and video output generation.
β Best for
Developers needing computer vision capabilities accessible through AI assistants
βοΈ Skip if
You only need basic image resizing or prefer a cloud-based vision API
π‘ Use cases
- Analyzing and processing images through AI assistant commands
- Detecting objects and faces in images and video streams
- Extracting and matching features across multiple images
- Processing video for motion detection and object tracking
- Real-time webcam-based object detection
π Pros
- β Comprehensive 22+ tool set covering image, video, and computer vision
- β Real-time camera integration for live processing
- β Multiple detection methods (SIFT, ORB, BRISK, YOLO, Haar cascades)
- β No API key required β fully local processing
π Cons
- β Heavy dependencies (OpenCV, numpy, optional DNN models)
- β YOLO model files need separate download for object detection
- β Video processing can be CPU-intensive
π§ Exposed tools (11 tools)
| Tool | Category | Description |
|---|---|---|
| detect_features_tool | computer-vision | Feature extraction using SIFT, ORB, and BRISK algorithms |
| detect_faces_tool | computer-vision | Face detection via Haar cascades and DNN models |
| detect_objects_tool | computer-vision | YOLO-based object recognition in images |
| resize_image_tool | image-basics | Scale images to specified dimensions |
| apply_filter_tool | image-processing | Apply blur, gaussian, median, and bilateral filters |
| detect_edges_tool | image-processing | Edge detection via Canny, Sobel, Laplacian, and Scharr methods |
| detect_contours_tool | image-processing | Locate and visualize contours in images |
| extract_video_frames_tool | video-processing | Extract frame sequences from video files |
| detect_motion_tool | video-processing | Analyze motion between consecutive video frames |
| track_object_tool | video-processing | Multi-frame object trajectory monitoring |
| detect_camera_objects_tool | video-processing | Real-time webcam object detection |
π‘ Tips & tricks
Set OPENCV_DNN_MODELS_DIR to your models directory for YOLO detection. Use detect_features_tool with SIFT for best accuracy or ORB for speed.
Quick info
- Author
- GongRzhe
- License
- MIT
- Runtime
- Python 3.10+
- Transport
- stdio
- Category
- ai-ml
- Difficulty
- Intermediate
- Self-hostable
- β
- Auth
- β
- Docker
- β
- Version
- 1.0.0
- Updated
- Sep 11, 2025
Client compatibility
- β Claude Code
- β Cursor
- β VS Code Copilot
- β Gemini CLI
- β Windsurf
- β Cline
- β JetBrains AI
- β Warp
Platforms
π macOS π§ Linux πͺ Windows