AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP unreviewed MIT Self-run

Markitdown Mcp

mcp-trsdn-markitdown-mcp Β· by trsdn

πŸ“„ Professional MCP server for converting 29+ file formats to Markdown - Perfect for Claude Desktop and AI workflows!

β€” No reviews yet
0 installs
42 views
0.0% view→install

Install

$ agentstack add mcp-trsdn-markitdown-mcp

Open-source listing, not yet scanned by AgentStack. Follow the source repository for install instructions.

Security review

⚠ Flagged

1 finding(s); flagged for manual review. Β· v0.1.0 How review works β†’

  • β€’ Prompt-injection patterns
  • β€’ Secret / credential exfiltration
  • β€’ Dangerous shell & filesystem operations
  • β€’ Untrusted network calls
  • β€’ Known-malicious package signatures
  • high Pipes remote content directly into a shell (remote code execution).

What it can access

  • ● Network access Used
  • βœ“ Filesystem access No
  • βœ“ Shell / process execution No
  • ● Environment & secrets Used
  • βœ“ Dynamic code execution No

From automated source analysis of v0.1.0. β€œUsed” means the capability is present in the source β€” more access means more to trust, not that it’s unsafe.

View the full security report β†’

Reliability & compatibility

β€” Not yet reviewed
0 installs to date
β€” no reviews yet
● 3mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work β†’
Are you the author of Markitdown Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

πŸ“„ MarkItDown MCP Server

