
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@trsdn/mistraldocai-mcp-server
Advanced tools
MCP server for document-to-Markdown conversion using Mistral AI OCR
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.
npx @trsdn/mistraldocai-mcp-server# Install and test with one command
npx @trsdn/mistraldocai-mcp-server --test
Get your Mistral API key from console.mistral.ai
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"
}
}
}
}
Use the command: npx @trsdn/mistraldocai-mcp-server with environment variable MISTRAL_API_KEY
The server provides 2 tools:
process_document - Convert documents/images to Markdownget_supported_formats - List supported file formatsFor direct Python usage:
git clone <repository-url>
cd DocMistral
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Get a Mistral API key from console.mistral.ai
Create a .env file in the project directory:
cp .env.example .env
.env and add your API key:MISTRAL_API_KEY=your_api_key_here
Alternatively, you can set it as an environment variable:
export MISTRAL_API_KEY=your_api_key_here
The MCP server provides two tools for document processing:
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"
}
}
Get information about supported file formats:
{
"name": "get_supported_formats",
"arguments": {}
}
For direct command-line usage:
# Process all files in the input directory
python docmistral.py
# Convert a single file
python docmistral.py --file document.pdf
Specify custom input and output directories:
python docmistral.py --input /path/to/docs --output /path/to/markdown
--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 directoryDocMistral/
├── 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 tracked
requirements.txt for Python package dependenciesclient.ocr.process) for all supported formatsprocess_documentConverts documents and images to Markdown format.
Parameters:
file_path (string): Path to the document/image filebase64_content (string) + file_name (string): Base64 content with filenamemime_type (string, optional): MIME type of the fileExample 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_formatsLists all supported file formats and their limitations.
Parameters: None
Example Usage:
{
"name": "get_supported_formats",
"arguments": {}
}
| Format | Extensions | Processing Method | Notes |
|---|---|---|---|
| Documents | .pdf, .pptx, .docx | Mistral OCR API | Up to 1,000 pages |
| Images | .png, .jpg, .jpeg, .gif, .bmp, .avif | Mistral OCR API | Up to 50 MB |
Limitations:
This server is fully compatible with the Model Context Protocol (MCP) specification and works with:
This server is available in the MCP ecosystem:
@trsdn/mistraldocai-mcp-servernpx @trsdn/mistraldocai-mcp-serverFind 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 processingnpx @trsdn/mistraldocai-mcp-server
npm install -g @trsdn/mistraldocai-mcp-server
mistraldocai-mcp
git clone https://github.com/yourusername/MistralDocAI-mcp.git
cd MistralDocAI-mcp
npm install && npm run build
npm start
# Clone the repository
git clone <repository-url>
cd MistralDocAI-mcp
# Install npm dependencies
npm install
# Build TypeScript
npm run build
# Test the build
npm test
npm run build
npm publish
.md extensionFAQs
MCP server for document-to-Markdown conversion using Mistral AI OCR
We found that @trsdn/mistraldocai-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.