Docling MCP

An MCP server built on Docling: converts PDFs into structured documents, builds new ones and feeds them to RAG

  • 780 ★ on the repository
  • Last commit
  • MIT
MCP serverOfficial

Extended access

Why this level

  • Reads local files and downloads documents from URLs
  • In remote mode sends documents to a Docling Serve service
All reasons and checks

docling-project/docling-mcp

Install

Manual install

{
  "mcpServers": {
    "docling": {
      "command": "uvx",
      "args": [
        "--from=docling-mcp",
        "docling-mcp-server"
      ]
    }
  }
}

For Claude Desktop, LM Studio and other clients. Set mode and service URL in the env block.

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Reads local files and downloads documents from URLs
  • In remote mode sends documents to a Docling Serve service

This is third-party code. Review the repository files before installing.

What it does

The server exposes Docling library tools to an agent. It converts a PDF from a local file or URL into a structured DoclingDocument with tables and OCR, and caches the result. The agent can build a new document step by step with headings, paragraphs and nested lists, then export it to Markdown. Separate tool groups push documents into Milvus, LlamaIndex or LlamaStack for RAG and extraction. Conversion runs locally or through a Docling Serve service.

Who it is for. For analysts and developers whose agent needs to read PDFs and other documents in structured form.

Good fit when

  • You need text, headings and tables out of a PDF without losing structure
  • You need to assemble a report and save it as Markdown
  • You need to load documents into a vector store for RAG

Not a fit when

  • The agent's built-in PDF reading is enough
  • You have neither a Docling Serve instance nor resources for local recognition models

Example request

Convert the PDF at ~/docs/report.pdf into a DoclingDocument and print its tables as Markdown

MCP

Transport
stdio, sse, http
Authentication
not required

Environment variables

DOCLING_MCP_CONVERSION_MODE
remote (default) or local
DOCLING_MCP_SERVICE_URL
Docling Serve URL, required in remote mode
DOCLING_MCP_SERVICE_API_KEY secret
Docling Serve API key
DOCLING_MCP_FALLBACK_TO_LOCAL
true enables local fallback when the service is unreachable

Limitations

By default the server runs in remote mode and needs a Docling Serve URL and key. Local conversion requires docling-mcp[local], which downloads models and uses noticeable resources. Versions 3.x need MCP SDK v2; older clients should pin docling-mcp<3.0.0. Local mode needs no external services.

How to disable. Remove the docling block from your MCP client config and, if needed, run pip uninstall docling-mcp.

FAQ

How do remote and local modes differ?

In remote mode Docling Serve does the conversion and the install is light. In local mode everything runs on your machine and needs the local extra. Hybrid mode falls back to local when the service is down.

Which transports are supported?

stdio, sse and streamable-http, chosen with the --transport flag.

Discussion

No questions or reviews yet.

Official

An MCP server that lets an agent read long PDFs through a document tree: retrieval by reasoning instead of a vector database

MCP serverExtended access406Repository stars

MCP PDF for large documents: the agent searches by meaning and keyword across one file or a folder and reads only the pages, tables and scans it needs

MCP serverExtended access162Repository stars

An MCP server that turns PDF, DOCX, XLSX, PPTX, images, audio, web pages and YouTube transcripts into Markdown

MCP serverExtended access3KRepository stars
Official

A PDF-reading MCP server: structured text, tables, OCR, visual crops and page-level citations

MCP serverExtended access1.1KRepository stars
Official

MCP PDF from ComPDF: the agent converts PDFs and images to Word, Excel, Markdown and JSON and merges, splits, protects and compares files via a cloud API

MCP serverBroad access98Repository stars
Official

Microsoft's utility and MCP server that turn PDF, Word, Excel, PowerPoint, HTML and other files into Markdown for models

MCP serverExtended access192.8KRepository stars

README in short

The README describes three setups: remote Docling Serve, fully local and hybrid. All settings use DOCLING_MCP_ variables, with tables for conversion, Markdown export and RAG via LlamaIndex and LlamaStack. It runs through uvx with a transport flag and ships configs for Claude Desktop and LM Studio. Started at IBM Research, hosted by LF AI and Data, MIT licensed.

README badge

Report a problem

Foxx AIDocling MCP
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.