Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DOCLING_MCP_HOSTNoHTTP host127.0.0.1
DOCLING_MCP_PORTNoHTTP port8765
DOCLING_MCP_VLM_URLNoOpenAI-compatible chat completions URL
DOCLING_MCP_OCR_LANGSNoComma-separated OCR languagesen
DOCLING_MCP_TRANSPORTNoTransport mode: 'stdio' or 'http'stdio
DOCLING_MCP_VLM_MODELNoVLM model namegpt-4o-mini
DOCLING_MCP_HF_ENDPOINTNoHuggingFace mirror endpoint, e.g. https://hf-mirror.com for China
DOCLING_MCP_MAX_FILE_MBNoPer-file size cap in MB200
DOCLING_MCP_VLM_API_KEYNoVLM bearer key
DOCLING_MCP_VLM_ENABLEDNoGlobal VLM default (true/false)false
DOCLING_MCP_HF_BYPASS_PROXYNoSet to 'true' to drop local proxy env vars before HF importstrue

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 rows entry is a list of cell strings (row-major).

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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