HomeOther › Docling MCP

Docling MCP

Convert PDFs and other documents to structured formats via Docling, for AI applications.

Python
★ 751 stars Last pushed 2026-09-23 License: MIT

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (pypi 3.2.0)

uvx docling-mcp

Or add to your MCP client config:

{
  "mcpServers": {
    "docling-mcp": {
      "command": "uvx",
      "args": [
        "docling-mcp"
      ],
      "env": {
        "DOCLING_MCP_CONVERSION_MODE": "<YOUR_VALUE>",
        "DOCLING_MCP_SERVICE_URL": "<YOUR_VALUE>",
        "DOCLING_MCP_SERVICE_API_KEY": "<YOUR_VALUE>",
        "DOCLING_MCP_SERVICE_TIMEOUT": "<YOUR_VALUE>",
        "DOCLING_MCP_SERVICE_MAX_RETRIES": "<YOUR_VALUE>",
        "DOCLING_MCP_FALLBACK_TO_LOCAL": "<YOUR_VALUE>",
        "DOCLING_MCP_KEEP_IMAGES": "<YOUR_VALUE>",
        "DOCLING_MCP_IMAGES_SCALE": "<YOUR_VALUE>",
        "DOCLING_MCP_DO_OCR": "<YOUR_VALUE>",
        "DOCLING_MCP_DO_TABLE_STRUCTURE": "<YOUR_VALUE>",
        "DOCLING_MCP_IMAGE_EXPORT_MODE": "<YOUR_VALUE>"
      }
    }
  }
}
  • DOCLING_MCP_CONVERSION_MODE — Conversion mode: 'remote' (default) or 'local' (requires docling-mcp[local] extra).
  • DOCLING_MCP_SERVICE_URL — Base URL of the Docling Serve instance. Required when conversion mode is remote.
  • DOCLING_MCP_SERVICE_API_KEY secret — API key for authenticating with Docling Serve.
  • DOCLING_MCP_SERVICE_TIMEOUT — Request timeout in seconds for the remote Docling Serve API. Default: 300.0.
  • DOCLING_MCP_SERVICE_MAX_RETRIES — Maximum number of retry attempts for remote API requests. Default: 3.
  • DOCLING_MCP_FALLBACK_TO_LOCAL — Set to 'true' to fall back to local conversion when Docling Serve is unreachable.
  • DOCLING_MCP_KEEP_IMAGES — Set to 'true' to retain page images in converted documents. Default: false.
  • DOCLING_MCP_IMAGES_SCALE — Image scale factor (e.g. 1.0, 2.0). Increase to avoid tensor batching errors. Default: 1.0.
  • DOCLING_MCP_DO_OCR — Set to 'false' to disable the OCR pipeline. Default: true.
  • DOCLING_MCP_DO_TABLE_STRUCTURE — Set to 'false' to disable table structure detection. Default: true.
  • DOCLING_MCP_IMAGE_EXPORT_MODE — Controls how images are rendered when exporting to Markdown. Accepted values: 'placeholder' (default, emits <!-- image -->), 'embedded' (base64 data-URI), 'referenced' (file path / URL).

This server takes extra arguments — see its repository.

Related servers

Data from the Official MCP Registry