LandingAI ADE MCP Server
A Model Context Protocol (MCP) server providing direct integration with LandingAI's Agentic Document Extraction (ADE) API. Extract text, tables, and structured data from PDFs, images, and office documents.
Features
๐ Document Parsing - Extract text, tables, and visual elements with location data
๐ Data Extraction - Extract structured data using JSON schemas
โก Parse Jobs - Handle large documents with background processing
๐ Direct API - No SDK dependencies, full control
๐ก๏ธ Zero Data Retention - Privacy-focused processing support
Installation
Prerequisites
Python 3.9 or higher
LandingAI API key from LandingAI
Option 1: Using uv (Recommended - Simplest)
uv is a fast Python package manager that handles virtual environments automatically.
Install uv (if not already installed)
Set up the project
Option 2: Using pip with Virtual Environment
Option 3: System Python (Not Recommended)
โ ๏ธ Warning: Installing packages globally can cause conflicts with other Python projects.
Configuration
Set Your API Key
Get your API key from LandingAI
Claude Desktop Configuration
Configuration File Location
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Configuration Examples
Using uv (Recommended)
Using Virtual Environment
Using System Python
After Configuration
Save the configuration file
Restart Claude Desktop completely (quit and reopen)
The server should appear as "landingai-ade-mcp" in your MCP servers
Troubleshooting
Common Issues and Solutions
"Could not connect to MCP server"
Python not found: Make sure the Python path in your config is correct
# Find your Python path which python3Module not found errors: Dependencies aren't installed in the Python environment
If using uv: Run
uv syncin the project directoryIf using venv: Activate it and run
pip install -r requirements.txtCheck that the Python path in config matches your environment
spawn python ENOENT: The system can't find Python
Use the full path to Python (e.g.,
/usr/bin/python3instead of justpython)For virtual environments, use the full path to the venv's Python
"Server disconnected"
Check the server can run manually:
cd /path/to/landingai-ade-mcp python server.py # Should see: "Starting LandingAI ADE MCP Server"Check API key is set:
echo $LANDINGAI_API_KEYCheck dependencies are installed:
python -c "import fastmcp, httpx, pydantic" # Should complete without errors
"ModuleNotFoundError: No module named 'fastmcp'"
This means fastmcp isn't installed in the Python environment being used:
If using system Python: The package isn't installed globally
If using virtual environment: The config is pointing to the wrong Python
Solution: Use uv or ensure the Python path matches your environment
Platform-Specific Issues
macOS: If you installed Python with Homebrew, the path might be /opt/homebrew/bin/python3 (Apple Silicon) or /usr/local/bin/python3 (Intel)
Windows: Use forward slashes in paths or escape backslashes: C:/path/to/python.exe or C:\\path\\to\\python.exe
Linux: Some systems use python3 instead of python. Always use python3 for clarity.
Debug Steps
Test the server standalone:
python server.pyCheck MCP communication:
echo '{"jsonrpc": "2.0", "method": "initialize", "id": 1}' | python server.pyVerify configuration:
Open Claude Desktop developer settings
Check the logs for specific error messages
Ensure all paths are absolute, not relative
Validate API key:
python -c "import os; print('API Key set:', bool(os.environ.get('LANDINGAI_API_KEY')))"
Available Tools
parse_document
Parse documents to extract content with metadata.
Supported formats: APNG, BMP, DCX, DDS, DIB, DOC, DOCX, GD, GIF, ICNS, JP2 (JP2000), JPEG, JPG, ODP, ODT, PCX, PDF, PNG, PPT, PPTX, PPM, PSD, TGA, TIFF, WEBP See full list: https://docs.landing.ai/ade/ade-file-types
extract_data
Extract structured data from markdown using a JSON schema.
create_parse_job
Create a parse job for large documents (>50MB recommended).
get_parse_job_status
Check status and retrieve results of a parse job.
list_parse_jobs
List all parse jobs with filtering and pagination.
health_check
Check server status and API connectivity.
Usage Examples
Basic Document Processing
Processing Large Files
Zero Data Retention
File Size Guidelines
< 10MB: Use
parse_documentdirectly10-50MB: Consider parse jobs for better performance
> 50MB: Always use
create_parse_job
Error Handling
Common Error Codes
401: Invalid API key413: File too large (use parse jobs)422: Validation error429: Rate limit exceeded
Requirements
Python 3.8+
API key from LandingAI
Dependencies
fastmcp>=0.1.0- MCP server frameworkhttpx>=0.24.0- HTTP clientpydantic>=2.0.0- Data validationpython-multipart>=0.0.6- Form handlingaiofiles>=23.0.0- Async file operations
Why Local Deployment?
This server runs locally to ensure:
Privacy: Your API keys and documents stay on your machine
Security: No third-party access to your data
Control: Direct management of API usage and costs
API Documentation
License
MIT
Support
Issues: GitHub Issues
LandingAI Support: support@landing.ai
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 extraction of text, tables, and structured data from PDFs, images, and office documents using LandingAI's Agentic Document Extraction API. Supports both direct parsing and background job processing for large files with privacy-focused processing.