[](https://modelcontextprotocol.io) [](https://python.org) [](LICENSE) [](https://github.com/trsdn/markitdown-mcp/actions) [](CONTRIBUTING.md)

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 markitdown[all] installation for full functionality

πŸ“¦ Dependency Requirements by File Type

| File Type | Required Dependencies | Install Command | |-----------|----------------------|-----------------| | PDF | pypdf, pymupdf, pdfplumber | pipx inject markitdown-mcp 'markitdown[all]' | | Excel (.xlsx, .xls) | openpyxl, xlrd, pandas | pipx inject markitdown-mcp openpyxl xlrd pandas | | PowerPoint (.pptx) | python-pptx | Included in base install | | Images | PIL, exiftool (optional) | Included in base install | | Audio | pydub, speech_recognition | pipx inject markitdown-mcp 'markitdown[all]' | | 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

  1. Install the server with ALL features:

``bash # 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 pdfplumber ``

  1. Add to your Claude Desktop config:

``json { "mcpServers": { "markitdown": { "command": "markitdown-mcp", "args": [] } } } ``

  1. 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.

{
  "name": "convert_file",
  "arguments": {
    "file_path": "/path/to/document.pdf"
  }
}

πŸ“‹ list_supported_formats

Get a complete list of supported file formats.

{
  "name": "list_supported_formats",
  "arguments": {}
}

πŸ“ convert_directory

Convert all supported files in a directory.

{
  "name": "convert_directory", 
  "arguments": {
    "input_directory": "/path/to/files",
    "output_directory": "/path/to/markdown" 
  }
}

πŸ“„ Supported File Formats (29+)

| Category | Extensions | Features | |----------|------------|----------| | πŸ“Š Office | .pdf, .docx, .pptx, .xlsx, .xls | Full document structure | | πŸ–ΌοΈ Images | .jpg, .png, .gif, .bmp, .tiff, .webp | EXIF metadata extraction | | 🎡 Audio | .mp3, .wav | Speech-to-text transcription | | 🌐 Web | .html, .htm, .xml, .json, .csv | Clean formatting | | πŸ“š Books | .epub | Chapter extraction | | πŸ“¦ Archives | .zip | Auto-extract and process | | πŸ“ Text | .txt, .md, .rst | Direct conversion |

Installation

Option 1: Pip Install (Recommended)

# Install from local directory
pip install -e /Users/torstenmahr/GitHub/markitdown-mcp

# Or navigate to the directory first
cd /Users/torstenmahr/GitHub/markitdown-mcp
pip install -e .

Option 2: Direct Usage

cd /Users/torstenmahr/GitHub/markitdown-mcp
source venv/bin/activate
pip install -r requirements.txt

Quick Start

MCP Server Mode (Recommended)

After pip installation:

# Start the MCP server (for use with MCP clients)
markitdown-mcp

Or using the development script:

python run_server.py

πŸ› οΈ Installation Options

πŸš€ One-Command Install (Recommended)

Install with ALL dependencies in one command:

# Using pipx (recommended)
pipx install git+https://github.com/trsdn/markitdown-mcp.git && \
pipx inject 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 -e git+https://github.com/trsdn/markitdown-mcp.git

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 git+https://github.com/trsdn/markitdown-mcp.git

# Install all required dependencies for full functionality
pipx inject markitdown-mcp 'markitdown[all]'         # PDF, OCR, Speech
pipx inject markitdown-mcp openpyxl xlrd pandas      # Excel support
pipx inject 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 markitdown-mcp 'markitdown[all]' openpyxl xlrd pandas pymupdf pdfplumber

Verify Installation

After installation, verify all dependencies are properly installed:

# Test the MCP server
markitdown-mcp --help

# For pipx installations, check injected packages
pipx list --include-injected

πŸ”§ Claude Desktop Configuration

Add this to your Claude Desktop claude_desktop_config.json:

{
  "mcpServers": {
    "markitdown": {
      "command": "markitdown-mcp",
      "args": []
    }
  }
}

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

πŸ’‘ Usage Examples

Convert a PDF

Convert the file ~/Documents/report.pdf to markdown

Batch Process Directory

Convert all files in ~/Downloads/documents/ to markdown

Check Supported Formats

What file formats can you convert to markdown?

πŸ” Troubleshooting

Missing Dependencies Errors

If you see errors like:

  • PdfConverter threw MissingDependencyException
  • XlsxConverter threw MissingDependencyException
  • PptxConverter 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/bin is in your PATH

See [KNOWNISSUES.md](KNOWNISSUES.md) for more details.

Configuration

No special configuration required. The tool uses the MarkItDown library for document conversion.

Usage

Basic Usage

# Convert all supported files from input/ to output/
python mdconvert.py

Custom Directories

Specify custom input and output directories:

python mdconvert.py --input /path/to/docs --output /path/to/markdown

Single File Conversion

Convert a single file:

python mdconvert.py --file document.pdf

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. listsupportedformats

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

markitdown-mcp/
β”œβ”€β”€ mcp_server.py        # MCP protocol server
β”œβ”€β”€ mdconvert.py         # CLI script
β”œβ”€β”€ run_server.py        # Server runner script
β”œβ”€β”€ mcp_config.json      # MCP configuration
β”œβ”€β”€ requirements.txt     # Python dependencies
β”œβ”€β”€ README.md           # This file
β”œβ”€β”€ input/              # Default input directory
β”œβ”€β”€ output/             # Default output directory
└── venv/               # Virtual environment

πŸ” 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

# 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

πŸ“ 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

  1. Read our [Contributing Guide](docs/development/CONTRIBUTING.md)
  2. Check existing issues
  3. Fork the repository
  4. Create a feature branch (feat/amazing-feature)
  5. Make your changes with tests
  6. Submit a pull request

Please read [docs/development/CONTRIBUTING.md](docs/development/CONTRIBUTING.md) for detailed guidelines.

πŸ“š Documentation

For Users

  • [Examples](examples/) - MCP client configuration examples
  • [Known Issues](docs/guides/KNOWN_ISSUES.md) - Common problems and solutions
  • [Changelog](CHANGELOG.md) - Version history and updates

For AI Agents

  • [AGENTS.md](AGENTS.md) - Comprehensive guide for AI agent integration
  • [API Documentation](docs/api/) - Technical specifications and tool details

For Developers

  • [Contributing Guide](docs/development/CONTRIBUTING.md) - How to contribute
  • [Testing Strategy](docs/development/TESTING_STRATEGY.md) - Testing approach and guidelines
  • [Documentation](docs/) - Complete documentation index

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ”— Related

Test fix verification

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source β€” we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.