IM

ifmelate/mcp-image-extractor

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

21 stars 6 forks 品質 69 トレンド 0MIT

エージェントモードでLLMを付与できるMCPサーバーで、必要な時に画像の解析が可能

概要

LLM 解析用の base64 に画像を抽出・変換するための MCP サーバー。 このMCPサーバーはAIアシスタント用のツールを提供しています。 - ローカルファイルから画像を抽出 - URLから画像を抽出 - プロセスベース64エンコードされた画像 適した場合: - playwright のテスト結果の分析: スクリーンショット このMCPサーバをインストールするのは、.cursor/mcp.jsonファイルで直接npxを使用します。 このアプローチ: - 自動的に最新バージョンをインストールします。 - グローバルなインストールを必要としません - 異なる環境で確実に動作する パッケージのローカルインストールを使用するのが好きなら、リポジトリをクローンし、ビルドされたファイルにポイントすることができます。 これにより、mcp-image-extractor コマンドをグローバルに利用できるようになります。 : "クライアントを作成する失敗" エラーが表示された場合、上記のローカルパスのインストール方法を試して、実行可能に正しいパスを使用することを確認してください.

概要(AI 翻訳)

LLM 解析用の base64 に画像を抽出・変換するための MCP サーバー。

このMCPサーバーは、AIアシスタント用のツールを提供しています。

  • ローカルファイルから画像を抽出する
  • URLから画像を抽出する
  • プロセスベース64エンコードされた画像

Cursorでどのように見えるか:

適した場合:

  • playwrightテスト結果の分析:スクリーンショット

インストール

推奨: mcp.json で npx を使用する (最も簡単です)

このMCPサーバーをインストールするのは、npxを.cursor/mcp.json]ファイルで直接使用しています。

このアプローチ:

  • 自動的に最新バージョンをインストールします
  • グローバルインストールを必要としません
  • 異なる環境で確実に動作する

代替: ローカルパスのインストール

パッケージのローカルインストールを使用するのが好きなら、リポジトリをクローンし、ビルドされたファイルにポイントすることができます。

手動インストール

これにより、グローバルで mcp-image-extractor コマンドを実行できます。

[.cursor/mcp.json で設定します。

カーソルユーザーのためのトラブルシューティング: "クライアントを作成する失敗"エラーが表示された場合、上記のローカルパスのインストール方法を試して、または実行可能に正しいパスを使用していることを確認してください。

利用可能なツール

抽出物 image from file

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Image Extractor

MCP server for extracting and converting images to base64 for LLM analysis.

This MCP server provides tools for AI assistants to:

  • Extract images from local files
  • Extract images from URLs
  • Process base64-encoded images

How it looks in Cursor:

Suitable cases:

  • analyze playwright test results: screenshots

Installation

The recommended way to install this MCP server is using npx directly in your .cursor/mcp.json file:

{
  "mcpServers": {
    "image-extractor": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image-extractor"
      ]
    }
  }
}

This approach:

  • Automatically installs the latest version
  • Does not require global installation
  • Works reliably across different environments

Alternative: Local Path Installation

If you prefer to use a local installation of the package, you can clone the repository and point to the built files:

{
  "mcpServers": {
    "image-extractor": {
      "command": "node",
      "args": ["/full/path/to/mcp-image-extractor/dist/index.js"],
      "disabled": false
    }
  }
}

Manual Installation

# Clone and install 
git clone https://github.com/ifmelate/mcp-image-extractor.git
cd mcp-image-extractor
npm install
npm run build
npm link

This will make the mcp-image-extractor command available globally.

Then configure in .cursor/mcp.json:

{
  "mcpServers": {
    "image-extractor": {
      "command": "mcp-image-extractor",
      "disabled": false
    }
  }
}

Troubleshooting for Cursor Users: If you see “Failed to create client” error, try the local path installation method above or ensure you’re using the correct path to the executable.

Available Tools

extract_image_from_file

Extracts an image from a local file and converts it to base64.

Parameters:

  • file_path (required): Path to the local image file

Note: All images are automatically resized to optimal dimensions (max 512x512) for LLM analysis to limit the size of the base64 output and optimize context window usage.

extract_image_from_url

Extracts an image from a URL and converts it to base64.

Parameters:

  • url (required): URL of the image to extract

Note: All images are automatically resized to optimal dimensions (max 512x512) for LLM analysis to limit the size of the base64 output and optimize context window usage.

extract_image_from_base64

Processes a base64-encoded image for LLM analysis.

Parameters:

  • base64 (required): Base64-encoded image data
  • mime_type (optional, default: “image/png”): MIME type of the image
GitHub で README 全文を見る

インストール

npx -y mcp-image-extractor
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "image-extractor": { "command": "npx", "args": [ "-y", "mcp-image-extractor" ] } } }