Docling MCP
Convert PDFs and other documents to structured formats through Docling for agents
Docling MCP is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- Version
- 3.5.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add docling-mcp --env DOCLING_MCP_SERVICE_API_KEY='<DOCLING_MCP_SERVICE_API_KEY>' -- uvx docling-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"docling-mcp": {
"command": "uvx",
"args": [
"docling-mcp"
],
"env": {
"DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"docling-mcp": {
"command": "uvx",
"args": [
"docling-mcp"
],
"env": {
"DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"docling-mcp": {
"command": "uvx",
"args": [
"docling-mcp"
],
"env": {
"DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"docling-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"docling-mcp"
],
"env": {
"DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add docling-mcp --env DOCLING_MCP_SERVICE_API_KEY='<DOCLING_MCP_SERVICE_API_KEY>' -- uvx docling-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.docling-mcp]
command = "uvx"
args = ["docling-mcp"]
env = { DOCLING_MCP_SERVICE_API_KEY = "<DOCLING_MCP_SERVICE_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"docling-mcp": {
"command": "uvx",
"args": [
"docling-mcp"
],
"env": {
"DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "docling-mcp": { "command": "uvx", "args": [ "docling-mcp" ], "env": { "DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>" } } } }Or run: gemini mcp add -s user -e DOCLING_MCP_SERVICE_API_KEY='<DOCLING_MCP_SERVICE_API_KEY>' docling-mcp uvx -- docling-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "docling-mcp": { "command": "uvx", "args": [ "docling-mcp" ], "env": { "DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "docling-mcp": { "command": "uvx", "args": [ "docling-mcp" ], "env": { "DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "docling-mcp": { "command": "uvx", "args": [ "docling-mcp" ], "env": { "DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "docling-mcp": { "command": "uvx", "args": [ "docling-mcp" ], "env": { "DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "docling-mcp": { "command": "uvx", "args": [ "docling-mcp" ], "env": { "DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "docling-mcp": { "command": "uvx", "args": [ "docling-mcp" ], "env": { "DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "docling-mcp": { "command": "uvx", "args": [ "docling-mcp" ], "env": { "DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
DOCLING_MCP_CONVERSION_MODEConversion mode: 'remote' (default) or 'local' (requires docling-mcp[local] extra).DOCLING_MCP_SERVICE_URLBase URL of the Docling Serve instance. Required when conversion mode is remote.DOCLING_MCP_SERVICE_API_KEYAPI key for authenticating with Docling Serve.DOCLING_MCP_SERVICE_TIMEOUTRequest timeout in seconds for the remote Docling Serve API. Default: 300.0.DOCLING_MCP_SERVICE_MAX_RETRIESMaximum number of retry attempts for remote API requests. Default: 3.DOCLING_MCP_FALLBACK_TO_LOCALSet to 'true' to fall back to local conversion when Docling Serve is unreachable.DOCLING_MCP_KEEP_IMAGESSet to 'true' to retain page images in converted documents. Default: false.DOCLING_MCP_IMAGES_SCALEImage scale factor (e.g. 1.0, 2.0). Increase to avoid tensor batching errors. Default: 1.0.DOCLING_MCP_DO_OCRSet to 'false' to disable the OCR pipeline. Default: true.DOCLING_MCP_OCR_ENGINEOCR engine kind: 'auto' (default), 'easyocr', 'tesseract', 'tesserocr', 'ocrmac', 'rapidocr'. Must be installed on the conversion backend.DOCLING_MCP_OCR_LANGComma-separated OCR languages (e.g. 'iso:en,iso:de' or 'eng,deu'). When unset the engine's default languages apply.DOCLING_MCP_DO_TABLE_STRUCTURESet to 'false' to disable table structure detection. Default: true.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.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.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).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.
About Docling MCP
Conversion can run in two places. In remote mode, which is the default and the recommended lightweight option, the server sends documents to a Docling Serve instance using a URL and API key. In local mode, installed with the docling-mcp[local] extra, conversion runs on your own machine. A hybrid setup tries the remote service first and falls back to local if it is unreachable.
The pipeline is tunable through DOCLING_MCP_ environment variables: OCR can be switched off or pointed at EasyOCR, Tesseract, RapidOCR or other engines with chosen languages, table structure detection can be disabled, page images can be kept, and a vision-language model such as smolvlm or granite_vision can describe figures. The README warns that picture description adds an inference step per figure and may need longer timeouts. Markdown export can use placeholders, embedded base64 images or references.
Output is the structured DoclingDocument, which can be exported to several formats and generated or edited by the generation tools. Documents from local files or URLs are cached in memory, up to 10 by default with least-recently-used eviction. Optional tool groups cover RAG with Milvus, LlamaIndex and LlamaStack. Versions 3.0 and later need MCP Python SDK 2.
What it does
- Remote or local conversion
- Uses Docling Serve by default or converts locally with an extra install.
- Fallback to local
- Can switch to local conversion when the remote service is unreachable.
- Configurable OCR
- Selects the OCR engine and languages, or turns OCR off.
- Table and figure handling
- Detects table structure and can describe pictures with a vision-language model.
- Document cache
- Keeps recent documents in memory with least-recently-used eviction.
- Optional RAG tools
- Adds Milvus, LlamaIndex and LlamaStack retrieval tool groups.
Good for
- Convert a PDF from a file or URL into structured JSON
- Turn documents into Markdown with embedded or referenced images
- Run OCR on scanned pages in a chosen language
- Describe figures in a paper with a vision model
- Feed converted documents into a RAG pipeline
Pricing
Open source
Docling MCP FAQ
Do I need a Docling Serve instance?
Not necessarily. Remote mode needs one, but the local extra converts on your own machine.
What does the cache hold?
Up to 10 documents by default, set by DOCLING_MCP_CACHE_MAX_DOCUMENTS.
Which MCP SDK does Docling MCP need?
Version 3.0.0 and later need mcp 2.0 or newer; pin docling-mcp below 3.0.0 for older clients.
Is Docling MCP open source?
Yes, the README shows an MIT licence badge.
Is Docling MCP free?
Yes. Docling MCP is open source, so you can use and self-host it for free.
How do I add Docling MCP to Claude Code?
Run this command in your terminal: claude mcp add docling-mcp --env DOCLING_MCP_SERVICE_API_KEY='<DOCLING_MCP_SERVICE_API_KEY>' -- uvx docling-mcp
What are the best alternatives to Docling MCP?
The closest alternatives to Docling MCP are Scholar Sidekick, UltraTransfer, Stashpad, loremfile and Hilvana.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.