MCP Image Extractor

by ifmelate
Verified

hybrid server

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

Integrations

  • Supports containerized deployment of the MCP image extraction service through Docker, allowing for isolated and portable execution environments.

  • Provides installation directly from GitHub repository, with specific instructions for cloning and building from the GitHub source.

  • Enables installation and management through npm, with support for npm link to make the command globally available.

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

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

  1. For Cursor or Other Clients
    1. Manual Installation
      1. Using .cursor/mcp.json file
    2. Available Tools
      1. extract_image_from_file
      2. extract_image_from_url
      3. extract_image_from_base64
    3. Example Usage
      1. Docker
        1. License
          ID: hixk83oerv