Mistral OCR MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MISTRAL_API_KEY | Yes | Your Mistral API key | |
| MISTRAL_OCR_ALLOWED_DIR | Yes | Absolute path to allowed write directory |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| extract_markdownA | Extract markdown text from a PDF or image file. When Args:
file_path: Absolute path to the input file (PDF or image)
output_dir: Absolute path to an existing output directory (must be
within allowed dir). When set, saves markdown to disk at
Returns: When output_dir is not set: result: Extracted markdown content When output_dir is set (with or without images): output_directory: Absolute path to the output subdirectory markdown_file: Absolute path to the content.md file images: List of saved image filenames (empty if include_images is False) |
| extract_markdown_from_urlA | Extract markdown text from a publicly accessible URL. Processes a PDF or image directly from a URL without uploading
a local file first. When Args:
file_url: Publicly accessible URL to a PDF or image
output_dir: Absolute path to an existing output directory (must be
within allowed dir). When set, saves markdown to disk at
Returns: When output_dir is not set: result: Extracted markdown content When output_dir is set (with or without images): output_directory: Absolute path to the output subdirectory markdown_file: Absolute path to the content.md file images: List of saved image filenames (empty if include_images is False) |
| extract_markdown_advancedA | Extract markdown with advanced OCR options. Args: file_path: Absolute path to the input file (PDF or image) pages: Specific page numbers to process (1-indexed, e.g. [1, 3, 5]) table_format_: Output format for tables ("markdown" or "html") model: OCR model to use (default: "mistral-ocr-latest") Returns: Extracted markdown content as a string |
| ocr_statusA | Check Mistral API connectivity and key validity. Makes a lightweight API call to verify the configured API key is working correctly. Returns: Dictionary with status ("ok" or "error") and message |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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/ORDIS-Co-Ltd/mistral-ocr-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server