Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

OpenDocKit

@hyeonsang010716Run by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

Read local PDF, Office, HWP, OpenDocument, RTF, EPUB, HTML and email files as Markdown. Offline.

Office documentsv0.3.16MITPython
Freeno charge per call

Runs on your machine from its package; the steps are below.

OpenDocKit
From the README · 1 of 2

What it does

  1. Reads
  2. Writes
  3. High impact

At most: only reads or looks up information.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

PyPIopendockit-mcpv0.3.16

Run

uvx opendockit-mcp

MCP client config

{
  "mcpServers": {
    "opendockit": {
      "command": "uvx",
      "args": [
        "opendockit-mcp"
      ]
    }
  }
}
README11 min read

OpenDocKit

Turn any document into clean, LLM-ready Markdown.
PDF · DOCX · PPTX · XLSX · HWP/HWPX · ODF · RTF · EPUB · HTML · email · images — one function, no GPU, MIT licensed.

PyPI Python CI License: MIT Hermes Agent plugin catalog Dify Marketplace

English · 한국어 · 简体中文


A Korean HWP report, an Excel sheet and a PDF page turn into Markdown: merged cells are repeated per row, numbers appear as the sheet shows them, and a table without borders is still a table

python
from opendockit import convert_file

result = convert_file("quarterly-report.hwp")

result.text        # Markdown: headings, tables, lists, footnotes, LaTeX equations
result.sections    # per page / slide / sheet — for chunking and citations ("page 3")
result.warnings    # what was skipped or approximated, in plain sentences

Why OpenDocKit

Most converters handle the happy path. OpenDocKit is built for the files people actually upload.

  • Structure, not just text. Merged table cells, multi-column PDFs, borderless tables, nested lists, footnotes, speaker notes, native charts as data tables, SmartArt as nested lists, Word / PowerPoint / Hancom equations as LaTeX, links and bold / italic as Markdown.
  • First-class Korean documents. A from-scratch HWP 5.x parser, HWPX, CP949 detection, NFC normalization, and the form-heavy tables Korean offices produce. Most general-purpose converters cannot read these at all.
  • Detects by content, not extension. An HTML table saved as .xls, a CSV with a title block, an MHTML page named .doc — each is read as what it really is, and a warning tells you.
  • Safe on untrusted uploads. Zip bombs, runaway merged-cell counts, recursive PDF objects and multi-gigabyte images are bounded. IsolatedConverter runs every file in a disposable worker process with memory and time limits.
  • Images in place. Pictures, charts and scanned pages are extracted, filtered, and — if you plug in a vision model — described right where they appeared in the document.
  • A hard character budget. max_chars stops work instead of truncating afterwards, so a file that will be rejected anyway costs neither parsing time nor vision-model calls.
  • Permissive by default. MIT licensed; everything a plain pip install opendockit brings in is MIT / BSD / Apache-style (no PyMuPDF, no pyhwp), with no ML models and no GPU. The only copyleft code is behind the opt-in heic extra.

The numbers behind these claims, and the places where OpenDocKit loses, are in How it compares.

Installation

bash
pip install opendockit                # conversion only — never touches the network
pip install "opendockit[openai]"      # + image description with a vision model
pip install "opendockit[heic]"        # + HEIC/HEIF images (pulls in GPL/LGPL-licensed codec libraries)
pip install "opendockit[langchain]"   # + LangChain loader
pip install "opendockit[llamaindex]"  # + LlamaIndex reader
pip install "opendockit[lightrag]"    # + LightRAG parser engine
pip install "opendockit[mcp]"         # + MCP server for agents
pip install "opendockit[open-webui]"  # + document loader for Open WebUI

Requires Python 3.12 or newer on Linux, macOS or Windows. On Windows a malformed HTML page or mail body over 256 K characters, or one nested very deeply, is read by an older parser and may lose content, with a warning (why).

Optional: install LibreOffice (brew install --cask libreoffice, apt install libreoffice) to read legacy .doc and .ppt files. Every other format is read by OpenDocKit itself.

Quick start

Convert

python
from opendockit import convert, convert_file

result = convert_file("report.pdf")              # from a path
result = convert(data, "report.pdf")             # from bytes (the filename is only a hint)

print(result.text)
print(result.char_count, result.exceeded)        # size of the output, and whether the limit stopped it

convert is synchronous, offline and deterministic (the one exception: .doc and .ppt start a local LibreOffice process). Pictures are collected in result.images and the text keeps an [Image] placeholder where each one was.

Describe images with a vision model

python
from opendockit import OpenAIImageDescriber, aconvert

result = await aconvert(data, "report.pdf", describer=OpenAIImageDescriber())   # reads OPENAI_API_KEY

Charts become data tables, diagrams become lists, scanned pages are transcribed, and decorative images are dropped. OpenAIImageDescriber(model) accepts any LangChain chat model, and anything with an async describe(image) -> str method works as a describer. See docs/images.md.

Serve it

python
from opendockit import ConversionError, IsolatedConverter

