Skip to content
VS Code

Docling MCP for VS Code

io.github.docling-project/docling-mcp

Convert PDFs and other documents to structured formats via Docling, for AI applications.

client:VS Code transport:stdio runtime:pypi

Install Docling MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "docling-mcp-conversion-mode",
      "description": "DOCLING_MCP_CONVERSION_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-service-url",
      "description": "DOCLING_MCP_SERVICE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-service-api-key",
      "description": "DOCLING_MCP_SERVICE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-service-timeout",
      "description": "DOCLING_MCP_SERVICE_TIMEOUT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-service-max-retries",
      "description": "DOCLING_MCP_SERVICE_MAX_RETRIES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-fallback-to-local",
      "description": "DOCLING_MCP_FALLBACK_TO_LOCAL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-keep-images",
      "description": "DOCLING_MCP_KEEP_IMAGES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-images-scale",
      "description": "DOCLING_MCP_IMAGES_SCALE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-do-ocr",
      "description": "DOCLING_MCP_DO_OCR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-do-table-structure",
      "description": "DOCLING_MCP_DO_TABLE_STRUCTURE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-image-export-mode",
      "description": "DOCLING_MCP_IMAGE_EXPORT_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docling-mcp-cache-max-documents",
      "description": "DOCLING_MCP_CACHE_MAX_DOCUMENTS",
      "password": true
    }
  ],
  "servers": {
    "docling-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "docling-mcp"
      ],
      "env": {
        "DOCLING_MCP_CONVERSION_MODE": "${input:docling-mcp-conversion-mode}",
        "DOCLING_MCP_SERVICE_URL": "${input:docling-mcp-service-url}",
        "DOCLING_MCP_SERVICE_API_KEY": "${input:docling-mcp-service-api-key}",
        "DOCLING_MCP_SERVICE_TIMEOUT": "${input:docling-mcp-service-timeout}",
        "DOCLING_MCP_SERVICE_MAX_RETRIES": "${input:docling-mcp-service-max-retries}",
        "DOCLING_MCP_FALLBACK_TO_LOCAL": "${input:docling-mcp-fallback-to-local}",
        "DOCLING_MCP_KEEP_IMAGES": "${input:docling-mcp-keep-images}",
        "DOCLING_MCP_IMAGES_SCALE": "${input:docling-mcp-images-scale}",
        "DOCLING_MCP_DO_OCR": "${input:docling-mcp-do-ocr}",
        "DOCLING_MCP_DO_TABLE_STRUCTURE": "${input:docling-mcp-do-table-structure}",
        "DOCLING_MCP_IMAGE_EXPORT_MODE": "${input:docling-mcp-image-export-mode}",
        "DOCLING_MCP_CACHE_MAX_DOCUMENTS": "${input:docling-mcp-cache-max-documents}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Docling MCP in other clients