mcp-mistral-ocr
Supports containerized deployment using Docker, with configuration options for environment variables and volume mounting to access local files.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Mistral OCR
An MCP server that provides OCR capabilities using Mistral AI's OCR API. This server can process both local files and URLs, supporting images and PDFs.
Features
Process local files (images and PDFs) using Mistral's OCR
Process files from URLs with explicit file type specification
Support for multiple file formats (JPG, PNG, PDF, etc.)
Results saved as JSON files with timestamps
Docker containerization
UV package management
Related MCP server: Mistral OCR MCP Server
Environment Variables
MISTRAL_API_KEY: Your Mistral AI API keyOCR_DIR: Directory path for local file processing. Inside the container, this is always mapped to/data/ocr
Installation
Installing via Smithery
To install Mistral OCR for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @everaldo/mcp/mistral-crosswalk --client claudeUsing Docker
Build the Docker image:
docker build -t mcp-mistral-ocr .Run the container:
docker run -e MISTRAL_API_KEY=your_api_key -e OCR_DIR=/data/ocr -v /path/to/local/files:/data/ocr mcp-mistral-ocrLocal Development
Install UV package manager:
pip install uvCreate and activate virtual environment:
uv venv
source .venv/bin/activate # On Unix
# or
.venv\Scripts\activate # On WindowsInstall dependencies:
uv pip install .Claude Desktop Configuration
Add this configuration to your claude_desktop_config.json:
{
"mcpServers": {
"mistral-ocr": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MISTRAL_API_KEY",
"-e",
"OCR_DIR",
"-v",
"C:/path/to/your/files:/data/ocr",
"mcp-mistral-ocr:latest"
],
"env": {
"MISTRAL_API_KEY": "<YOUR_MISTRAL_API_KEY>",
"OCR_DIR": "C:/path/to/your/files"
}
}
}
}Available Tools
1. process_local_file
Process a file from the configured OCR_DIR directory.
{
"name": "process_local_file",
"arguments": {
"filename": "document.pdf"
}
}2. process_url_file
Process a file from a URL. Requires explicit file type specification.
{
"name": "process_url_file",
"arguments": {
"url": "https://example.com/document",
"file_type": "image" // or "pdf"
}
}Output
OCR results are saved in JSON format in the output directory inside OCR_DIR. Each result file is named using the following format:
For local files:
{original_filename}_{timestamp}.jsonFor URLs:
{url_filename}_{timestamp}.jsonorurl_document_{timestamp}.jsonif no filename is found in the URL
The timestamp format is YYYYMMDD_HHMMSS.
Supported File Types
Images: JPG, JPEG, PNG, GIF, WebP
Documents: PDF and other document formats supported by Mistral OCR
Limitations
Maximum file size: 50MB (enforced by Mistral API)
Maximum document pages: 1000 (enforced by Mistral API)
This server cannot be deployed
Maintenance
Related MCP Connectors
OCR text from images and scanned PDFs; pay-per-event via your Apify account.
Extract text from images with OCR: plain text plus every line or word with its box
OCR and document understanding: extract text from images, then summarize or translate it.
Hosted OCRmyPDF: add a searchable text layer to scanned PDFs and images, returned as PDF/A.
Related MCP Servers
- AlicenseAqualityDmaintenanceConverts PDF files from local storage or URLs to structured Markdown format using Mistral AI's OCR API, preserving document structure and extracting images.21MIT
- FlicenseAqualityDmaintenanceExtracts text content from PDFs and images using Mistral's OCR API, enabling OCR capabilities in MCP-compatible clients like Cursor and Claude Desktop.18-
- AlicenseAqualityDmaintenanceExtracts text and images from PDFs and image files using the Mistral OCR API, with a security sandbox for file writes.427 PyPIMIT
- AlicenseNot gradedqualityAmaintenanceConverts documents and images to Markdown using Mistral AI's OCR, enabling AI-powered document processing via MCP-compatible clients like Claude Desktop.62 npm2MIT