Skip to main content
Glama

mochify-cli

MCP Badge License: MIT

mochify.app用のコマンドラインツールおよびMCPサーバーです。ネイティブC++エンジンを搭載した、高速でプライバシーを重視した画像圧縮・変換APIです。

ターミナルから画像をモダンなフォーマット(AVIF、JXL、WebP、Jpegli)に圧縮・変換したり、Model Context Protocolを通じてClaudeのようなAIアシスタントに直接画像処理機能を提供したりできます。

インストール

macOS (Homebrew):

brew tap getmochify/mochify
brew install mochify

Linux / WSL:

# x86_64
curl -L https://github.com/getmochify/mochify-cli/releases/latest/download/mochify-linux-x86_64 -o mochify
chmod +x mochify
sudo mv mochify /usr/local/bin/

# arm64
curl -L https://github.com/getmochify/mochify-cli/releases/latest/download/mochify-linux-arm64 -o mochify
chmod +x mochify
sudo mv mochify /usr/local/bin/

手動: すべてのバイナリはReleasesから入手可能です。

ソースから:

cargo install --path .

Related MCP server: tinypng-mcp-server

認証

mochify.appアカウントでサインインして、クォータを最大限に活用しましょう:

mochify auth login

ブラウザが開き、サインインしてCLIを承認します。認証情報は自動的に ~/.config/mochify/credentials.toml に保存されるため、環境変数の設定や手動でのキーコピーは不要です。CLIとMCPサーバーの両方が自動的に読み込みます。

mochify auth status   # check whether you're signed in
mochify auth logout   # remove saved credentials

無料枠(未認証)は1日25枚までです。mochify.appでサインアップしてください。

CLIの使用方法

mochify [OPTIONS] <FILES>...

オプション

フラグ

説明

-t, --type <FORMAT>

出力フォーマット: jpg, png, webp, avif, jxl

-w, --width <N>

ターゲットの幅(ピクセル)

-H, --height <N>

ターゲットの高さ(ピクセル)

--crop

指定した寸法にクロップ

-r, --rotation <DEG>

回転: 0, 90, 180, 270

-o, --output <DIR>

出力ディレクトリ(デフォルト: 入力と同じ)

-p, --prompt <TEXT>

自然言語プロンプト — パラメータを自動的に解決

-k, --api-key <KEY>

APIキーの上書き(または MOCHIFY_API_KEY 環境変数を設定)

# 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

# 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

MCPサーバー (Claude Desktop)

mochifyMCPサーバーとして実行でき、Claudeが会話から直接あなたの代わりに画像を処理できるようになります。

セットアップ

最初に mochify auth login を実行し、以下の内容をClaude Desktopの設定ファイル ~/Library/Application Support/Claude/claude_desktop_config.json に追加してください:

{
  "mcpServers": {
    "mochify": {
      "command": "mochify",
      "args": ["serve"]
    }
  }
}

Claude Desktopを再起動します。mochifyサーバーが接続先に表示され、保存された認証情報が自動的に使用されます。

使用方法

画像へのフルパスを指定して、自然言語でやりたいことを伝えるだけです:

"Convert /Users/me/Desktop/photo.jpg to 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が自動的に squish ツールを呼び出します。

API

https://api.mochify.xyz/v1/squish のmochify APIによって動作します。

  • 画像はメモリ内で処理され、ディスクには保存されません

  • JPEG (Jpegli)、AVIF、JXL、WebP、PNGの出力に対応

  • 1画像あたり最大25MBまで

ウェブインターフェースについてはmochify.appをご覧ください。

A
license - permissive license
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
1wRelease cycle
21Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Normalize and convert more than 400 file types via TweekIT's hosted MCP streamable HTTP endpoint.

  • MCP server for Tinify image optimization — one tool, max optimization

  • Create App Store screenshots, icons, ASO copy, localization, and revisions via hosted MCP.

View all MCP Connectors

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/getmochify/mochify-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server