# Docling MCP

> Docling MCP is an open-source MCP server for files and documents. Convert PDFs and other documents to structured formats through Docling for agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/docling-project/docling-mcp
- **MCP Registry name:** io.github.docling-project/docling-mcp
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add docling-mcp --env DOCLING_MCP_SERVICE_API_KEY='<DOCLING_MCP_SERVICE_API_KEY>' -- uvx docling-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "docling-mcp": {
      "command": "uvx",
      "args": [
        "docling-mcp"
      ],
      "env": {
        "DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add docling-mcp --env DOCLING_MCP_SERVICE_API_KEY='<DOCLING_MCP_SERVICE_API_KEY>' -- uvx docling-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.docling-mcp]
command = "uvx"
args = ["docling-mcp"]
env = { DOCLING_MCP_SERVICE_API_KEY = "<DOCLING_MCP_SERVICE_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "docling-mcp": {
      "command": "uvx",
      "args": [
        "docling-mcp"
      ],
      "env": {
        "DOCLING_MCP_SERVICE_API_KEY": "<DOCLING_MCP_SERVICE_API_KEY>"
      }
    }
  }
}
```

## 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.

## Alternatives

- [Scholar Sidekick](https://ai-powered.com/mcp/scholar-sidekick): Scholar Sidekick is a freemium MCP server for education and exams.
- [UltraTransfer](https://ai-powered.com/mcp/ultratransfer): UltraTransfer is an open-source MCP server for files and documents.
- [Stashpad](https://ai-powered.com/mcp/stashpad): Stashpad is an open-source MCP server for files and documents.
- [loremfile](https://ai-powered.com/mcp/loremfile): loremfile is a free MCP server for developer tools.
- [Hilvana](https://ai-powered.com/mcp/hilvana): Hilvana is an open-source MCP server for files and documents.
- [JSON CSV XML YAML TOML Data Format Converter](https://ai-powered.com/mcp/json-csv-xml-yaml-toml-data-format-converter): JSON CSV XML YAML TOML Data Format Converter is a paid MCP server for files and documents.
- [Jdrive](https://ai-powered.com/mcp/jdrive): Jdrive is a freemium MCP server for files and documents.
- [Extractivio](https://ai-powered.com/mcp/extractivio): Extractivio is a freemium MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/docling-mcp
