Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MarkItDown MCP ServerConvert ~/Documents/annual_report.pdf to markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
📄 MarkItDown MCP Server
A powerful Model Context Protocol (MCP) server that converts 29+ file formats to clean, structured Markdown using Microsoft's MarkItDown library.
🔥 Perfect for Claude Desktop, MCP clients, and AI workflows!
✨ Features
🔌 MCP Protocol: Seamless integration with Claude Desktop and MCP clients
📁 29+ File Formats: PDFs, Office docs, images, audio, archives, and more
🔍 Image Metadata: Extract EXIF metadata from images (JPG, PNG, GIF, etc.)
🎵 Speech Recognition: Convert audio to text with speech transcription (MP3, WAV)*
*Requires
📦 Dependency Requirements by File Type
File Type | Required Dependencies | Install Command |
|
| |
Excel (.xlsx, .xls) |
|
|
PowerPoint (.pptx) |
| Included in base install |
Images |
| Included in base install |
Audio |
|
|
Basic formats | None | Base install only |
Note: For the best experience, we recommend installing all dependencies using the Complete Install method below.
📊 Office Documents: Word, PowerPoint, Excel files
🌐 Web Content: HTML, XML, JSON, CSV
📚 E-books & Archives: EPUB, ZIP files
⚡ Fast & Reliable: Built on Microsoft's MarkItDown library
🚀 Quick Start for Claude Desktop
Install the server with ALL features:
# One command to install everything pipx install git+https://github.com/trsdn/markitdown-mcp.git && \ pipx inject markitdown-mcp 'markitdown[all]' openpyxl xlrd pandas pymupdf pdfplumberAdd to your Claude Desktop config:
{ "mcpServers": { "markitdown": { "command": "markitdown-mcp", "args": [] } } }Restart Claude Desktop and start converting files!
Features
Convert multiple file formats to Markdown
Batch processing of entire directories
Preserves directory structure in output
Environment variable support via .env file
📋 Available MCP Tools
🔧 convert_file
Convert a single file to Markdown.
📋 list_supported_formats
Get a complete list of supported file formats.
📁 convert_directory
Convert all supported files in a directory.
📄 Supported File Formats (29+)
Category | Extensions | Features |
📊 Office |
| Full document structure |
🖼️ Images |
| EXIF metadata extraction |
🎵 Audio |
| Speech-to-text transcription |
🌐 Web |
| Clean formatting |
📚 Books |
| Chapter extraction |
📦 Archives |
| Auto-extract and process |
📝 Text |
| Direct conversion |
Installation
Option 1: Pip Install (Recommended)
Option 2: Direct Usage
Quick Start
MCP Server Mode (Recommended)
After pip installation:
Or using the development script:
🛠️ Installation Options
🚀 One-Command Install (Recommended)
Install with ALL dependencies in one command:
Quick Install (Basic Features Only)
Complete Install with All Dependencies (Step by Step)
To ensure all file formats are supported, use one of these methods:
Method 1: Using pipx (Recommended)
Method 2: Using pip with virtual environment
Method 3: For Claude Desktop with existing installation
If you already have the MCP server installed but some formats aren't working:
Verify Installation
After installation, verify all dependencies are properly installed:
🔧 Claude Desktop Configuration
Add this to your Claude Desktop claude_desktop_config.json:
Config file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
💡 Usage Examples
Convert a PDF
Batch Process Directory
Check Supported Formats
🔍 Troubleshooting
Missing Dependencies Errors
If you see errors like:
PdfConverter threw MissingDependencyExceptionXlsxConverter threw MissingDependencyExceptionPptxConverter threw BadZipFile
This means some optional dependencies are missing. Follow the Complete Install instructions above.
Unicode Errors with .md Files
Some Markdown files with special characters may fail with UnicodeDecodeError. This is a known limitation in the MarkItDown library.
Installation Issues
"externally-managed-environment" error: Use pipx instead of pip
Permission denied: Never use sudo with pip; use pipx or virtual environments
Command not found: Make sure
~/.local/binis in your PATH
See KNOWN_ISSUES.md for more details.
Configuration
No special configuration required. The tool uses the MarkItDown library for document conversion.
Usage
Basic Usage
Custom Directories
Specify custom input and output directories:
Single File Conversion
Convert a single file:
Command Line Options
--input, -i: Input directory (default:input)--output, -o: Output directory (default:output)--file, -f: Convert a single file instead of a directory
MCP Server Features
The MCP server provides three tools:
1. convert_file
Convert a single file to Markdown.
Input: File path or base64 encoded content with filename
Output: Converted Markdown content
2. list_supported_formats
List all supported file formats.
Output: Categorized list of supported file extensions
3. convert_directory
Convert all supported files in a directory.
Input: Input directory path, optional output directory
Output: Summary of conversion results
Directory Structure
🔍 How It Works
This MCP server leverages Microsoft's MarkItDown library to provide intelligent document conversion:
📄 PDFs: Extracts text, tables, and structure
🖼️ Images: Uses OCR to extract text content + EXIF metadata
🎵 Audio: Converts speech to text transcription (MP3, WAV)
📊 Office: Preserves formatting from Word, Excel, PowerPoint
🌐 HTML: Converts to clean, readable Markdown
📦 Archives: Automatically extracts and processes contents
🏷️ Tags
mcp model-context-protocol claude-desktop markdown document-conversion pdf ocr speech-to-text markitdown ai-tools
📋 Requirements
Python: 3.10+
MCP Client: Claude Desktop or compatible MCP client
Dependencies: Automatically installed via pip
🤝 Contributing
We welcome contributions! Here's how you can help:
🚀 Quick Start for Contributors
📝 Ways to Contribute
🐛 Bug Reports: Found an issue? Report it
💡 Feature Requests: Have an idea? Suggest it
📄 New File Formats: Add support for more file types
📚 Documentation: Improve guides and examples
🧪 Testing: Add tests and improve reliability
🎨 Code Quality: Refactor and optimize
📋 Contribution Process
Read our Contributing Guide
Check existing issues
Fork the repository
Create a feature branch (
feat/amazing-feature)Make your changes with tests
Submit a pull request
Please read
📚 Documentation
For Users
Examples - MCP client configuration examples
Known Issues - Common problems and solutions
Changelog - Version history and updates
For AI Agents
AGENTS.md - Comprehensive guide for AI agent integration
API Documentation - Technical specifications and tool details
For Developers
Contributing Guide - How to contribute
Testing Strategy - Testing approach and guidelines
Documentation - Complete documentation index
📄 License
MIT License - see LICENSE file for details.
🔗 Related
Microsoft MarkItDown# Test workflow fixes