MCP Document Converter logo

MCP Document Converter

Converts Markdown, HTML, DOCX, PDF, and text files between supported formats through one MCP tool.

Install MCP Document Converter

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-document-converter": {
      "command": "uvx",
      "args": [
        "mcp-document-converter"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx mcp-document-converter

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The mcp-document-converter MCP server converts Markdown, HTML, DOCX, PDF, and plain-text files between supported formats. Its convert_document tool accepts a source path, target format, optional output path, and conversion options such as CSS or metadata preservation. It uses format-specific parsers and renderers with an intermediate document representation. Reach for it when an AI assistant needs to transform local documents for context injection or export.

Use cases

  • Convert Markdown files to HTML for assistant context
  • Extract PDF content into Markdown
  • Render HTML documents as PDF files
  • Transform DOCX documents into plain text
  • Preserve document metadata during conversion

Key features

  • Converts five document formats
  • Supports source format auto-detection
  • Preserves selected document metadata
  • Accepts custom CSS and templates
  • Uses parser and renderer components
  • Provides one unified conversion tool

Tools1

What MCP Document Converter lets your agent do. Expand a tool for its parameters.

Self-reported~16 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 76d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · mcp-document-converter (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars12Stargazers on the source repository.
Last commit9mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed1Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Document Converter works

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:

config.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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Document Converter

mcp-document-converter is an MCP server that connects AI assistants to local document conversion through the convert_document tool. It converts among Markdown, HTML, DOCX, PDF, and plain text, with options for output paths, source format selection, CSS, templates, and metadata preservation.

Install it with pip using `pip install mcp-document-converter`, then configure the MCP client to run `mcp-document-converter`. The README also provides `uvx` configurations for the PyPI package, GitHub source, and Gitee source, plus a source-install option.

It supports Markdown, HTML, DOCX, PDF, and plain text as both input and output formats. The tool accepts common extensions for Markdown, HTML, and text, and can auto-detect the source format when `source_format` is not supplied.

Call `convert_document` with the required `source_path` and `target_format` arguments. Add `output_path` to choose the destination, or provide `source_format` and an `options` object for settings such as CSS, templates, and metadata preservation.

Yes, Claude Desktop is named in the README as a supported configuration target. Add an MCP server entry that runs the package with `uvx mcp-document-converter`, or install it with pip and use the installed command.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Document Converter AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-document-converter?style=directory)](https://allmcps.com/mcp/mcp-document-converter)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-document-converter"><img src="https://allmcps.com/api/badge/mcp-document-converter?style=directory" alt="MCP Document Converter on AllMCPs" /></a>