Configure docling-mcp v2 architecture modes
maindocling-mcp v2 uses a hybrid architecture allowing for lightweight remote conversion or full offline local conversion.
Remote Mode (Default)
Uses Docling Serve for cloud-based conversion. This is the lightweight option (~50 MB) and requires no model downloads.
- Setup:
pip install docling-mcp - Config: Set
DOCLING_SERVICE_URLand optionallyDOCLING_SERVICE_API_KEY.
Local Mode (Full/Offline)
Performs conversion locally on your machine.
- Setup:
pip install "docling-mcp[local]" - Config: Set
DOCLING_CONVERSION_MODE=local.
Hybrid Mode
Falls back to local conversion if the remote service is unavailable.
- Setup:
pip install "docling-mcp[local]" - Config: Set
DOCLING_CONVERSION_MODE=remote(or leave default) andDOCLING_FALLBACK_TO_LOCAL=true.
# Remote mode (lightweight, default)
pip install docling-mcp
export DOCLING_SERVICE_URL=https://your-docling-service.example.com
# Local mode (full, offline)
pip install "docling-mcp[local]"
export DOCLING_CONVERSION_MODE=local