# Mochify

Gives your assistant a compression and conversion engine: AVIF, WebP, JXL, cropping, background removal, PDF handling.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 1
- Author: getmochify
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/getmochify/mochify-cli
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/mcp/mochify

## What it does

Mochify is a CLI and MCP server for mochify.app, an image compression and conversion service running a native C++ engine. You can hook it up to an assistant in two ways: locally with `mochify serve` over stdio, or through the hosted endpoint at `https://mcp.mochify.app/mcp`, which needs nothing installed.

The toolset covers conversion to `jpg`, `png`, `webp`, `avif` and `jxl`, resizing, cropping by saliency or by a rectangle you specify, rotation, background removal, hiding faces and regions, and PDF work. A `--prompt` mode takes plain-language instructions like “optimise for eBay” and works out the parameters itself. Quality is picked automatically unless you pass `-q`.

Without an account you get 3 images per batch, limited by IP; a free account raises that to 25 images a month. Signing in with `mochify auth login` opens a browser and stores credentials in `~/.config/mochify/credentials.toml`, where both the CLI and the MCP server read them. On a headless machine, such as over SSH, use `mochify auth login --no-browser` and enter the printed code on another device.

## Requirements
- Remote server: `https://mcp.mochify.app/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http mochify https://mcp.mochify.app/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add mochify --url https://mcp.mochify.app/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mochify": {
            "url": "https://mcp.mochify.app/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mochify": {
            "type": "http",
            "url": "https://mcp.mochify.app/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http mochify https://mcp.mochify.app/mcp
```

## When to use it
- compress a folder of photos into AVIF in one go
- resize an image to a target width and switch it to WebP
- cut the background out of a product shot
- crop a picture to a specific rectangle
- shrink a PDF or an image for web delivery

## Example prompts
- Convert every image in `./images` to AVIF at 1200px wide and put them in `./compressed`
- Remove the background from `product.jpg` and convert it to WebP
- Crop `photo.jpg` to the region 0.2,0.1,0.6,0.8 and resize it to 800px

## Similar
- [webflow-mcp:compress-cms-image](https://affpapa.org/en/nevibecode/skills/webflow-mcpcompress-cms-image.md) — skill · 548 installs
- [seo-images](https://affpapa.org/en/nevibecode/skills/seo-images.md) — skill · 6800 installs
- [baoyu-compress-image](https://affpapa.org/en/nevibecode/skills/baoyu-compress-image.md) — skill · 28200 installs
- [image-optimization](https://affpapa.org/en/nevibecode/skills/secondsky-image-optimization.md) — skill · 585 installs
- [SammaPix — Image & PDF tools for AI agents](https://affpapa.org/en/nevibecode/mcp/sammapix-image-pdf-tools-for-ai-agents.md) — MCP server · ★ 8
- [image-processing](https://affpapa.org/en/nevibecode/skills/image-processing.md) — skill · 2400 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
