Mochify MCP
MCP implementation for connecting to the Mochify image processing API to convert, compress and resize images.
README
mochify-cli
<a href="https://glama.ai/mcp/servers/@getmochify/mochify-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@getmochify/mochify-mcp/badge" /> </a>
A command-line tool and MCP server for mochify.xyz — a fast, privacy-first image compression and conversion API powered by a native C++ engine.
Compress and convert images to modern formats (AVIF, JXL, WebP, Jpegli) from your terminal, or give AI assistants like Claude direct access to image processing via the Model Context Protocol.
Installation
Download the latest binary from Releases, or build from source:
cargo install --path .
cargo build --release
# binary at ./target/release/mochify
CLI Usage
mochify [OPTIONS] <FILES>...
Options
| Flag | Description |
|---|---|
-t, --type <FORMAT> |
Output format: jpg, png, webp, avif, jxl |
-w, --width <N> |
Target width in pixels |
-H, --height <N> |
Target height in pixels |
--crop |
Crop to exact dimensions |
-r, --rotation <DEG> |
Rotation: 0, 90, 180, 270 |
-o, --output <DIR> |
Output directory (default: same as input) |
-p, --prompt <TEXT> |
Natural-language prompt — resolves params automatically |
-k, --api-key <KEY> |
API key (or set MOCHIFY_API_KEY env var) |
Examples
# Convert a JPEG to AVIF
mochify photo.jpg -t avif
# Resize and convert to WebP
mochify photo.jpg -t webp -w 800
# Batch convert a folder to AVIF at 1200px wide
mochify ./images/*.jpg -t avif -w 1200 -o ./compressed
# With an API key
MOCHIFY_API_KEY=your-key mochify photo.jpg -t jxl
# Use a natural-language prompt instead of explicit flags
mochify photo.jpg -p "convert to avif and resize to 1200px wide"
# Prompt works with multiple files too
mochify ./images/*.jpg -p "compress for web, keep under 1000px wide" -o ./out
Free usage is 25 images per day without an API key. Visit mochify.xyz for more.
MCP Server (Claude Desktop)
mochify can run as an MCP server, letting Claude process images on your behalf directly from conversation.
Setup
Add the following to your Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mochify": {
"command": "/path/to/mochify-cli",
"args": ["serve"],
"env": {
"MOCHIFY_API_KEY": "your-key-here"
}
}
}
}
Restart Claude Desktop. The mochify server will appear in your connections.
Usage
Just describe what you want in natural language, with the full path to your image:
"Convert
/Users/me/Desktop/photo.jpgto AVIF at 1000px wide"
"Compress all the JPEGs in
/Users/me/projects/blog/images/to WebP and save them to/Users/me/projects/blog/compressed/"
Claude will call the squish tool automatically.
API
Powered by the mochify.xyz API at https://api.mochify.xyz/v1/squish.
- Images are processed in-memory and never stored on disk
- Supports JPEG (Jpegli), AVIF, JXL, WebP, and PNG output
- Up to 25MB per image
Visit mochify.xyz for the web interface.
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.