mcpField
I
Imagician

Imagician

ローカル
github.com/flowy11メディア・デザイン1950 週間前に更新

Imagician について

Imagician は、リサイズ、フォーマット変換、クロップ、圧縮などを行う画像編集用の MCP サーバーです。AI アシスタントから直接画像を処理したい方を対象とし、npm からインストールして Claude Code、Cursor、Claude Desktop に接続できます。

主な機能

  1. 01複数のフィット方式によるリサイズ
  2. 02JPEG、PNG、WebP、AVIF間のフォーマット変換
  3. 03品質指定付きの領域クロップと圧縮
  4. 04回転および水平・垂直反転
  5. 05画像のメタデータ取得
  6. 061つの画像から複数サイズを生成

活用シーン

  1. 01Web ページ向けのレスポンシブ画像サイズの生成
  2. 02画像の WebP または AVIF への一括変換
  3. 03圧縮によるファイルサイズの削減

MCP 対応

本プロジェクトは MCP サーバーであり、resize_image、convert_format、crop_image、compress_image、rotate_image、flip_image、get_image_info、batch_resize などのツールを MCP クライアントに公開します。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"imagician": {
"command": "npx",
"args": [
"-y",
"@flowy11/imagician"
]
}
}
}
起動コマンドnpx -y @flowy11/imagician

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npm@flowy11/imagician

ツール

8

掲載時のツール一覧 · 3 週間前に更新

パラメーター型必須説明
inputPathstringはい入力画像のパス
outputPathstringはいサイズ変更した画像の保存先パス
widthnumberいいえ目標の幅(ピクセル)
heightnumberいいえ目標の高さ(ピクセル)
fitenumいいえ画像を指定サイズに合わせる方法cover | contain | fill | inside | outside
preserveAspectRatiobooleanいいえ元のアスペクト比を維持します

詳細

Imagician - MCP 画像エディター

npm version

リサイズ、形式変換、トリミング、圧縮など、幅広い画像編集操作に対応する Model Context Protocol(MCP)サーバーです。

Imagician MCP サーバー

機能

  • リサイズ:さまざまなフィットオプションで画像の寸法を変更します
  • 形式変換:JPEG、PNG、WebP、AVIF 間で変換します
  • トリミング:画像から特定の領域を切り出します
  • 圧縮:画質を調整してファイルサイズを削減します
  • 回転:画像を任意の角度で回転します
  • 反転:画像を水平方向または垂直方向に反転します
  • 一括処理:1 枚の画像から複数のサイズを生成します
  • メタデータ:画像の情報とプロパティを抽出します

インストール

npm から
npm install -g @flowy11/imagician
ソースから
git clone https://github.com/flowy11/imagician.git
cd imagician
npm install
npm run build

Claude Code での使用方法

Claude Code の設定に追加します(~/.config/claude/config/settings/mcp-servers.json):

{
  "imagician": {
    "command": "npx",
    "args": ["-y", "@flowy11/imagician"]
  }
}

Cursor での使用方法

Cursor の設定に追加します(~/.cursor/mcp_settings.json):

{
  "mcpServers": {
    "imagician": {
      "command": "npx",
      "args": ["-y", "@flowy11/imagician"]
    }
  }
}

Claude Desktop での使用方法

Claude Desktop の設定に追加します(~/Library/Application Support/Claude/claude_desktop_config.json):

npx を使用した簡単なセットアップ(推奨):
{
  "mcpServers": {
    "imagician": {
      "command": "npx",
      "args": ["-y", "@flowy11/imagician"]
    }
  }
}
npm でグローバルにインストールした場合:
{
  "mcpServers": {
    "imagician": {
      "command": "imagician"
    }
  }
}
ソースからインストールした場合:
{
  "mcpServers": {
    "imagician": {
      "command": "node",
      "args": ["/path/to/imagician/dist/index.js"]
    }
  }
}

利用可能なツール

resize_image

さまざまなフィットオプションを使って、指定した寸法に画像をリサイズします。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save resized image
- width: Target width in pixels (optional)
- height: Target height in pixels (optional)
- fit: How to resize (cover, contain, fill, inside, outside)
- preserveAspectRatio: Maintain aspect ratio (default: true)
convert_format

画質を調整して、画像形式を変換します。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save converted image
- format: Target format (jpeg, png, webp, avif)
- quality: Quality for lossy formats (1-100, default: 80)
crop_image

画像から特定の領域を切り出します。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save cropped image
- left: Left offset in pixels
- top: Top offset in pixels
- width: Width of crop area
- height: Height of crop area
compress_image

画質設定を使って、画像ファイルのサイズを削減します。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save compressed image
- quality: Compression quality (1-100, default: 80)
- progressive: Use progressive encoding for JPEG (default: true)
rotate_image

画像を任意の角度で回転します。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save rotated image
- angle: Rotation angle in degrees (positive = clockwise)
- background: Background color for exposed areas (default: #000000)
flip_image

画像を水平方向または垂直方向に反転します。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save flipped image
- direction: Flip direction (horizontal, vertical, both)
get_image_info

画像のメタデータと情報を抽出します。

Parameters:
- inputPath: Path to image file

Returns: format, dimensions, color space, file size, etc.
batch_resize

1 枚の画像から複数のサイズを生成します(レスポンシブ画像に最適です)。

Parameters:
- inputPath: Path to input image
- outputDir: Directory to save resized images
- sizes: Array of {width, height?, suffix}
- format: Output format for all sizes (optional)

Claude での使用例

"Please resize image.jpg to 800x600 pixels"
"Convert photo.png to WebP format with 90% quality"
"Crop avatar.jpg starting at (100, 100) with 200x200 size"
"Generate thumbnail sizes: 150px, 300px, and 600px wide"

開発

# Install dependencies
npm install

# Build TypeScript
npm run build

# Run in development mode
npm run dev

ライセンス

MIT

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。