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

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

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

TDQS

A4.2/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: plain text conversion, markdown conversion, table extraction, and RAG chunking. No two tools overlap in function, and the descriptions clarify the differences even between the two conversion tools.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case (convert_to_text, convert_to_markdown, extract_tables, chunk_for_rag). The naming is uniform and predictable.

Tool Count5/5

With 4 tools, the server is well-scoped for document processing. Each tool covers a distinct need without redundancy, and the number is within the ideal range.

Completeness4/5

The server covers the primary conversion and extraction needs (text, markdown, tables) plus chunking for RAG. Minor gaps exist, such as direct document structure extraction or image extraction, but agents can work around these using the provided tools.

Maintenance

ActivitySlowing
ResponsivenessNo issues