media-mcp
media-mcp is a local image and video processing server that gives AI assistants tools to manipulate, convert, analyze, and optimize media files — no API keys or configuration required.
Image Capabilities:
Get image info — retrieve dimensions, format, color mode, file size, and EXIF metadata
Resize — by width/height or scale factor, with aspect ratio control
Convert — between PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, and AVIF
Compress — reduce file size with quality control and optional max dimension constraints
Crop — extract a region using pixel coordinates (left, top, right, bottom)
Create thumbnails — generate square thumbnails at a specified size
Strip metadata — remove all EXIF data for privacy
Rotate — by any angle with optional canvas expansion
Flip — mirror horizontally or vertically
Apply filters — blur, sharpen, grayscale, emboss, contour, edge enhance, and more
Video Capabilities (requires ffmpeg):
Get video info — retrieve duration, resolution, codec, bitrate, FPS, and audio details
Extract frames — pull frames at regular intervals with configurable max count and output format
Convert videos — between MP4, WebM, MOV, AVI, GIF, and MKV, with optional resolution and quality (CRF) control
Exposes video processing capabilities through FFmpeg, allowing for video metadata retrieval, frame extraction at specified intervals, and format conversion between MP4, WebM, MOV, AVI, and GIF.
Provides tools for processing JPEG images, including resizing, quality-controlled compression, metadata removal (EXIF), and conversion to other formats like PNG, WebP, and AVIF.
Click on "Install 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., "@media-mcpresize logo.png to 800px wide and convert it to WebP"
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.
🎨 media-mcp-server
MCP server for image & video processing. No API keys. No config. Just tools.
Give your AI assistant the power to resize, convert, compress, crop, filter, and analyze images and videos — all through Model Context Protocol.
Works with Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, and any MCP-compatible client.
⚡ Quick Start
Claude Code
claude mcp add media-mcp -- uvx media-mcp-serverClaude Desktop / Cursor / VS Code
Add to your MCP config:
{
"mcpServers": {
"media-mcp": {
"command": "uvx",
"args": ["media-mcp-server"]
}
}
}That's it. No API keys, no accounts, no environment variables.
🛠️ Tools
Image Tools
Tool | Description |
| Get dimensions, format, color mode, file size, EXIF data |
| Resize by dimensions or scale factor with aspect ratio control |
| Convert between PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, AVIF |
| Optimize file size with quality and max dimension controls |
| Crop to specific pixel coordinates |
| Generate thumbnails with size control |
| Remove all EXIF/metadata for privacy |
| Rotate by any angle with optional expansion |
| Mirror horizontally or vertically |
| Apply blur, sharpen, grayscale, emboss, contour, and more |
Video Tools (requires ffmpeg)
Tool | Description |
| Get duration, resolution, codec, bitrate, FPS, audio info |
| Pull frames at regular intervals |
| Convert between MP4, WebM, MOV, AVI, GIF, MKV |
💬 Example Usage
Once connected, just ask your AI:
"Resize screenshot.png to 800px wide"
"Convert all the PNGs in this folder to WebP"
"Strip the EXIF data from photo.jpg for privacy"
"Compress this image to under 500KB"
"Extract a frame every 5 seconds from demo.mp4"
"What are the dimensions of banner.png?"
"Make a grayscale version of logo.png"
"Create a 128x128 thumbnail of product-photo.jpg"
📦 Installation
Using uvx (recommended — zero install)
uvx media-mcp-serverUsing pip
pip install media-mcp-serverWith video support
pip install media-mcp-server[video]Note: Video tools require
ffmpegto be installed on your system. Install it from ffmpeg.org or via your package manager:# macOS brew install ffmpeg # Ubuntu/Debian sudo apt install ffmpeg # Windows (with Chocolatey) choco install ffmpeg
🔧 Configuration
Config file locations
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"media-mcp": {
"command": "uvx",
"args": ["media-mcp-server"]
}
}
}Settings → MCP Servers → Add:
{
"media-mcp": {
"command": "uvx",
"args": ["media-mcp-server"]
}
}Add to .vscode/mcp.json:
{
"servers": {
"media-mcp": {
"command": "uvx",
"args": ["media-mcp-server"]
}
}
}🧪 Development
git clone https://github.com/Adityaaery20/media-mcp.git
cd media-mcp
pip install -e ".[dev]"
pytestTest with MCP Inspector
npx @modelcontextprotocol/inspector uvx media-mcp-server📋 Supported Formats
Images: PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, AVIF
Videos: MP4, WebM, MOV, AVI, GIF, MKV (requires ffmpeg)
🗺️ Roadmap
Batch operations (process entire directories)
Image watermarking
PDF to image conversion
OCR (text extraction from images)
Audio extraction from video
Image collage/montage creation
Smart crop (content-aware)
SVG rasterization
📄 License
MIT — do whatever you want with it.
🤝 Contributing
Contributions welcome! Please open an issue first to discuss what you'd like to add.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Adityaaery20/media-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server