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: Unstructured Document Processor MCP

使用例

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

ライセンス

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

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

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

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