# OpenDocKit

OpenDocKit is an MCP server for Claude Code that reads local PDF, Office, EPUB, and email files as Markdown. It runs offline.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 42 repo stars
- Author: hyeonsang010716
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/hyeonsang010716/OpenDocKit/tree/HEAD/packages/opendockit-mcp
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/opendockit

## What it does

OpenDocKit turns local PDF, Word, PowerPoint, Excel, CSV, HWP/HWPX, OpenDocument, RTF, EPUB, HTML, and email files into Markdown. Tables retain their row and column layout. `document_outline` shows a file's structure, while `convert_document` can return selected pages, slides, or sheets.

The server is read-only and sends nothing elsewhere. Access can be limited to folders with `--root` or `OPENDOCKIT_MCP_ROOTS`; without that setting, it can read files available to the user. Each response is capped by `max_chars`.

\`uvx` is required to start it. Legacy `.doc` and `.ppt` files require LibreOffice. On Windows, HTML, email, and EPUB files cannot be read, and conversion has no time or memory limits.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `OPENDOCKIT_MCP_ROOTS` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env OPENDOCKIT_MCP_ROOTS=<OPENDOCKIT_MCP_ROOTS> --transport stdio opendockit-mcp -- uvx opendockit-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from opendockit-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add opendockit-mcp --env OPENDOCKIT_MCP_ROOTS=<OPENDOCKIT_MCP_ROOTS> -- uvx opendockit-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from opendockit-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "opendockit-mcp": {
            "command": "uvx",
            "args": [
                "opendockit-mcp"
            ],
            "env": {
                "OPENDOCKIT_MCP_ROOTS": "<OPENDOCKIT_MCP_ROOTS>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from opendockit-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "opendockit-mcp": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "opendockit-mcp"
            ],
            "env": {
                "OPENDOCKIT_MCP_ROOTS": "<OPENDOCKIT_MCP_ROOTS>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from opendockit-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e OPENDOCKIT_MCP_ROOTS=<OPENDOCKIT_MCP_ROOTS> opendockit-mcp uvx opendockit-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from opendockit-mcp <command>

## When to use it
- read a local PDF as Markdown
- extract a spreadsheet table without uploading the file
- load selected pages from a long document
- inspect a file outline before reading its text

## Example prompts
- Read `report.pdf` and return pages `2-5` as Markdown.
- Show the structure of `budget.xlsx`, then extract sheet `3`.
- Convert `contract.docx` to Markdown and report the converter warnings.

## Similar
- [OfficeIMO Document Tools](https://affpapa.org/en/nevibecode/mcp/officeimo-document-tools.md) — MCP server · ★ 722 repo stars
- [anymd](https://affpapa.org/en/nevibecode/mcp/anymd.md) — MCP server · ★ 1074 repo stars
- [mcp](https://affpapa.org/en/nevibecode/mcp/bigapi-2026-mcp.md) — MCP server
- [convert-documents-to-markdown](https://affpapa.org/en/nevibecode/skills/convert-documents-to-markdown.md) — skill · 13700 installs
- [markdown-converter](https://affpapa.org/en/nevibecode/skills/steipete-markdown-converter.md) — skill · 346 installs
- [docs-router](https://affpapa.org/en/nevibecode/skills/docs-router.md) — skill · 138 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