async with IsolatedConverter(workers=2) as converter:      # 2 GB and 2 minutes per file by default
    try:
        result = await converter.convert(data, filename)
    except ConversionError as exc:
        print(exc.code, exc)                               # stable code + a message safe to show users

One bad file ends one worker; your server and the next upload carry on. In a script, run this under if __name__ == "__main__": — the workers import the main module again. See docs/server.md.

Command line

bash
opendockit report.pdf                 # Markdown on stdout, warnings on stderr
opendockit report.pdf --json          # sections, metadata, warnings, images
opendockit report.pdf --count         # just the character count
opendockit report.pdf -o report.md    # write it to a file instead (UTF-8; use it in Windows PowerShell)
opendockit scan.pdf --describe        # describe images with a vision model (uses OPENAI_API_KEY)

LangChain, LlamaIndex and MCP

python
from opendockit.integrations.langchain import OpenDocKitLoader
from opendockit.integrations.llama_index import OpenDocKitReader

docs = OpenDocKitLoader("report.pdf", mode="sections").load()       # one Document per page / slide / sheet
docs = OpenDocKitReader(mode="sections").load_data("report.pdf")
bash
opendockit-mcp --root ~/Documents     # MCP server: Claude, Cursor and other agents read your documents as Markdown

To let the client start the server itself, with nothing installed beforehand, add it to the client's MCP settings:

json
{
  "mcpServers": {
    "opendockit": {
      "command": "uvx",
      "args": ["opendockit-mcp", "--root", "/path/to/documents"]
    }
  }
}

With mode="sections" each page, slide or sheet is its own Document, with its number in the metadata for citations. See docs/integrations.md.

hyeonsang010716/OpenDocKit MCP server

LightRAG

LightRAG finds the parser engine opendockit by itself once both are installed; no code is needed. A routing rule says which documents it reads:

bash
pip install "opendockit[lightrag]"
export LIGHTRAG_PARSER="hwp:opendockit,hwpx:opendockit,doc:opendockit,ppt:opendockit,xls:opendockit"

With that rule LightRAG accepts Hangul documents and the old Office formats, which its local engines do not read. Add pdf:opendockit or docx:opendockit to have those arrive as Markdown with their tables and headings. See docs/integrations.md.

Hermes Agent

OpenDocKit is listed in the Hermes Agent plugin catalog, where every plugin is reviewed by the Hermes maintainers and pinned to one commit:

bash
hermes plugins install opendockit
hermes plugins enable opendockit

Then ask Hermes about a file on your machine in a new session. It reads a long document by page, slide or sheet, sends nothing anywhere and needs no API key. What the plugin runs, and how to limit the folders it may read: hermes-plugin/README.md.

Claude Code

Install the plugin from this repository, which is its marketplace:

text
/plugin install opendockit --marketplace hyeonsang010716/OpenDocKit

Then ask Claude about a document on your machine. It reads Word, PowerPoint, Excel and HWP/HWPX files, which its Read tool cannot open, and long PDFs by page. What the plugin runs, and how to limit the folders it may read: claude-plugin/README.md.

Dify

OpenDocKit is on the Dify Marketplace, reviewed by the Dify maintainers. In your Dify, open Plugins, find OpenDocKit in the Marketplace and install it. Then, in a Workflow or Chatflow:

  1. Add a File variable to the Start node. For HWP and HWPX, choose Other file types and add .hwp and .hwpx.
  2. Add the tool OpenDocKit → Convert to Markdown and pass it the file.
  3. Use its text in an LLM node, or documents for one item per page, slide or sheet.

Dify reads no HWP or HWPX by itself. The file is converted inside your Dify, in a worker process with memory and time limits, with no API key and nothing sent anywhere else. Outputs and limits: dify-plugin/README.md.

Open WebUI

opendockit-open-webui is a document loader for Open WebUI's External content extraction engine. Open WebUI sends it every uploaded file and indexes one document per page, slide or sheet; a citation from a PDF names and opens the right page. Open WebUI reads no HWP or HWPX by itself.

bash
pip install "opendockit[open-webui]"
export OPENDOCKIT_OPEN_WEBUI_API_KEY=$(openssl rand -hex 32)
opendockit-open-webui --host 0.0.0.0     # then in Open WebUI: Documents → External, this URL and the same key

In Admin Settings → Documents, set Content Extraction Engine to External, the loader's URL and the same API key. Each file is converted offline in a worker process with memory and time limits. Docker Compose, limits and errors: docs/integrations.md.

Supported formats

