Skip to main content
Glama

MCP-Bildextraktor

MCP-Server zum Extrahieren und Konvertieren von Bildern in Base64 für die LLM-Analyse.

Dieser MCP-Server bietet KI-Assistenten Tools zum:

  • Extrahieren Sie Bilder aus lokalen Dateien

  • Bilder aus URLs extrahieren

  • Verarbeiten Sie base64-codierte Bilder

So sieht es im Cursor aus:

Geeignete Fälle:

  • Analysieren Sie die Testergebnisse des Dramatikers: Screenshots

Installation

Empfohlen: Verwenden von npx in mcp.json (am einfachsten)

Die empfohlene Methode zum Installieren dieses MCP-Servers ist die Verwendung von npx direkt in Ihrer Datei .cursor/mcp.json :

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

Dieser Ansatz:

  • Installiert automatisch die neueste Version

  • Erfordert keine globale Installation

  • Funktioniert zuverlässig in verschiedenen Umgebungen

Alternative: Lokale Pfadinstallation

Wenn Sie eine lokale Installation des Pakets bevorzugen, können Sie das Repository klonen und auf die erstellten Dateien verweisen:

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

Manuelle 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

Dadurch wird der Befehl mcp-image-extractor global verfügbar.

Konfigurieren Sie dann in .cursor/mcp.json :

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

Fehlerbehebung für Cursor-Benutzer : Wenn die Fehlermeldung „Client konnte nicht erstellt werden“ angezeigt wird, versuchen Sie die oben beschriebene Installationsmethode über den lokalen Pfad oder stellen Sie sicher, dass Sie den richtigen Pfad zur ausführbaren Datei verwenden.

Related MCP server: MCP URL Fetcher

Verfügbare Tools

Bild aus Datei extrahieren

Extrahiert ein Bild aus einer lokalen Datei und konvertiert es in Base64.

Parameter:

  • file_path (erforderlich): Pfad zur lokalen Bilddatei

Hinweis: Alle Bilder werden automatisch auf optimale Abmessungen (max. 512 x 512) für die LLM-Analyse skaliert, um die Größe der Base64-Ausgabe zu begrenzen und die Nutzung des Kontextfensters zu optimieren.

Bild aus URL extrahieren

Extrahiert ein Bild aus einer URL und konvertiert es in Base64.

Parameter:

  • url (erforderlich): URL des zu extrahierenden Bildes

Hinweis: Alle Bilder werden automatisch auf optimale Abmessungen (max. 512 x 512) für die LLM-Analyse skaliert, um die Größe der Base64-Ausgabe zu begrenzen und die Nutzung des Kontextfensters zu optimieren.

Bild aus Base64 extrahieren

Verarbeitet ein Base64-codiertes Bild für die LLM-Analyse.

Parameter:

  • base64 (erforderlich): Base64-kodierte Bilddaten

  • mime_type (optional, Standard: "image/png"): MIME-Typ des Bildes

Hinweis: Alle Bilder werden automatisch auf optimale Abmessungen (max. 512 x 512) für die LLM-Analyse skaliert, um die Größe der Base64-Ausgabe zu begrenzen und die Nutzung des Kontextfensters zu optimieren.

Beispielverwendung

Hier ist ein Beispiel für die Verwendung der Tools von Claude:

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

Claude verwendet automatisch das Tool extract_image_from_file , um den Bildinhalt zu laden und zu analysieren.

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

Claude verwendet automatisch das Tool extract_image_from_url , um den Bildinhalt abzurufen und zu analysieren.

Docker

Erstellen und Ausführen mit Docker:

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

Lizenz

MIT

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