docling-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DOCLING_MCP_HOST | No | HTTP host | 127.0.0.1 |
| DOCLING_MCP_PORT | No | HTTP port | 8765 |
| DOCLING_MCP_VLM_URL | No | OpenAI-compatible chat completions URL | |
| DOCLING_MCP_OCR_LANGS | No | Comma-separated OCR languages | en |
| DOCLING_MCP_TRANSPORT | No | Transport mode: 'stdio' or 'http' | stdio |
| DOCLING_MCP_VLM_MODEL | No | VLM model name | gpt-4o-mini |
| DOCLING_MCP_HF_ENDPOINT | No | HuggingFace mirror endpoint, e.g. https://hf-mirror.com for China | |
| DOCLING_MCP_MAX_FILE_MB | No | Per-file size cap in MB | 200 |
| DOCLING_MCP_VLM_API_KEY | No | VLM bearer key | |
| DOCLING_MCP_VLM_ENABLED | No | Global VLM default (true/false) | false |
| DOCLING_MCP_HF_BYPASS_PROXY | No | Set to 'true' to drop local proxy env vars before HF imports | true |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| convert_to_markdownA | Convert a document or image to Markdown. Supports PDF, DOCX, PPTX, HTML, and image files (PNG/JPG/etc.). Args: source: Local path, HTTP(S) URL, or data URI (data:;base64,...). ocr_languages: Override default OCR languages, e.g. ["en","zh"]. Defaults to env. enable_vlm: If True and a VLM endpoint is configured, generate richer image descriptions via an OpenAI-compatible API. Falls back to OCR text if unavailable. page_range: Optional (start, end) 1-indexed inclusive page range for PDFs. image_caption_mode: How to represent pictures in markdown: - "skip": placeholder only - "ocr_text": picture's OCR'd text (default) - "vlm_description": VLM-generated description (requires enable_vlm) Returns: ConvertMarkdownResult as dict: {markdown, num_pages, num_tables, num_pictures, source_type, warnings}. |
| convert_to_textA | Convert a document or image to plain text (no markdown formatting). Best for feeding token-limited text-only LLMs. Tables are linearized. Returns just the text string. |
| extract_tablesA | Extract all tables from a document. Returns a list of {page, index, num_rows, num_cols, markdown, rows}.
Each |
| chunk_for_ragA | Chunk a document for RAG using docling's HybridChunker. Returns list of {text, index, page, headings, chunk_type, token_count}. Args: source: Local path / URL / data URI. chunk_size: Target max tokens per chunk. overlap: Overlap tokens between adjacent chunks. tokenizer: HuggingFace tokenizer name. Defaults to BGE-small (English). Use a multilingual tokenizer (e.g. "bert-base-multilingual-cased") for non-English docs. ocr_languages: Override default OCR languages. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mk20mm/docling-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server