MCP Mistral OCR logo

MCP Mistral OCR

by everaldo

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.

View on GitHub

Last updated: N/A

What is MCP Mistral OCR?

MCP Mistral OCR is a server that leverages the Mistral AI OCR API to extract text from images and PDF documents. It can process files from local storage or directly from URLs.

How to use MCP Mistral OCR?

The server can be installed via Smithery, Docker, or local development. You need to provide your Mistral AI API key as an environment variable. Configuration examples are provided for Claude Desktop. The server exposes tools to process local files and files from URLs. The OCR results are saved as JSON files in the specified output directory.

Key features of MCP Mistral OCR

  • 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

Use cases of MCP Mistral OCR

  • Extracting text from scanned documents

  • Automating data entry from images

  • Processing receipts and invoices

  • Analyzing text from web images

FAQ from MCP Mistral OCR

What is the maximum file size supported?

The maximum file size is 50MB, as enforced by the Mistral API.

What is the maximum number of pages supported for PDF documents?

The maximum number of pages is 1000, as enforced by the Mistral API.

What file types are supported?

The server supports JPG, JPEG, PNG, GIF, WebP images and PDF documents.

How are the OCR results saved?

OCR results are saved in JSON format in the output directory inside OCR_DIR. Each result file is named using the following format: {original_filename}_{timestamp}.json for local files and {url_filename}_{timestamp}.json or url_document_{timestamp}.json if no filename is found in the URL for URLs.

How do I provide my Mistral AI API key?

You need to set the MISTRAL_API_KEY environment variable with your API key.