Doc2md
doc2md is an MCP server that can convert PDF, DOCX, and PPTX files into clean Markdown files, making them convenient to use as resources in LLM toolchains, RAG pipelines, and other MCP servers.
rating : 2 points
downloads : 5.2K
What is doc2md?
doc2md is a document conversion tool designed specifically for AI workflows. It can automatically recognize and convert common office document formats (PDF, Word, PowerPoint) into plain-text Markdown format. The converted files retain the structure of the original documents (such as headings, lists, tables) and are directly saved in your file system, making it convenient for other MCP servers or AI tools to read and use directly.How to use doc2md?
You can use doc2md in various ways: as an independent command-line tool, integrated into AI assistants such as Claude Desktop or Cursor, or run through a Docker container. The basic process is as follows: 1) Configure the MCP client to connect to the doc2md server; 2) Send conversion instructions through the AI assistant or directly call the tool; 3) Obtain the converted Markdown files in the specified output directory.Use cases
doc2md is very suitable for teams and individuals who need to process a large number of historical documents. For example, batch convert PDF reports, Word proposals, and PowerPoint presentations accumulated over the years in a company into text, and then build an enterprise knowledge base or connect to a RAG (Retrieval Augmented Generation) system, enabling AI to answer questions and conduct analysis based on the content of these documents.Main features
Multi-format support
Supports the conversion of three mainstream document formats: PDF, DOCX (Microsoft Word), and PPTX (Microsoft PowerPoint).
Structure preservation
Intelligently recognizes and preserves the original structure of the document, such as heading levels, paragraphs, lists, tables, hyperlinks, etc., to generate well-organized Markdown.
Native MCP integration
As a standard MCP server, it can be seamlessly integrated into AI development environments that support MCP, such as Claude Desktop, Cursor, and Claude Code.
Batch conversion
Provides a batch conversion tool that can process multiple files at once and summarize the conversion results, suitable for handling a large number of documents.
Flexible input methods
Supports both directly providing the file path and passing the file content through Base64 encoding, adapting to sandbox environments or network transmission scenarios.
Docker support
Provides an official Docker image, facilitating deployment and operation in a containerized environment to ensure environmental consistency.
Advantages
Ready to use: Simple to install and configure, and easy to integrate with mainstream AI assistants.
Standardized output: Generates a unified Markdown format, greatly simplifying the subsequent document processing and analysis process.
Increase productivity: Automatically handles the tedious document format conversion work, allowing the team to focus more on the content itself.
Friendly to the technology stack: Plain-text Markdown files are easy to manage by version control systems (such as Git) and are also convenient for various text processing tools to operate.
Limitations
Format loss: Rich format information such as complex layouts, specific fonts, and precise positions will be lost during the conversion process, focusing on content and basic structure.
Limited image processing: Although it can detect the presence of images, it will not extract or convert the text in the images (OCR).
Environment dependence: When running in a Docker or sandbox environment, pay attention to the mapping of file paths and access permission issues.
How to use
Install doc2md
Choose a suitable way to install doc2md. It is most recommended to use pip or uv for installation.
Configure the MCP client
In the configuration file of the AI assistant you are using (such as Claude Desktop), add doc2md as the MCP server. The following is a configuration example for Claude Desktop.
Start and use
Restart your AI assistant. After that, you can directly call the functions of doc2md through natural language instructions (such as "Convert this PDF file"), and the converted files will be saved in the specified location.
Usage examples
Example 1: Building a project knowledge base
The project manager has a large number of historical project documents (PDF reports, Word proposals, PPT reviews). He uses doc2md to batch convert all these documents to Markdown, and then provides the output folder as a resource to another "File Retrieval" MCP server. Now, he can directly ask the AI assistant questions about any historical project.
Example 2: Instantly查阅 documents in Claude Desktop
An analyst receives a new market research report in PDF format. She doesn't want to open a PDF reader but directly asks the AI to summarize the report in Claude Desktop. She first instructs Claude to call doc2md to convert the PDF, and then asks questions based on the generated Markdown file.
Example 3: Processing documents from the network
A developer is working in a sandbox environment and cannot directly access the host file system. He downloads a DOCX file and obtains its Base64 encoding. He uses the Base64 input function of doc2md to directly pass the encoded content for conversion.
Frequently Asked Questions
Where are the converted Markdown files saved?
What should I do if the Docker runtime cannot find my file?
Does it support converting text in images?
Can it convert Excel (.xlsx) files?
Will an error during conversion affect other files?
Related resources
GitHub repository
Access the source code of doc2md, report issues, or contribute.
PyPI project page
View project details and release history on the Python Package Index.
Docker Hub image
Obtain the official Docker image and view usage instructions.
Model Context Protocol (MCP) official website
Learn about the official documentation and specifications of the MCP protocol to understand the operating basis of doc2md.

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
24.4K
4.3 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.4K
4.5 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
34.3K
5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
71.9K
4.3 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
31.1K
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
65.4K
4.5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
21.0K
4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
48.6K
4.8 points




