DocMistral 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., "@DocMistral MCP ServerConvert this 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.
DocMistral MCP Server
A powerful MCP (Model Context Protocol) server that converts documents and images to Markdown using Mistral AI's advanced OCR and document processing capabilities. Perfect for integrating document processing into Claude Desktop and other MCP-compatible clients.
🚀 Features
MCP Server Capabilities
🔗 MCP Compatible: Works with Claude Desktop, Continue, and other MCP clients
📦 One-Command Install:
npx @trsdn/mistraldocai-mcp-server🔄 Automatic Setup: Manages Python environment and dependencies
🌍 Cross-Platform: Windows, macOS, and Linux support
Document Processing
📄 Documents: PDF, PPTX, DOCX via Mistral's OCR API
🖼️ Images: PNG, JPG, JPEG, GIF, BMP, AVIF support
🧠 AI-Powered: Advanced document understanding with complex layouts
✍️ OCR Support: Scanned documents and handwritten text
⚡ Fast Processing: Up to 2,000 pages per minute
💰 Cost-Effective: $0.001 per page ($1 per 1,000 pages)
Related MCP server: Mistral OCR MCP Server
🚀 Quick Start
Step 1: Install the MCP Server
# Install and test with one command
npx @trsdn/mistraldocai-mcp-server --testStep 2: Get API Key
Get your Mistral API key from console.mistral.ai
Step 3: Configure Your MCP Client
For Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mistraldocai": {
"command": "npx",
"args": ["@trsdn/mistraldocai-mcp-server"],
"env": {
"MISTRAL_API_KEY": "your_mistral_api_key_here"
}
}
}
}For Other MCP Clients
Use the command: npx @trsdn/mistraldocai-mcp-server with environment variable MISTRAL_API_KEY
Step 4: Start Using!
The server provides 2 tools:
process_document- Convert documents/images to Markdownget_supported_formats- List supported file formats
Manual Installation (Python Tool)
For direct Python usage:
Clone this repository:
git clone <repository-url>
cd DocMistralCreate a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtConfiguration
API Key Setup
Get a Mistral API key from console.mistral.ai
Create a
.envfile in the project directory:
cp .env.example .envEdit
.envand add your API key:
MISTRAL_API_KEY=your_api_key_hereAlternatively, you can set it as an environment variable:
export MISTRAL_API_KEY=your_api_key_hereUsage
MCP Server Usage
The MCP server provides two tools for document processing:
1. Process Single Document
Convert a document or image file to Markdown:
{
"name": "process_document",
"arguments": {
"file_path": "/path/to/document.pdf"
}
}Or with base64 content (useful for MCP clients):
{
"name": "process_document",
"arguments": {
"base64_content": "base64_encoded_file_content",
"file_name": "document.pdf"
}
}2. Get Supported Formats
Get information about supported file formats:
{
"name": "get_supported_formats",
"arguments": {}
}Python Tool Usage
For direct command-line usage:
# Process all files in the input directory
python docmistral.py
# Convert a single file
python docmistral.py --file document.pdfCustom Directories
Specify custom input and output directories:
python docmistral.py --input /path/to/docs --output /path/to/markdownCommand Line Options
--input, -i: Input directory (default:input)--output, -o: Output directory (default:output)--mistral-api-key, -k: Mistral AI API key (required)--file, -f: Convert a single file instead of a directory
Directory Structure
DocMistral/
├── docmistral.py # Main script
├── requirements.txt # Python dependencies
├── .env.example # Environment variables template
├── README.md # This file
├── input/ # Default input directory
│ └── .gitkeep # Ensures directory is tracked
└── output/ # Default output directory
└── .gitkeep # Ensures directory is trackedRequirements
Python 3.8+
See
requirements.txtfor Python package dependencies
Supported Formats
Documents: PDF, PPTX, DOCX (via OCR API)
Images: PNG, JPG, JPEG, GIF, BMP, AVIF (via OCR API)
File size limit: 50 MB
Page limit: 1,000 pages per document
How it Works
Uses Mistral's dedicated OCR API (
client.ocr.process) for all supported formatsAdvanced document understanding handles complex layouts, tables, and equations
Processes up to 2000 pages per minute
Pricing: $0.001 per page ($1 per 1,000 pages)
🔧 MCP Tools Reference
process_document
Converts documents and images to Markdown format.
Parameters:
file_path(string): Path to the document/image fileOR
base64_content(string) +file_name(string): Base64 content with filenamemime_type(string, optional): MIME type of the file
Example Usage:
{
"name": "process_document",
"arguments": {
"file_path": "/path/to/document.pdf"
}
}With Base64 Content:
{
"name": "process_document",
"arguments": {
"base64_content": "base64_encoded_file_content",
"file_name": "document.pdf"
}
}get_supported_formats
Lists all supported file formats and their limitations.
Parameters: None
Example Usage:
{
"name": "get_supported_formats",
"arguments": {}
}📋 Supported Formats
Format | Extensions | Processing Method | Notes |
Documents |
| Mistral OCR API | Up to 1,000 pages |
Images |
| Mistral OCR API | Up to 50 MB |
Limitations:
Maximum file size: 50 MB
Maximum pages: 1,000 per document
Processing speed: Up to 2,000 pages/minute
Cost: $0.001 per page
🎯 Use Cases
Research: Convert academic papers and reports to Markdown
Documentation: Process technical manuals and guides
Data Extraction: Extract text from scanned documents
Content Migration: Convert legacy documents to modern formats
OCR Processing: Digitize handwritten notes and forms
🔌 MCP Compatibility
This server is fully compatible with the Model Context Protocol (MCP) specification and works with:
Claude Desktop - Anthropic's desktop application
Continue - VS Code extension
Zed - Code editor with MCP support
Custom MCP clients - Any application implementing the MCP protocol
MCP Registry
This server is available in the MCP ecosystem:
Package:
@trsdn/mistraldocai-mcp-serverCommand:
npx @trsdn/mistraldocai-mcp-serverProtocol Version: MCP 1.0
Transport: stdio
🏷️ Tags & Discovery
Find this MCP server using these tags:
mcp-server- MCP compatible servermistral- Uses Mistral AIocr- Optical Character Recognitiondocument-processing- Document conversionpdf-to-markdown- PDF conversionimage-to-text- Image text extractionai-powered- AI-enhanced processing
📦 Installation Methods
NPX (Recommended)
npx @trsdn/mistraldocai-mcp-serverGlobal Installation
npm install -g @trsdn/mistraldocai-mcp-server
mistraldocai-mcpLocal Development
git clone https://github.com/yourusername/MistralDocAI-mcp.git
cd MistralDocAI-mcp
npm install && npm run build
npm start🛠️ Development
Building from Source
# Clone the repository
git clone <repository-url>
cd MistralDocAI-mcp
# Install npm dependencies
npm install
# Build TypeScript
npm run build
# Test the build
npm testPublishing
npm run build
npm publishNotes
The tool preserves the directory structure when converting files
All documents are processed through Mistral AI for consistency
Output files are saved with the
.mdextensionSupports fallback processing for edge cases
API key is required for all operations
The MCP server automatically manages Python virtual environments
Cross-platform support (Windows, macOS, Linux)
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/trsdn/MistralDocAI-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server