Skip to main content
Glama

MCP 画像抽出ツール

LLM 分析用に画像を抽出し、base64 に変換する MCP サーバー。

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

  • ローカルファイルから画像を抽出する

  • URLから画像を抽出する

  • Base64エンコードされた画像を処理する

カーソル内での表示:

適切なケース:

  • 劇作家テストの結果を分析する: スクリーンショット

カーソルまたはその他のクライアントの場合

手動インストール

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

これによりmcp-image-extractorコマンドがグローバルに使用できるようになります。

.cursor/mcp.json ファイルの使用

ローカル開発または特定のプロジェクトで作業する場合は、プロジェクト ルートに.cursor/mcp.jsonファイルを追加できます。

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

または、npm リンク経由でインストールした場合:

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

カーソル ユーザー向けの重要な注意: 「クライアントの作成に失敗しました」というエラーが表示された場合は、次の代替策を試してください。

オプション1: GitHubの直接インストールを使用する

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

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

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

オプション2: クローンを作成してローカルで実行する

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

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

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

利用可能なツール

ファイルから画像を抽出する

ローカル ファイルから画像を抽出し、base64 に変換します。

パラメータ:

  • file_path (必須): ローカル画像ファイルへのパス

**注:**すべての画像は、LLM 分析に最適なサイズ (最大 512x512) に自動的にサイズ変更され、base64 出力のサイズを制限し、コンテキスト ウィンドウの使用を最適化します。

URLから画像を抽出する

URL から画像を抽出し、base64 に変換します。

パラメータ:

  • url (必須): 抽出する画像のURL

**注:**すべての画像は、LLM 分析に最適なサイズ (最大 512x512) に自動的にサイズ変更され、base64 出力のサイズを制限し、コンテキスト ウィンドウの使用を最適化します。

base64から画像を抽出する

LLM 分析用に base64 でエンコードされた画像を処理します。

パラメータ:

  • base64 (必須): Base64でエンコードされた画像データ

  • mime_type (オプション、デフォルト:"image/png"):画像のMIMEタイプ

**注:**すべての画像は、LLM 分析に最適なサイズ (最大 512x512) に自動的にサイズ変更され、base64 出力のサイズを制限し、コンテキスト ウィンドウの使用を最適化します。

Related MCP server: MCP URL Fetcher

使用例

Claude のツールの使用方法の例を次に示します。

Please extract the image from this local file: images/photo.jpg

Claude は、 extract_image_from_fileツールを自動的に使用して、画像コンテンツを読み込んで分析します。

Please extract the image from this URL: https://example.com/image.jpg

Claude は、 extract_image_from_urlツールを自動的に使用して、画像コンテンツを取得および分析します。

ドッカー

Docker でビルドして実行します。

docker build -t mcp-image-extractor .
docker run -p 8000:8000 mcp-image-extractor

ライセンス

マサチューセッツ工科大学

Available Tools

3 tools
extract_image_from_base64A

Extract and analyze images from base64-encoded data. Ideal for processing screenshots from clipboard, dynamically generated images, or images embedded in applications without requiring file system access.

Inputs: base64 (required), max_height, max_width, mime_type, +1 more.

extract_image_from_fileA

Extract and analyze images from local file paths. Supports visual content understanding, OCR text extraction, and object recognition for screenshots, photos, diagrams, and documents.

Inputs: file_path (required), max_height, max_width, resize.

extract_image_from_urlA

Extract and analyze images from web URLs. Perfect for analyzing web screenshots, online photos, diagrams, or any image accessible via HTTP/HTTPS for visual content analysis and text extraction.

Inputs: url (required), max_height, max_width, resize.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose based on the source of the image: base64-encoded data, local file paths, and web URLs. The descriptions reinforce this by specifying different use cases (e.g., clipboard screenshots, local files, online images), leaving no ambiguity for an agent to misselect.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with 'extract_image_from_' as a prefix, followed by the source type (base64, file, url). This predictable naming scheme makes it easy for agents to understand and navigate the tool set without confusion.

    Tool Count5/5

    With 3 tools, the server is well-scoped for its purpose of extracting images from different sources. Each tool earns its place by covering a distinct input method (base64, file, URL), providing a complete set for the domain without being overly sparse or bloated.

    Completeness5/5

    The tool surface is complete for the domain of image extraction, covering all major input sources: base64 data, local files, and web URLs. There are no obvious gaps, as these three methods encompass the typical ways images are accessed in applications, ensuring agents can handle various scenarios without dead ends.

    Related MCP Connectors

    Related MCP Servers