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.
2 points
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.

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "doc2md": {
      "command": "python",
      "args": ["-m", "doc2md"],
      "env": {
        "TRANSPORT": "stdio"
      }
    }
  }
}

{
  "mcpServers": {
    "doc2md": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-v", "/path/to/your/files:/data",
        "benguy1000/doc2md"
      ]
    }
  }
}

{
  "mcpServers": {
    "doc2md": {
      "command": "python",
      "args": ["-m", "doc2md"]
    }
  }
}

{
  "mcpServers": {
    "doc2md": {
      "command": "python",
      "args": ["-m", "doc2md"],
      "transport": "stdio"
    }
  }
}

{
  "mcpServers": {
    "doc2md": {
      "url": "http://localhost:3000/sse",
      "transport": "sse"
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
6.1K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
4.5K
4.5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
5.7K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
7.3K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
7.5K
5 points
R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
9.4K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
10.8K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
6.5K
5 points
G
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
N
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
M
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
D
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
U
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
F
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
G
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
M
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
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase