Convert PDF, Office, HWP/HWPX, OpenDocument, RTF, EPUB, HTML, email and images into clean, LLM-ready Markdown.
# Add to your Claude Code skills
git clone https://github.com/hyeonsang010716/OpenDocKitGuides for using mcp servers skills like OpenDocKit.
OpenDocKit is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by hyeonsang010716. Convert PDF, Office, HWP/HWPX, OpenDocument, RTF, EPUB, HTML, email and images into clean, LLM-ready Markdown. It has 55 GitHub stars.
OpenDocKit's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/hyeonsang010716/OpenDocKit" and add it to your Claude Code skills directory (see the Installation section above).
OpenDocKit is primarily written in Python. It is open-source under hyeonsang010716 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh OpenDocKit against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
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
Most converters handle the happy path. OpenDocKit is built for the files people actually upload.
.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.IsolatedConverter runs every file in a disposable worker process with memory and time limits.max_chars stops work instead of truncating afterwards, so a file that will be
rejected anyway costs neither parsing time nor vision-model calls.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.
pip install opendockit # conversion only — never touches the network
pip install "opendockit[openai]" # + image description with a vision model (OpenAI)
pip install "opendockit[anthropic]" # + the same with Anthropic's Claude
pip install "opendockit[gemini]" # + the same with Google's Gemini
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).
On Windows on Arm with an Arm64 Python, with a 32-bit Python on Windows and on an Intel Mac, install with
pip install --prefer-binary opendockit. The newest releases of cryptography, which the PDF reader needs, have no wheel
for these, and pip would build it from source, which needs Rust and a C toolchain
(details).
Optional: install LibreOffice (brew install --cask libreoffice, apt install libreoffice,
winget install TheDocumentFoundation.LibreOffice) to read legacy .doc and .ppt files. Every other format is read by
OpenDocKit itself.
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.
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.
AnthropicImageDescriber() (reads ANTHROPIC_API_KEY) and GeminiImageDescriber() (reads GEMINI_API_KEY) do the same
with Claude and Gemini, and image_describer("gemini") picks one by name. With transcribe=True any of them reads only
the text in a picture, with no summary added.
OpenAIImageDescriber(model) accepts any LangChain chat model, and anything with an
async describe(image) -> str method works as a describer. See docs/images.md.
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.
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)
opendockit scan.pdf --describe --provider gemini # or anthropic: Gemini (GEMINI_API_KEY), Claude (ANTHROPIC_API_KEY)
opendockit scan.pdf --transcribe # only the text in the images, no description (takes --provider too)
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")
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:
{
"mcpServers": {
"opendockit": {
"command": "uvx",
"args": ["--no-build-package", "cryptography", "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/OpenDoc