# mcp-document-converter [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/xt765/mcp-document-converter  
**GitHub Stars:** 12  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-document-converter

## Description
Convert PDF, DOCX, HTML, Markdown, and Text for AI assistant context injection.

## Tools
Capabilities this server exposes over MCP:

- **convert_document** — Convert a document from one format to another.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-document-converter": {
    "command": "uvx",
    "args": ["mcp-document-converter"]
  }
}
```

## Documentation

## What mcp-document-converter does

The mcp-document-converter MCP server exposes document conversion through the Model Context Protocol. Its main tool, `convert_document`, reads a source file and writes it in a requested target format. Supported formats are Markdown, HTML, DOCX, PDF, and plain text, giving the tool 25 source-to-target combinations when converting among the five formats.

Supported input extensions include `.md`, `.markdown`, `.mdown`, `.mkd`, `.html`, `.htm`, `.docx`, `.pdf`, `.txt`, and `.text`. Markdown parsing includes YAML front matter and GitHub-Flavored Markdown extensions. DOCX handling covers styles, tables, and images; PDF input supports text extraction and structure recognition; text input includes automatic encoding detection and structure recognition.

Output can be HTML, Markdown, DOCX, PDF, or text. HTML and PDF output support code syntax highlighting. The converter also supports custom CSS, and its documented options include metadata preservation for details such as title, author, and creation time.

## How it works

The mcp-document-converter MCP server processes documents in stages. A parser converts the source into a shared intermediate representation containing the document tree, metadata, and assets. A renderer then creates the requested output format from that representation.

A registry maps formats to their parsers and renderers, while the conversion engine coordinates the overall operation. This design separates format reading from format writing and provides a common path for conversions such as Markdown to HTML, HTML to PDF, or DOCX to Markdown.

## Setup and configuration

Install the package from PyPI with `pip install mcp-document-converter`, or clone the repository and install it with `pip install -e .`. The project requires Python 3.10 or newer.

For an MCP client configuration, the documented PyPI setup runs the package with `uvx`:

```json
{
  "mcpServers": {
    "mcp-document-converter": {
      "command": "uvx",
      "args": ["mcp-document-converter"]
    }
  }
}
```

Claude Desktop, Trae IDE, and Cherry Studio are named as client environments in the documentation.

## Tools and capabilities

The documented MCP tool is `convert_document`.

- `source_path` is required and identifies the input file.
- `target_format` is required and accepts `html`, `pdf`, `markdown`, `docx`, or `text`.
- `output_path` is optional and selects the destination file.
- `source_format` is optional; the format can be detected when it is omitted.
- `options` is optional and can include values such as `template`, `css`, and `preserve_metadata`.

The conversion engine supports custom parser and renderer extensions through its plugin-oriented architecture, although the provided format set is the five formats listed above.

## Limitations and notes

The mcp-document-converter MCP server is documented as a file-based converter: callers provide a source path and may provide an output path.

Conversion fidelity depends on the source and target formats. The documentation specifically identifies supported features, including DOCX styles, tables, and images; Markdown front matter; HTML semantic tags; PDF text and structure extraction; and PDF generation with WeasyPrint. It does not define every formatting feature preserved across every conversion pair.

The README includes examples of additional functions for listing formats and retrieving a conversion matrix, but the supplied MCP tool listing identifies `convert_document` as the exposed tool. For integration decisions, treat that tool as the confirmed interface.

_Full upstream README: https://allmcps.com/mcp/mcp-document-converter/readme_

