Convert PDF, DOCX, HTML, Markdown, and Text for AI assistant context injection.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
MCP (Model Context Protocol) Document Converter - A powerful MCP tool for converting documents between multiple formats, enabling AI agents to easily transform documents.
π Language: English | δΈζ
User Guide Β· API Reference Β· Contributing Β· Changelog Β· License
| Format | Extensions | MIME Type | Features |
|---|---|---|---|
| Markdown | .md, .markdown, .mdown, .mkd | text/markdown | YAML Front Matter, GFM extensions |
| HTML | .html, .htm | text/html | Semantic tag parsing |
| DOCX | .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Styles, tables, images |
| application/pdf | Text extraction and structure recognition | ||
| Text | .txt, .text | text/plain | Auto encoding detection and structure recognition |
| Format | Extension | MIME Type | Features |
|---|---|---|---|
| HTML | .html | text/html | Beautiful styling, code highlighting, responsive design |
| Markdown | .md | text/markdown | Standard Markdown format, YAML Front Matter |
| DOCX | .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Word document format, style preservation |
| application/pdf | Generated with WeasyPrint, pagination support | ||
| Text | .txt | text/plain | Plain text, basic formatting preserved |
This server provides the following tools:
convert_documentConvert a document from one format to another.
Arguments:
source_path (string, required): Path to the source document.target_format (string, required): Target format (html, pdf, markdown, docx, text).output_path (string, optional): Path for the output file.source_format (string, optional): Format of the source file (auto-detected if not provided).options (object, optional): Additional options like template, css, and preserve_metadata.Add the following to your MCP configuration file:
Option 1: Using PyPI (Recommended)
Option 2: Using GitHub repository
Option 3: Using Gitee repository (Faster access in China)
Option 4: Using pip (Manual installation)
First install the package:
Then add to configuration:
Cherry Studio is a powerful open-source desktop AI client assistant that supports integrating various tools through the MCP protocol
Configuration Example:

Usage Example:

After configuration, AI assistants can directly call the following tools:
Use a unified interface to convert any supported document type.
List all supported document formats.
Get the complete format conversion matrix.
Check if conversion from source format to target format is supported.
Get detailed information about a specific format.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-document-converter)<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>