Mistral OCR MCP Server
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., "@Mistral OCR MCP ServerOCR pages 0-3 of D:\docs\paper.pdf to markdown"
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.
Mistral OCR MCP Server
This MCP server exposes Mistral OCR for local files and public URLs.
Tools
Tool | Use |
| Validate keys, network access, model name, and output directory. |
| Set one runtime key for the current MCP process. |
| Set multiple runtime keys for automatic fallback. |
| Inspect a local file and return PDF page count when available. |
| OCR a local file and return Markdown inline. Best for short tests. |
| OCR a public URL and return Markdown inline. Best for short tests. |
| OCR a local file and save Markdown to disk. Best for PDFs. |
| OCR a public URL and save Markdown to disk. |
Related MCP server: MCP-PDF2MD
Configuration
Prefer multiple keys so the server can automatically switch when one key is unauthorized, rate-limited, or temporarily failing.
[mcp_servers.mistral-ocr]
type = "stdio"
command = "uv"
args = ["--directory", 'D:\34728\play\OCR\mistral-ocr-mcp', "run", "server.py"]
[mcp_servers.mistral-ocr.env]
MISTRAL_API_KEYS = "key1,key2,key3"
MISTRAL_OCR_OUTPUT_DIR = 'D:\34728\play\OCR\outputs'Single-key compatibility is still supported:
MISTRAL_API_KEY = "key1"After editing the Codex config, restart Codex or reload MCP tools so the new server process sees the environment variables.
Recommended Agent Workflow
Call
health_check.For a local PDF, call
list_pages.For a quick sample, call
ocr_from_filewithpages="0".For real work, call
ocr_to_markdown_fileand read the generated.md.
Example:
health_check()
list_pages(file_path="D:\docs\paper.pdf")
ocr_to_markdown_file(file_path="D:\docs\paper.pdf", pages="0-3")To preserve extracted PDF figures, pass include_images=true.
ocr_to_markdown_file(
file_path="D:\docs\paper.pdf",
pages="0-5",
include_images=true,
image_limit=50,
image_min_size=64
)The Markdown file will contain relative image links and the image files will be
saved in a sibling folder named like paper_hash_assets/.
Local Smoke Tests
cd D:\34728\play\OCR\mistral-ocr-mcp
uv sync
$env:MISTRAL_API_KEYS="key1,key2"
.\.venv\Scripts\python.exe -m py_compile server.py test_ocr.py
.\.venv\Scripts\python.exe test_ocr.py "https://arxiv.org/pdf/2201.04234"Notes
MISTRAL_API_KEYSaccepts comma-, semicolon-, or newline-separated keys.HTTP
401,403,429, selected transient failures, and5xxresponses trigger fallback to the next key.HTTP
400usually means a bad request or unsupported file payload and does not trigger key rotation.Saved Markdown uses UTF-8 and is written to
MISTRAL_OCR_OUTPUT_DIRoroutputs/next toserver.py.Cache filenames include a content/options hash. Re-running the same OCR task returns the cached Markdown path unless
use_cache=false.Mistral OCR returns images separately from Markdown. Without
include_images=true, the server saves text/tables only. Withinclude_images=true, the server requestsinclude_image_base64, writes image assets, and rewrites Markdown placeholders such asto local relative paths.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceOCR images or pdfs, locally or by URLs by using Mistral OCR API (paid)Last updated39MIT
- AlicenseAqualityDmaintenanceConverts PDF files from local storage or URLs to structured Markdown format using Mistral AI's OCR API, preserving document structure and extracting images.Last updated21MIT
- Flicense-qualityDmaintenanceAn MCP server that enables Claude to perform OCR on local files using Mistral AI's document processing capabilities. It converts documents and images into markdown format for seamless analysis and interaction.Last updated
- FlicenseAqualityDmaintenanceExtracts text content from PDFs and images using Mistral's OCR API, enabling OCR capabilities in MCP-compatible clients like Cursor and Claude Desktop.Last updated18
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
OCR.space MCP — wraps the OCR.space API (ocr.space) for image/PDF → text OCR.
PDF accessibility checks (veraPDF PDF/UA-1), auto-fix and Markdown conversion. EU-hosted.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/uuina/mistral-ocr-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server