MCP Image Extractor
Extractor de imágenes MCP
Servidor MCP para extraer y convertir imágenes a base64 para análisis LLM.
Este servidor MCP proporciona herramientas para que los asistentes de IA puedan:
Extraer imágenes de archivos locales
Extraer imágenes de URL
Procesar imágenes codificadas en base64
Cómo se ve en Cursor:
Casos adecuados:
Analizar los resultados de la prueba de dramaturgia: capturas de pantalla
Para cursores u otros clientes
Instalación manual
# Clone and install
git clone https://github.com/ifmelate/mcp-image-extractor.git
cd mcp-image-extractor
npm install
npm run build
npm linkEsto hará que el comando mcp-image-extractor esté disponible globalmente.
Usando el archivo .cursor/mcp.json
Para el desarrollo local o cuando se trabaja en un proyecto específico, puede agregar un archivo .cursor/mcp.json en la raíz de su proyecto:
{
"mcpServers": {
"image-extractor": {
"command": "node",
"args": ["/full/path/to/mcp-image-extractor/dist/index.js"],
"disabled": false
}
}
}O, si lo has instalado mediante el enlace npm:
{
"mcpServers": {
"image-extractor": {
"command": "mcp-image-extractor",
"disabled": false
}
}
}Nota importante para los usuarios de Cursor : si ve el error "Error al crear el cliente", pruebe estas alternativas:
Opción 1: utilizar la instalación directa de GitHub
git clone https://github.com/ifmelate/mcp-image-extractor.git cd mcp-image-extractor npm install npm run build npm linkLuego configure en
.cursor/mcp.json:{ "mcpServers": { "image-extractor": { "command": "mcp-image-extractor", "disabled": false } } }Opción 2: Clonar y ejecutar localmente
git clone https://github.com/ifmelate/mcp-image-extractor.git cd mcp-image-extractor npm install npm run buildLuego configure en
.cursor/mcp.json:{ "mcpServers": { "image-extractor": { "command": "node", "args": ["/full/path/to/mcp-image-extractor/dist/index.js"], "disabled": false } } }
Herramientas disponibles
extraer_imagen_del_archivo
Extrae una imagen de un archivo local y la convierte a base64.
Parámetros:
file_path(obligatorio): Ruta al archivo de imagen local
Nota: Todas las imágenes se redimensionan automáticamente a dimensiones óptimas (máximo 512x512) para el análisis LLM para limitar el tamaño de la salida base64 y optimizar el uso de la ventana de contexto.
extraer_imagen_de_la_url
Extrae una imagen de una URL y la convierte a base64.
Parámetros:
url(obligatorio): URL de la imagen a extraer
Nota: Todas las imágenes se redimensionan automáticamente a dimensiones óptimas (máximo 512x512) para el análisis LLM para limitar el tamaño de la salida base64 y optimizar el uso de la ventana de contexto.
extraer_imagen_de_base64
Procesa una imagen codificada en base64 para el análisis LLM.
Parámetros:
base64(obligatorio): datos de imagen codificados en Base64mime_type(opcional, predeterminado: "image/png"): tipo MIME de la imagen
Nota: Todas las imágenes se redimensionan automáticamente a dimensiones óptimas (máximo 512x512) para el análisis LLM para limitar el tamaño de la salida base64 y optimizar el uso de la ventana de contexto.
Related MCP server: MCP URL Fetcher
Ejemplo de uso
Aquí hay un ejemplo de cómo utilizar las herramientas de Claude:
Please extract the image from this local file: images/photo.jpgClaude utilizará automáticamente la herramienta extract_image_from_file para cargar y analizar el contenido de la imagen.
Please extract the image from this URL: https://example.com/image.jpgClaude utilizará automáticamente la herramienta extract_image_from_url para obtener y analizar el contenido de la imagen.
Estibador
Construir y ejecutar con Docker:
docker build -t mcp-image-extractor .
docker run -p 8000:8000 mcp-image-extractorLicencia
Instituto Tecnológico de Massachusetts (MIT)
Available Tools
3 toolsextract_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
Scored across 3 tools
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.
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.
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.
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
A Model Context Protocol server for Wix AI tools
OCR, transcription, file extraction, and image generation for AI agents via MCP.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Generate images from Claude, ChatGPT, Cursor and Codex with 12 top AI image models. Up to 4 images per call, SVG vectorization, background removal, upscaling and image-to-video. Remote MCP with OAuth, no API keys.
Related MCP Servers
- AlicenseAqualityBmaintenanceA 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.122MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables LLMs to fetch and process web content in multiple formats (HTML, JSON, Markdown, text) with automatic format detection.56MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that converts diverse file types, including PDFs, images, audio, and Office documents, into Markdown format. It also transforms web content like YouTube transcripts and Bing search results into readable text for model consumption.13681 npmMIT
- FlicenseNot gradedqualityDmaintenanceA powerful Model Context Protocol (MCP) server for image processing, designed to empower AI models with advanced image manipulation capabilities.1-