Lizeur
Lizeur is an MCP server that extracts and processes content from PDF documents using Mistral AI's OCR technology. It can extract text from PDFs and convert content to markdown format for easier consumption. The server provides two main functions: read_pdf for retrieving full OCR metadata including bounding boxes and page information, and read_pdf_text for simplified markdown text extraction that's optimized for AI agents. It features intelligent caching to prevent redundant OCR processing and reduce costs.
Click on "Deploy 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., "@Lizeur read the PDF at /Users/alex/docs/research-paper.pdf and summarize the key findings"
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.
Lizeur - PDF Content Extraction MCP Server
Lizeur is a Model Context Protocol (MCP) server that enables AI assistants to extract and read content from PDF documents using Mistral AI's OCR capabilities. It provides a simple interface for converting PDF files to markdown text that can be easily consumed by AI models.
Features
PDF OCR Processing: Uses Mistral AI's latest OCR model to extract text from PDF documents
Intelligent Caching: Automatically caches processed documents to avoid re-processing
Markdown Output: Returns clean markdown text for easy integration with AI workflows
FastMCP Integration: Built with FastMCP for optimal performance and ease of use
Related MCP server: PDF Reader MCP Server
Prerequisites
Python 3.10
UV package manager
Mistral AI API key
Installation
From pypi
pip install lizeurAnd add the following configuration to your mcp.json file:
Note: Lizeur will be installed in the python3.10 folder. If this folder is not in your system PATH, your IDE may not be able to detect the lizeur binary.
Solution: You can add the full path to the lizeur binary in the command field to ensure your IDE can locate it.
{
"mcpServers": {
"lizeur": {
"command": "lizeur",
"env": {
"MISTRAL_API_KEY": "your-mistral-api-key-here",
"CACHE_PATH": "your cache path",
}
}
}
}Manual
1. Clone the Repository
git clone https://github.com/SilverBzH/lizeur
cd lizeur2. Create and Activate Virtual Environment
# Create a virtual environment
uv venv --python 3.10
# Activate the virtual environment
# On macOS/Linux:
source .venv/bin/activate
# On Windows:
# .venv\Scripts\activate3. Install Dependencies and Build
# Install dependencies
uv sync
# Build the package
uv build4. Install System-Wide
# Install the package system-wide
uv pip install --system .This will install the lizeur command globally on your system.
Usage
Once configured, the MCP server provides two tools that can be used by AI assistants:
Available Functions
read_pdf
Function:
read_pdfParameter:
absolute_path(string) - The absolute path to the PDF fileReturns: Complete OCR response including all pages with markdown content, bounding boxes, and other OCR metadata
read_pdf_text
Function:
read_pdf_textParameter:
absolute_path(string) - The absolute path to the PDF fileReturns: Markdown text content from all pages without the full OCR metadata (simpler for agents to process)
Example Usage in AI Assistant
The AI assistant can now use the tools like this:
What the OP command looks like for this specific controller, here is the doc /path/to/document.pdfThe MCP server will:
Check if the document is already cached
If not cached, upload the PDF to Mistral AI for OCR processing This will use your MISTRAL API key and cost money
Extract the text and convert it to markdown
Cache the result for future use
Return the markdown content
Note: Use read_pdf_text when you only need the text content, or read_pdf when you need the complete OCR response with metadata. read_pdf can be confusion for some agent if the pdf file is big.
Development
Local Development Setup
# Install in development mode
uv pip install -e .
# Run the server directly
python main.pyProject Structure
main.py- Main server implementation with FastMCP integrationpyproject.toml- Project configuration and dependenciesuv.lock- Locked dependency versions
Dependencies
mcp[cli]>=1.12.4- Model Context Protocol implementationmistralai>=0.0.10- Mistral AI Python client
License
This project is licensed under the MIT License.
Support
For issues and questions, please refer to the project repository or contact the maintainers.
Available Tools
2 toolsread_pdfB
Read a PDF document and return the complete OCRResponse as a dictionary.
Returns the full OCR response including all pages, not just the first page. The response includes pages with markdown content, bounding boxes, and other OCR metadata.
Inputs: absolute_path (required).
read_pdf_textA
Read a PDF document and return only the markdown text content from all pages.
This is a simpler alternative to read_pdf that returns just the text content
without the full OCR metadata, which can be easier for agents to process.
Inputs: absolute_path (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have overlapping purposes: both read PDF documents and extract text content. While read_pdf returns full OCR metadata and read_pdf_text returns only markdown text, an agent might struggle to choose between them when only text is needed, as both could technically serve that purpose. The descriptions help clarify the difference, but the core functionality is very similar.
Both tools follow a consistent verb_noun naming pattern with snake_case: read_pdf and read_pdf_text. The naming is clear and predictable, making it easy for agents to understand the action (read) and target (pdf or pdf_text). There are no deviations or mixed conventions in this small set.
With only 2 tools, this server feels under-scoped for a PDF processing domain. While the tools cover reading and extracting text, there are obvious gaps like creating, editing, or converting PDFs. A typical PDF server would benefit from more operations, making this count too low for comprehensive functionality.
The tool surface is severely incomplete for PDF processing. It only includes reading operations (two variants of the same basic function) and lacks essential capabilities such as creating PDFs, merging/splitting files, converting formats, or editing content. This will likely cause agent failures when more complex tasks are required.
Maintenance
Related MCP Connectors
Convert PDF, Word, Excel and scanned documents to Markdown, tables and RAG chunks. OCR.
Generate and read PDFs for AI agents: a generate_pdf and a read_pdf tool, priced per document.
High-fidelity PDF to structured Markdown conversion and document field extraction.
Convert PDF URLs to clean Markdown and text for RAG and LLM input. Pay per PDF on Apify.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to read and analyze PDF documents with automatic OCR processing for scanned files. Features intelligent text extraction, caching for performance, and secure file access with search capabilities.1-
- FlicenseAqualityDmaintenanceEnables reading and extracting content from PDF documents including text (as Markdown), images, tables, and metadata from both local files and URLs, with OCR support for scanned documents.2-
- AlicenseAqualityDmaintenanceConverts PDF files from local storage or URLs to structured Markdown format using Mistral AI's OCR API, preserving document structure and extracting images.21MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI applications to read and process PDF files with intelligent file search, text extraction, image processing, and optional OCR support for scanned documents.MIT