Skip to main content
Glama

MCP Image Extractor

by ifmelate

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 出力のサイズを制限し、コンテキスト ウィンドウの使用を最適化します。

使用例

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

ライセンス

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

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

URL または base64 データから画像を抽出し、LLM 分析に適した形式に変換して、AI モデルが視覚コンテンツを処理および理解できるようにするモデル コンテキスト プロトコル サーバー。

  1. カーソルまたはその他のクライアントの場合
    1. 手動インストール
      1. .cursor/mcp.json ファイルの使用
    2. 利用可能なツール
      1. ファイルから画像を抽出する
      2. URLから画像を抽出する
      3. base64から画像を抽出する
    3. 使用例
      1. ドッカー
        1. ライセンス

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that enables LLMs to extract and use content from unstructured documents across a wide variety of file formats.
            Last updated -
            2
            Python
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol (MCP) server that enables Claude or other LLMs to fetch content from URLs, supporting HTML, JSON, text, and images with configurable request parameters.
            Last updated -
            Python
            MIT License
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables fetching and processing images from URLs, local file paths, and numpy arrays, returning them as base64-encoded strings with proper MIME types.
            Last updated -
            1
            Python
            MIT License
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that enables LLMs to fetch and process web content in multiple formats (HTML, JSON, Markdown, text) with automatic format detection.
            Last updated -
            TypeScript
            • Apple

          View all related MCP servers

          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/ifmelate/mcp-image-extractor'

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