Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DOC2X_API_KEYYesAPI key for Doc2x (format: sk-xxx)
DOC2X_BASE_URLNoBase URL for Doc2x APIhttps://v2.doc2x.noedgeai.com
DOC2X_MAX_WAIT_MSNoMaximum wait time in milliseconds600000
DOC2X_HTTP_TIMEOUT_MSNoHTTP timeout in milliseconds60000
DOC2X_POLL_INTERVAL_MSNoPolling interval in milliseconds2000
DOC2X_DOWNLOAD_URL_ALLOWLISTNoComma-separated list of allowed download URL hosts (set to * to allow any host, not recommended).amazonaws.com.cn,.aliyuncs.com,.noedgeai.com

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
doc2x_parse_pdf_submit

Create a Doc2x PDF parse task for a local file and return {uid}. Prefer calling doc2x_parse_pdf_status to monitor progress/result; only call doc2x_parse_pdf_wait_text if the user explicitly asks to wait/return merged text.

doc2x_parse_pdf_status

Query parse task status by uid. Returns {status, progress, detail}. status is one of processing/failed/success; progress is an integer 0..100; detail is populated only when status=failed. Fetch parsed content via doc2x_convert_export_*.

doc2x_parse_pdf_wait_text

Wait for a PDF parse task until success and return merged text. Prefer passing uid (no re-submit). If only pdf_path is provided, it will (a) reuse an in-process cached uid if available, otherwise (b) submit a new task then wait.

doc2x_convert_export_submit

Start an export (convert) job for a parsed PDF uid. After this, poll with doc2x_convert_export_wait or doc2x_convert_export_result. Do NOT call doc2x_convert_export_submit twice for the same uid+format in parallel.

doc2x_convert_export_result

Get the latest export (convert) result for a parsed PDF uid (may contain an escaped URL).

doc2x_convert_export_wait

Wait for an export job to finish. Prefer calling doc2x_convert_export_submit first, then wait with uid+to. For backward compatibility, if formula_mode is provided and this job was not submitted in-process, this tool will submit once then wait.

doc2x_download_url_to_file

Download a Doc2x-provided URL (e.g. from doc2x_convert_export_result) to a local file path.

doc2x_parse_image_layout_sync

Parse an image layout synchronously and return the raw Doc2x result JSON (including convert_zip when present).

doc2x_parse_image_layout_submit

Create an async image-layout parse task and return {uid}. After this, call doc2x_parse_image_layout_wait_text (with uid) or doc2x_parse_image_layout_status.

doc2x_parse_image_layout_status

Get status/result for an existing async image-layout parse task by uid.

doc2x_parse_image_layout_wait_text

Wait for an image-layout parse task until success, returning first page markdown. Prefer passing uid (no re-submit). If only image_path is provided, it will (a) reuse an in-process cached uid if available, otherwise (b) submit a new async task then wait.

doc2x_materialize_convert_zip

Materialize convert_zip (base64) into output_dir. Best-effort: tries system unzip first; otherwise writes the zip file.

doc2x_debug_config

Debug helper: return resolved config and API key source for troubleshooting.

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/NoEdgeAI/doc2x-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server