
Mochify
app.mochify由 mochify.app 发布官方发布者v1.6.2更新于 Oct 24, 2026
Image and PDF toolkit: convert to AVIF/WebP/JXL, resize, crop, remove backgrounds, optimize PDFs.
概览
Mochify 让助手通过托管或本地 MCP 服务器压缩、转换、缩放、裁剪和打码图片,并处理 PDF。
- 可以做什么
- 转换、缩放、裁剪、旋转、调亮图片并移除背景,支持质量、无损、网页优化和 HDR 选项
- 优化 PDF、提取其中图片、将页面转为图片或拆分 PDF
- 把多张图片合成为 PDF,可设置页面尺寸与是否合并
- 查询当前计费周期剩余的操作次数和所属套餐
- 适用场景
- 适合需要为网页或电商平台压缩、转换图片,准备分享用的照片,或缩小 PDF、拆分 PDF、把页面转成图片的场景。托管端点适合没有文件系统的客户端,本地服务器适合处理自己磁盘上的文件。
- 运行要求
- 使用托管端点 mcp.mochify.app 需完成 OAuth 2.0 登录;或通过 Homebrew、Scoop、Cargo 或发布包安装本地程序并以 mochify serve 运行。mochify.app 账号可选但能提高免费额度;凭据由 mochify auth login 保存,也可设置 MOCHIFY_API_KEY。需要能访问 Mochify API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Mochify,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/app.mochify%2Fmochify/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"mochify": {
"type": "http",
"url": "https://mcp.mochify.app/mcp"
}
}
}README
mochify-cli
[图片]A command-line tool and MCP server for mochify.app — 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, work on PDFs, or give AI assistants like Claude direct access to the same engine over the Model Context Protocol — either as a local stdio server (mochify serve) or the hosted one at mcp.mochify.app, which needs no install at all.
Jump to: Installation · CLI usage · PDF processing · MCP server · Plans
Installation
macOS (Homebrew):
Windows (Scoop):
Linux / WSL:
Cargo (all platforms):
Requires Rust. Easiest option on Linux/WSL if you already have the toolchain.
Manual: All binaries at Releases.
From source:
Authentication
Sign in with your mochify.app account to unlock your full quota:
This opens your browser, where you sign in and authorize the CLI. Credentials are saved automatically to ~/.config/mochify/credentials.toml — no environment variables or manual key copying required. Both the CLI and MCP server pick them up automatically.
On a machine without a browser (over SSH, say), sign in with a code instead — open the link it prints on any device and type the code:
Without an account you get 3 images per batch (IP-based). With a free account: 25 images/month. Sign up at mochify.app.
CLI Usage
Options
Examples
Quality
Quality is chosen automatically unless you say otherwise.
--lossless only works for jxl, webp and png — jpg and avif are rejected before the request goes out. It overrides -q and --smart-compress, and the output is usually larger than the input: lossless preserves pixels, not file size. A source that is already lossy (JPEG, AVIF, HEIC) comes back as the best lossy encode instead, since nothing can restore what that file discarded — the CLI says so when that happens.
Cropping to a region
--crop finds the subject itself. --region is for when you — or the AI assistant driving the MCP server — already know which part of the picture you want:
The four numbers are x,y,width,height as fractions of the image (0 to 1), measured from the top-left of the picture as it displays — the right way up, even for a phone photo stored sideways. Fractions rather than pixels so the same box works whatever size the image is viewed at. A value above 1 is refused before the request goes out, since that is almost always a box in pixels. The region is cut first: -w/-H, --crop, --rotation and --remove-bg all act on it. --verbose prints the pixel rectangle that was actually cut.
Over MCP this is how an assistant can crop to content — "crop to the feet", "just the logo": it looks at the image itself, picks the box, and Mochify only ever receives the four numbers.
Redaction
Hide faces, number plates, addresses or anything else before an image goes anywhere:
Separate entries with ; — the , belongs to the box. fill (solid black) is the default and the one to use for anything that must stay secret; blur is for the look of a blurred face, and blurred text or faces can sometimes be recovered.
Redaction always strips metadata (EXIF can hold a thumbnail of the original) and removes any HDR gain map (which holds the scene's structure), even if you asked to keep them. faces is best-effort — it can miss small faces and side profiles — so the CLI says when it found none. Check the output before sharing it.
HDR (Ultra HDR gain maps)
--hdr controls the Ultra HDR / ISO 21496-1 gain map that makes a photo render with real headroom on an HDR display.
Only jpg output can carry a gain map (jxl carries HDR by a different route; avif, webp and png cannot), so pair it with -t jpg. It is also skipped alongside --clarity or --remove-bg, which change the base the gain map is a ratio to. The CLI reads the X-Mochify-HDR response header and tells you when the output ended up with no gain map.
Output file naming
By default, when the output format and directory match the input, the result is saved as {name}_mochified.{ext} so it's always clear something happened. If that file already exists, a numeric suffix is added (_1, _2, etc.). When the format changes (e.g. .jpg → .webp), the extension change is already unambiguous so no suffix is added.
Use -n, --name to set an explicit base name: mochify photo.jpg -t webp -n hero saves hero.webp. The prompt path also supports this: mochify *.jpg -p "optimise for Shopify, name them product" will produce product.webp, product_1.webp, etc.
PDF processing
PDFs are detected automatically by the .pdf extension, and --op picks what to do with them. (PDFs and images can't be mixed in a single command — run them separately.)
create is the exception: its inputs are images, so there is nothing in a .jpg to route on. Pass --op create, or just say "pdf" in a prompt — mochify *.jpg -p "convert to pdf" builds one too.
Outputs are named after the input: report_compressed.pdf, brochure_images.zip, document_rasterized.zip, document_pages.zip, and <first image>.pdf for create (override with -n).
optimize, extract, rasterize and split require a paid plan; create works on every plan, including Free.
MCP server
Mochify speaks MCP two ways. Both call the same engine at api.mochify.app, where encoding happens in RAM and the original is discarded immediately. The difference is where your files live.
Reach for hosted when the agent has no filesystem — Claude.ai, a hosted runtime, anything talking to images that already live on the web. Reach for local when the files are on your machine, which is most of the time: nothing but a path and a byte count ever enters the model's context.
Both can run side by side in the same client with independent tokens.
Hosted (no install)
Register https://mcp.mochify.app as a remote MCP connector and complete the OAuth flow once. No API key to copy or rotate.
- Claude.ai — Settings → Connectors → Add custom connector
- Claude Desktop — Settings → Connectors, or a
"type": "http"entry in the config - Cursor, Windsurf, Gemini, any client with remote MCP support — same URL
Or install it from Smithery:
Results come back as a download URL with roughly a five-minute expiry, held in an in-memory pickup store until fetched or the TTL lapses. Originals are never stored. This is the one path that is not zero-retention end to end — see why we relaxed zero retention for MCP.
Local (stdio)
Run mochify auth login first, then point your client at the binary:
Claude Desktop's config lives at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS. Restart the client afterwards; the server picks up your saved credentials automatically. Any stdio MCP client works the same way — Cursor, Continue, Cline, Claude Code.
Set MOCHIFY_API_KEY instead for CI, or leave auth off entirely to run on the anonymous free tier.
Tools
Both servers expose the same four tools. The difference is how files get in and out: the local server takes paths and writes to disk, the hosted one takes URLs or base64 and hands back a short-lived download URL.
squish parameters: file_path, type, width, height, crop, rotation, quality, smart_compress, lossless, optimize_for_web, brightness, clarity, remove_background, background, strip_metadata, hdr, output_dir, output_name.
pdf parameters: file_path, op, type, dpi, quality, max_width, min_size, output_dir.
pdf_create parameters: file_paths, page, quality, dpi, max_width, combine, output_name, output_dir.
check_usage takes no parameters.
Every tool reads and writes the filesystem itself, so the agent never has to load an image to process it. Responses carry the saved path plus whatever the API reported: how much smaller the PDF got, whether a gain map survived, whether a lossless request had to fall back to lossy, and how much quota is left.
Usage
Describe what you want in natural language, with the full path to your file:
"Convert
/Users/me/Desktop/photo.jpgto AVIF at 1000px wide"
"Compress all the JPEGs in
/Users/me/projects/blog/images/to WebP and save to/Users/me/projects/blog/compressed/"
"Optimise
/Users/me/Desktop/product.jpgfor eBay"
"Remove the background from
/Users/me/Desktop/shirt.pngand save as WebP"
"Compress
/Users/me/Desktop/report.pdf— it's too big to email"
"Rasterize
/Users/me/Desktop/report.pdfto PNGs at 200 DPI"
"Make
/Users/me/Desktop/sunset.jpgHDR"
"Brighten
/Users/me/Desktop/dim.jpga bit and optimise it for my website"
"Turn the scans in
/Users/me/Desktop/receipts/into one A4 PDF"
API
Powered by https://api.mochify.app — /v1/squish for images, /v1/pdf for PDF optimize/extract/rasterize/split/create. Files are processed in RAM and never written to disk.
One operation is one output image. Compress, convert, resize and rotate the same file and it stays one operation; ask for two formats at two sizes and that is four. PDF optimize, extract, rasterize and split need a paid plan (Day Pass counts); create works on every plan including Free.
Visit mochify.app for the web interface, pricing, and API docs.
Questions
Ask in GitHub Discussions — answers stay searchable there, which a support email thread does not. Bugs and feature requests belong in Issues. For anything account or billing related, email [email protected].
Listed in the official MCP Registry as mcp-name: app.mochify/mochify.
来源:README.md,提交 3ee8ae9
工具
0版本历史
1- v1.6.2最新Sep 21, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分