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
Prerequisites
- Python 3.10
- UV package manager
- Mistral AI API key
Installation
From pypi
And 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.
Manual
1. Clone the Repository
2. Create and Activate Virtual Environment
3. Install Dependencies and Build
4. Install System-Wide
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_pdf
- Parameter:
absolute_path
(string) - The absolute path to the PDF file - Returns: Complete OCR response including all pages with markdown content, bounding boxes, and other OCR metadata
read_pdf_text
- Function:
read_pdf_text
- Parameter:
absolute_path
(string) - The absolute path to the PDF file - Returns: 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:
The 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
Project 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.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables AI assistants to extract and read content from PDF documents using Mistral AI's OCR capabilities. Provides intelligent caching and returns clean markdown text for easy integration with AI workflows.
Related MCP Servers
- -securityFlicense-qualityProvides tools for reading and extracting text from PDF files, supporting both local files and URLs.Last updated -25Python
- AsecurityFlicenseAqualityAn MCP server that provides a tool to extract text content from local PDF files, supporting both standard PDF reading and OCR capabilities with optional page selection.Last updated -117Python
- -securityFlicense-qualityOCR images or pdfs, locally or by URLs by using Mistral OCR API (paid)Last updated -29Python
- AsecurityAlicenseAqualityEmpowers AI agents to securely read and extract information (text, metadata, page count) from PDF files within project contexts using a flexible MCP tool.Last updated -1365200TypeScriptMIT License