Skip to main content
Glama
mcp-image-downloader

mcp-image-downloader

MCP 画像ダウンローダー

画像のダウンロードと最適化のためのツールを提供するMCPサーバー。モデルコンテキストプロトコル(MCP)を使用して構築されたこのサーバーにより、AIアシスタントはURLから画像をダウンロードし、基本的な画像最適化タスクを実行できます。

特徴

  • 適切なエラー処理を行って URL から画像をダウンロードする

  • 次のオプションを使用して画像を最適化します。

    • サイズ変更(アスペクト比を維持)

    • 品質調整(JPEG/WebP)

    • フォーマット変換

Related MCP server: google-image-search-mcp

インストール

# Clone the repository
git clone https://github.com/qpd-v/mcp-image-downloader.git
cd mcp-image-downloader

# Install dependencies
npm install

# Build the project
npm run build

使用法

MCPサーバーとして

サーバーを MCP 構成に追加します (例: Claude Desktop の構成)。

{
  "mcpServers": {
    "image-downloader": {
      "command": "node",
      "args": ["/path/to/mcp-image-downloader/build/index.js"]
    }
  }
}

利用可能なツール

ダウンロード画像

URL から指定されたパスに画像をダウンロードします。

パラメータ:

  • url : ダウンロードする画像のURL

  • outputPath : 画像を保存するパス

画像の最適化

画像の最適化されたバージョンを作成します。

パラメータ:

  • inputPath : 入力画像へのパス

  • outputPath : 最適化された画像を保存するパス

  • width (オプション):ターゲットの幅(幅のみ指定されている場合はアスペクト比を維持します)

  • height (オプション):ターゲットの高さ(高さのみ指定されている場合はアスペクト比を維持します)

  • quality (オプション):JPEG/WebP 品質(1~100)

発達

# Run in development mode
npm run start

# Build the project
npm run build

要件

  • Node.js 16以上

  • NPMまたは互換性のあるパッケージマネージャー

ライセンス

MIT ライセンス - 詳細についてはLICENSEファイルを参照してください。

著者

qpd-v

バージョン

0.1.0 - 初回リリース

Available Tools

2 tools
download_imageC

Download an image from a URL to a specified path

Inputs: outputPath (required), url (required).

optimize_imageC

Create an optimized version of an image

Inputs: inputPath (required), outputPath (required), height, quality, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one downloads images from external sources, while the other processes existing images for optimization. There is no overlap in functionality, making it impossible to confuse them.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern (download_image and optimize_image) with clear, descriptive names. The naming convention is uniform and predictable throughout the set.

    Tool Count2/5

    With only two tools, the server feels under-scoped for an image downloader domain. Key operations like listing available images, handling errors, or supporting different image formats are missing, making the toolset too minimal for robust agent workflows.

    Completeness2/5

    The toolset is severely incomplete for an image downloader domain. It lacks basic CRUD operations such as listing or deleting images, error handling tools, and support for varied input sources or formats, which will likely cause agent failures in practical use.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers