Integration · MCP
Docling MCP: Document Parsing as an Agent Tool
Model Context Protocol is how an assistant asks another program to do something. docling-mcp turns Docling into that program — an agent can convert a PDF, build a structured document, and export Markdown without you writing a client library.
Updated 2026-10-26 · 3 min read
The short version
- –Install
docling-mcp(remote mode) ordocling-mcp[local]for the full local feature set; run the binarydocling-mcp-server. - –Transport is chosen with
--transport:stdiofor desktop clients,sse/streamable-httpfor services. - –No install at all:
uvx --from docling-mcp docling-mcp-serverworks in a Claude Desktop config. - –Conversions are cached under a document key, so follow-up calls can build on the same parsed document instead of re-parsing the file.
- –MCP is for interactive, agent-driven work. For batch pipelines, call the library or docling-serve directly — do not put an agent in the data path.
What it is
docling-mcp is an MCP server built on the Docling library, MIT-licensed and part of the LF AI & Data foundation. It exposes document conversion and document-building as tools an MCP client can call.
The distinction that matters: a normal REST wrapper gives you "PDF in, Markdown out". docling-mcp additionally lets a client build a Docling document — create one, add a title, open a list, append items, close it, export — which is what you want when the agent is assembling a report rather than ingesting a source.
Install and run
# desktop clients (Claude Desktop, Cursor, IDE plugins)
uvx --from docling-mcp docling-mcp-server --transport stdio
# service-style clients (containers, remote agents)
docling-mcp-server --transport streamable-http
# Llama Stack
docling-mcp-server --transport sseUse --tools to load only the toolgroups you need. Every tool you expose costs context in the client — an agent with forty tools uses them worse than one with six.
Claude Desktop configuration
Add the server to claude_desktop_config.json and restart the app. The uvx form avoids installing anything globally:
{
"mcpServers": {
"docling": {
"command": "uvx",
"args": ["--from=docling-mcp", "docling-mcp-server"]
}
}
}The tools you will actually call
- Conversion tools take a path or URL and return a document key — the cache handle for the parsed document.
- Document tools operate on that key:
create_new_docling_document,add_title_to_docling_document,open_list_in_docling_document,add_list_items_to_list_in_docling_document,close_list_in_docling_document. export_docling_document_to_markdownrenders the result — either a converted source or a document the agent built itself.- The README names these examples rather than a complete list; run the server with
--help(and check the tool list in your client) for the set your version ships.
Because the handle is a key, the practical pattern is: convert once, ask several questions, export at the end. Re-converting on every turn is the fastest way to burn an hour and a token budget.
Where this is genuinely useful
- Research assistants. "Summarize the tables in this filing and export them as Markdown" is one conversion plus one document pass, not a bespoke script.
- Agentic document assembly. The build tools let a model author a structured document rather than concatenating strings.
- Local-only workflows. Everything runs on your machine; the file never goes to a document-AI SaaS.
- Prototyping. Before you commit to an ingestion service, MCP is the cheapest way to find out whether Docling handles your document class at all.
Where it is the wrong tool
MCP is interactive and token-expensive. A pipeline that converts 4,000 statements a month should call the library or docling-serve directly: deterministic, testable, and free of a model deciding which tool to call.
The other trap is trusting an agent's summary of a document it parsed. If the output is going into a decision — a valuation, a reconciliation, a credit file — the numbers need to come from the parsed structure, checkable against the source page, not from a paragraph the model wrote about them.
Frequently asked questions
What is docling-mcp?+
An MCP server that exposes Docling document conversion and document-building as tools for MCP clients such as Claude Desktop, LM Studio and IDE agents. It is MIT-licensed and maintained under the docling-project organisation.
How do I add Docling to Claude Desktop?+
Add an mcpServers entry with command "uvx" and args ["--from=docling-mcp", "docling-mcp-server"] to claude_desktop_config.json, then restart the app.
Does docling-mcp need the docling package installed?+
The [local] install pulls the local conversion stack. In remote mode it talks to a Docling service instead. uvx handles whichever it needs at run time.
Can I run it in Docker?+
Yes — use the streamable-http transport and expose the port. That is the configuration the project documents for containerised deployments.
Is MCP faster than calling Docling directly?+
No. It is more convenient for an agent, and slower and more expensive than a direct library call. Use MCP when a model needs to decide, and the library when the steps are known.
Try it online
Run the same pipeline in the browser — no install, no uploads stored.
Try it in the browserKeep reading
- docling-serve
The HTTP service behind remote mode
- Python API
What the tools call underneath
- Chunking for RAG
When an agent needs retrieval, not conversion
- Install Docling
Library setup
- Alternatives
Hosted parsers with agent support
- Docling OCR
What conversion does with scans