document-image-extractor-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@document-image-extractor-mcpExtract images from resume.pdf"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Document Image Extractor MCP Server
A Model Context Protocol (MCP) server that provides tools for extracting images from PDF and Word documents. This server exposes document image extraction capabilities to AI assistants and other MCP clients.
Features
PDF Image Extraction: Extract embedded images from PDF files with size filtering
Word Document Processing: Extract images from .docx files
Document Analysis: Get metadata and image counts without extraction
Format Validation: Check document compatibility before processing
Flexible Output: Configurable output directories and file naming
ZIP Archive Creation: Automatically create ZIP files containing original document and extracted images
Related MCP server: PDF Extraction MCP Server
Available Tools
extract_document_images
Extract all images from a PDF or Word document, save them as separate files, and create a ZIP archive containing both the original document and extracted images.
Parameters:
document_path(required): Path to the document file (.pdf or .docx)output_dir(optional): Directory to save extracted imagesmin_image_size(optional): Minimum image dimension for PDF extraction (default: 10)
Returns: List of extracted image files with paths, metadata, and ZIP archive location
get_document_info
Get information about a document without extracting images.
Parameters:
document_path(required): Path to the document file
Returns: Document metadata including page count, file size, and image count
validate_document
Check if a document file is valid and supported for image extraction.
Parameters:
document_path(required): Path to the document file
Returns: Validation status and file information
list_supported_formats
List all supported document formats for image extraction.
Returns: Information about supported file types and their capabilities
Installation
Clone this repository:
git clone <repository-url>
cd document-image-extractor-mcpInstall dependencies using uv:
uv syncConfiguration
Claude Desktop
Add the server to your Claude Desktop configuration:
MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"document-image-extractor": {
"command": "uv",
"args": [
"--directory",
"/mnt/b/Users/cjdua/Github/document-image-extractor-mcp",
"run",
"document-image-extractor-mcp"
]
}
}
}Replace the path with the actual location of this directory on your system.
Usage
Running the Server
The MCP server communicates over stdio. You can run it directly:
uv run document-image-extractor-mcpExample Usage
Once connected to an MCP client, you can use the tools like this:
Extract images from a PDF:
{
"tool": "extract_document_images",
"arguments": {
"document_path": "/path/to/document.pdf",
"output_dir": "/path/to/output",
"min_image_size": 50
}
}Get document information:
{
"tool": "get_document_info",
"arguments": {
"document_path": "/path/to/document.docx"
}
}Validate a document:
{
"tool": "validate_document",
"arguments": {
"document_path": "/path/to/document.pdf"
}
}Supported Formats
PDF (.pdf): Extracts raster images embedded in pages
Word Documents (.docx): Extracts images from the document's media archive
Dependencies
mcp>=1.11.0: Model Context Protocol frameworkPyMuPDF>=1.23.0: PDF processing libraryPillow>=9.0.0: Image processing library
Development
Building and Publishing
To prepare the package for distribution:
Sync dependencies and update lockfile:
uv syncBuild package distributions:
uv buildPublish to PyPI:
uv publishDebugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, use the MCP Inspector:
npx @modelcontextprotocol/inspector uv --directory /mnt/b/Users/cjdua/Github/document-image-extractor-mcp run document-image-extractor-mcpUpon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
License
This project is part of the Leet_Vibe repository and follows the same licensing terms.
Related Projects
This MCP server is based on the document-image-extractor package, which provides the core extraction functionality in a standalone Python package format.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/hublun/document-image-extractor-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server