📄 MarkItDown MCP Server A powerful Model Context Protocol (MCP) server that converts 29+ file formats to clean, structured Markdown using Microsoft's MarkItDown library. [!IMPORTANT] This is not Microsoft's official markitdown-mcp package. This is an independent community project published on PyPI as trsdn-markitdown-mcp. It uses Microsoft's markitdown library as a dependency, but it is developed and maintained…
A powerful Model Context Protocol (MCP) server that converts 29+ file formats to clean, structured Markdown using Microsoft’s MarkItDown library.
[!IMPORTANT]
This is not Microsoft’s official markitdown-mcp package.
This is an independent community project published on PyPI as
trsdn-markitdown-mcp.
It uses Microsoft’s markitdown library as a
dependency, but it is developed and maintained separately from
markitdown-mcp by Microsoft.
Published on PyPI as trsdn-markitdown-mcp — not to be confused with Microsoft’s markitdown-mcp.
Option 1: Install from PyPI (Recommended)
# Isolated install with pipx
pipx install trsdn-markitdown-mcp
# Or with pip
pip install trsdn-markitdown-mcp
# Or run without installing (uv)
uvx trsdn-markitdown-mcp
Option 2: Install from source (development)
git clone https://github.com/trsdn/markitdown-mcp.git
cd markitdown-mcp
pip install -e ".[all]"
# Start the MCP server (for use with MCP clients)
markitdown-mcp
# Equivalent alternatives
trsdn-markitdown-mcp
python -m markitdown_mcp
🛠️ Installation Options
🚀 One-Command Install (Recommended)
Install with ALL dependencies in one command:
# Using pipx (recommended)
pipx install trsdn-markitdown-mcp && \
pipx inject trsdn-markitdown-mcp 'markitdown[all]' openpyxl xlrd pandas pymupdf pdfplumber pytesseract pydub speechrecognition
# Or download and run the install script
curl -sSL https://raw.githubusercontent.com/trsdn/markitdown-mcp/main/scripts/install-all-deps.sh | bash
Quick Install (Basic Features Only)
pip install trsdn-markitdown-mcp
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)
# Install the MCP server
pipx install trsdn-markitdown-mcp
# Install all required dependencies for full functionality
pipx inject trsdn-markitdown-mcp 'markitdown[all]' # PDF, OCR, Speech
pipx inject trsdn-markitdown-mcp openpyxl xlrd pandas # Excel support
pipx inject trsdn-markitdown-mcp pymupdf pdfplumber # Advanced PDF
Method 2: Using pip with virtual environment
# Create and activate virtual environment
python -m venv markitdown-env
source markitdown-env/bin/activate # On Windows: markitdown-env\Scripts\activate
# Install with all dependencies in one command
git clone https://github.com/trsdn/markitdown-mcp.git
cd markitdown-mcp
pip install -e ".[all]" # This installs everything!
Method 3: For Claude Desktop with existing installation
If you already have the MCP server installed but some formats aren’t working:
# Find your installation
which markitdown-mcp # Shows path like /Users/you/.local/bin/markitdown-mcp
# Inject missing dependencies
pipx inject trsdn-markitdown-mcp 'markitdown[all]' openpyxl xlrd pandas pymupdf pdfplumber
Verify Installation
After installation, verify the server responds to MCP requests:
# Ask the server for its tool list over stdio (JSON-RPC)
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | markitdown-mcp
# For pipx installations, check injected packages
pipx list --include-injected
🔧 Claude Desktop Configuration
Add this to your Claude Desktop claude_desktop_config.json:
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
# Fork and clone the repository
git clone https://github.com/YOUR_USERNAME/markitdown-mcp.git
cd markitdown-mcp
# Set up development environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e ".[dev]"
# Test your changes
markitdown-mcp # Test the server works
Status and maintenance: beta, maintained by @trsdn. Report problems through
issues; security reports follow the
security policy.
Language: primary language English, English only. The server has no localized strings.
Privacy: the server reads only files it is asked to convert, from the safe directories it allows (the Documents, Downloads and Desktop folders in the home directory, temporary directories, the working directory, and MARKITDOWN_SAFE_DIRS), and
writes only to the output directory the caller names. It collects no data, sends no telemetry and contacts no network
service itself. The one exception is optional audio transcription: with the all extra installed, the
speechrecognition package sends the audio to Google’s web speech recognition service. Nothing is retained after a
request beyond the files the caller asked to be written.
Accessibility: there is no graphical interface. The server speaks JSON-RPC over stdio and its log lines go to
standard error as plain text. No accessibility limitation is known.
Third-party code: this repository redistributes none. Dependencies are declared in pyproject.toml and resolved
by the installer when the package is installed.
评论