FormatSectionsHighlights
PDFpagereading order across columns, ruled and borderless tables, form field values, headings from font size and weight, repeated header/footer removal, footnotes linked where the page proves them, scanned pages via vision model
DOCXdocumentheading styles, list numbering, merged cells, charts → tables, SmartArt, footnotes/endnotes, equations → LaTeX, comments
PPTXslideon-screen order, bullet levels, tables, charts → tables, SmartArt, equations, speaker notes
XLSX · XLS · Excel 2003 XML · CSVsheetseveral tables per sheet, merged cells, number and date formats, charts, cell comments
HWP · HWPXdocumentoutline headings, numbering, merged cells, captions, footnotes, equations → LaTeX
ODT · ODS · ODPdocument / sheet / slideread directly from the package: headings, lists, merged cells, charts, formulas → LaTeX, speaker notes
RTFdocumentbuilt-in parser: legacy code pages (CP949), tables with merged cells, lists, footnotes, pictures
EPUBdocumentchapters in reading order, pictures stored in the book, metadata
DOC · PPTdocument / slideconverted through LibreOffice when it is installed, then read like DOCX / PPTX
HTML · MHTMLdocumenttables with rowspan/colspan, layout tables unwrapped, MathML → LaTeX, hidden elements removed
Email (.eml, mbox)documentheaders, HTML or plain body, forwarded messages, calendar invites
TXT · Markdowndocumentencoding detection (UTF-8, CP949, UTF-16, Windows-1252)
Imagesdocument / pageJPEG, PNG, WebP, GIF, BMP, TIFF, AVIF, and HEIC with the heic extra — described by a vision model

Legacy .doc and .ppt need LibreOffice installed; everything else is read by OpenDocKit itself. The full list of what each format restores is in docs/formats.md; the honest list of what it cannot do is in docs/limitations.md.

How it compares

Structure checks passed: OpenDocKit 49 of 49, Docling 37, MarkItDown 31, Kreuzberg 29, kordoc 22, Unstructured 12

OpenDocKit, MarkItDown, Kreuzberg, Unstructured, Docling and kordoc were run on the same files on a standard GitHub runner with 4 cores and no GPU. The full report has the method, every raw result and the way to rerun it.

OpenDocKitMarkItDownKreuzbergUnstructuredDoclingkordoc
Formats read, of 31261922242211
HWP and HWPX✅❌❌❌❌✅
Structure checks passed, of 49 (ours)493129123722
PDF benchmark score, 200 files (not ours)0.8770.5890.6890.6970.8920.965
Seconds for those 200 PDFs37384521,514589
Peak memory on them, MB222310822,1273,0231,309
Installed size, MB1033375,7926,7465,987670
  • The widest reach without a model. OpenDocKit reads 26 of the 31 formats tested on nothing but a CPU, more than any of the others, and passes all 49 structure checks such as "is the merged cell still attached to its row". We wrote those checks, and the report says what that means.
  • Close to the model-based tools on PDF, in a fraction of the time. On the 200 PDFs of opendataloader-bench, a benchmark we did not write, OpenDocKit scores 0.877. kordoc (0.965) and Docling (0.892) score higher and run models to get there: they take 589 and 1,514 seconds for the 200 files, OpenDocKit 37.
  • HWP and HWPX. Only OpenDocKit and kordoc read them. kordoc is ahead on PDF and reads scans on the machine; OpenDocKit reads the other formats through the same call, from Python.
  • Made for uploads from strangers. On 113 fuzzer findings and attack files it neither crashed nor hung, and its largest process was 97 MB. One of those files pushed 2 of the other tools past 6 GB.
  • Where it loses. It has no OCR: scans and images need a vision model, where Docling, Unstructured and kordoc read them on the machine. Tables are its weakest PDF score (0.776, against 0.981 for kordoc). Kreuzberg is much faster across the board, and legacy .doc / .ppt go through LibreOffice.

Score on the 200 PDFs of opendataloader-bench: kordoc 0.965, Docling 0.892, OpenDocKit 0.877, Unstructured 0.697, Kreuzberg 0.689, MarkItDown 0.589 Seconds to convert those 200 PDFs: Kreuzberg 4, OpenDocKit 37, MarkItDown 38, Unstructured 52, kordoc 589, Docling 1,514

Examples

examples/ has one sample document per format and the Markdown OpenDocKit produces from each — with and without a vision model — so you can judge the output before installing anything.

Documentation

FormatsWhat is extracted from each format and how it is rendered
OptionsConvertOptions, exceptions and error codes
ImagesExtraction, filtering, vision models, custom describers
Running on a serverIsolatedConverter, resource limits, the character budget
IntegrationsLangChain, LlamaIndex, LightRAG, the MCP server, Hermes Agent, Claude Code, Dify and Open WebUI
Integration guideWhat an upload UI should tell its users
DesignWhy it is built this way, and how it was verified
LimitationsKnown gaps, stated plainly
Decision recordsEvery deliberate trade-off, with the test that pins it

Contributing

Contributions are welcome — bug reports with a minimal reproducing document are especially valuable. Start with CONTRIBUTING.md.

bash
git clone https://github.com/hyeonsang010716/OpenDocKit.git && cd OpenDocKit
uv sync
uv run pytest -n auto -m "not timing"   # the bulk of the suite, in parallel
uv run pytest -m timing                  # tests that measure time, one at a time
uv run ruff check

License

MIT

Similar modules

Browse Office documents