Skip to content
Skillpedia
βœ“ Official Β· Docling project (IBM Research Zurich)● Free and open sourceπŸ’» LocalπŸ”“ No API keyData and databases

Docling MCP

Lets your AI agent convert PDFs and other documents into structured formats and generate new documents with Docling.

784 stars on GitHubby Docling project (IBM Research Zurich)License MITUpdated 19 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add docling -- uvx --from docling-mcp==3.5.0 docling-mcp-server --transport stdio docling-mcp

What to fill in

NameWhat it isRequired
DOCLING_MCP_CONVERSION_MODEConversion mode: 'remote' (default) or 'local' (requires docling-mcp[local] extra).No
DOCLING_MCP_SERVICE_URLBase URL of the Docling Serve instance. Required when conversion mode is remote.No
DOCLING_MCP_SERVICE_API_KEYAPI key for authenticating with Docling Serve.No
DOCLING_MCP_SERVICE_TIMEOUTRequest timeout in seconds for the remote Docling Serve API. Default: 300.0.No
DOCLING_MCP_SERVICE_MAX_RETRIESMaximum number of retry attempts for remote API requests. Default: 3.No
DOCLING_MCP_FALLBACK_TO_LOCALSet to 'true' to fall back to local conversion when Docling Serve is unreachable.No
DOCLING_MCP_KEEP_IMAGESSet to 'true' to retain page images in converted documents. Default: false.No
DOCLING_MCP_IMAGES_SCALEImage scale factor (e.g. 1.0, 2.0). Increase to avoid tensor batching errors. Default: 1.0.No
DOCLING_MCP_DO_OCRSet to 'false' to disable the OCR pipeline. Default: true.No
DOCLING_MCP_OCR_ENGINEOCR engine kind: 'auto' (default), 'easyocr', 'tesseract', 'tesserocr', 'ocrmac', 'rapidocr'. Must be installed on the conversion backend.No
DOCLING_MCP_OCR_LANGComma-separated OCR languages (e.g. 'iso:en,iso:de' or 'eng,deu'). When unset the engine's default languages apply.No
DOCLING_MCP_DO_TABLE_STRUCTURESet to 'false' to disable table structure detection. Default: true.No
DOCLING_MCP_DO_PICTURE_DESCRIPTIONSet to 'true' to run a vision-language model to generate textual descriptions for figures and pictures. Requires a VLM to be available on the conversion backend. Default: false.No
DOCLING_MCP_PICTURE_DESCRIPTION_PRESETPreset ID for the picture-description VLM (e.g. 'smolvlm', 'granite_vision'). When unset the backend default is used. Only applies when DOCLING_MCP_DO_PICTURE_DESCRIPTION=true.No
DOCLING_MCP_IMAGE_EXPORT_MODEControls how images are rendered when exporting to Markdown. Accepted values: 'placeholder' (default, emits <!-- image -->), 'embedded' (base64 data-URI), 'referenced' (file path / URL).No
DOCLING_MCP_CACHE_MAX_DOCUMENTSMaximum number of documents to keep in the in-memory cache. Oldest (least-recently-used) documents are evicted when the limit is reached. Default: 10.No

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Convert the PDF at C:/reports/q3.pdf into a Docling document and return its document key.
Write a new document about tokenizers, with a title, headings and a list, then save it.

What it is

This server connects your agent to Docling, a document processing library. The agent can convert PDF files or URLs into a structured document, export it to formats like Markdown, and build new documents piece by piece. It can use a remote Docling Serve service or run conversions locally.

What it can do

  • Convert a PDF (file or URL) to a structured DoclingDocument
  • create_new_docling_document: start a new document
  • add_title_to_docling_document: add a title
  • open_list_in_docling_document and close_list_in_docling_document: build lists
  • export_docling_document_to_markdown: export what was written
  • Upload and retrieve documents with Milvus for RAG

When to use

  • β€ΊWhen you want a PDF turned into structured text your agent can read.
  • β€ΊWhen you want an agent to write a document and save it.
  • β€ΊWhen you build a search over documents and need them converted first.

What you need

Python. For remote mode, a Docling Serve URL and API key. For local mode, install docling-mcp[local].

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

The code is MIT licensed. Model licenses for the underlying packages are separate.

Do I need a Docling Serve service?

No. Remote mode uses one, but local mode (docling-mcp[local]) converts on your machine.

Can it fall back to local conversion?

Yes. Set DOCLING_MCP_FALLBACK_TO_LOCAL=true with the local install.

Does it support OCR?

Yes, OCR is on by default and you can choose engines such as easyocr or tesseract if installed.

Which transports does it support?

stdio, sse and streamable-http.

Which version should I pin?

Version 3.0.0 or newer needs MCP SDK v2. If your client has not moved to v2, pin docling-mcp<3.0.0.

If it does not work

  • β€ΊRun it with uvx --from docling-mcp docling-mcp-server and check that uv is installed.
  • β€ΊIn remote mode, check DOCLING_MCP_SERVICE_URL and DOCLING_MCP_SERVICE_API_KEY.
  • β€ΊRaise DOCLING_MCP_SERVICE_TIMEOUT or your client's timeout if picture descriptions are slow.

5 new skills a week. 1 minute to read.