Логотип Markitdown MCP

Markitdown MCP

Спільнота
trsdn

📄 Professional MCP server for converting 29+ file formats to Markdown - Perfect for Claude Desktop and AI workflows!

Видавецьtrsdn
Репозиторійmarkitdown-mcp
МоваPython
Форки
12
Зірки
42
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Markitdown MCP надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 42, форки: 12 — у пов’язаному репозиторії.

📄 MarkItDown MCP Server

License Python CI PyPI Conformance MCP

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.

  • PyPI distribution name: trsdn-markitdown-mcp
  • Python import name: markitdown_mcp
  • CLI command: markitdown-mcp (alias: trsdn-markitdown-mcp)

🔥 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 TypeRequired DependenciesInstall Command
PDFpypdf, pymupdf, pdfplumberpipx inject trsdn-markitdown-mcp 'markitdown[all]'
Excel (.xlsx, .xls)openpyxl, xlrd, pandaspipx inject trsdn-markitdown-mcp openpyxl xlrd pandas
PowerPoint (.pptx)python-pptxIncluded in base install
ImagesPIL, exiftool (optional)Included in base install
Audiopydub, speech_recognitionpipx inject trsdn-markitdown-mcp 'markitdown[all]'
Basic formatsNoneBase 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 trsdn-markitdown-mcp && \
    pipx inject trsdn-markitdown-mcp 'markitdown[all]' openpyxl xlrd pandas pymupdf pdfplumber
  2. Add to your Claude Desktop config:

    json
    {
      "mcpServers": {
        "markitdown": {
          "command": "markitdown-mcp",
          "args": []
        }
      }
    }
  3. 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.

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

📋 list_supported_formats

Get a complete list of supported file formats.

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

📁 convert_directory

Convert all supported files in a directory.

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

📄 Supported File Formats (29+)

CategoryExtensionsFeatures
📊 Office.pdf, .docx, .pptx, .xlsx, .xlsFull document structure
🖼️ Images.jpg, .png, .gif, .bmp, .tiff, .webpEXIF metadata extraction
🎵 Audio.mp3, .wavSpeech-to-text transcription
🌐 Web.html, .htm, .xml, .json, .csvClean formatting
📚 Books.epubChapter extraction
📦 Archives.zipAuto-extract and process
📝 Text.txt, .md, .rstDirect conversion

Installation

Published on PyPI as trsdn-markitdown-mcp — not to be confused with Microsoft's markitdown-mcp.

Option 1: Install from PyPI (Recommended)

bash
# 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)

bash
git clone https://github.com/trsdn/markitdown-mcp.git
cd markitdown-mcp
pip install -e ".[all]"

Option 3: Direct usage from a checkout

bash
cd markitdown-mcp
python -m venv venv && source venv/bin/activate
pip install -r requirements.txt

Quick Start

MCP Server Mode (Recommended)

After installation:

bash
# 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:

bash
# 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)

bash
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)

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

bash
# 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:

bash
# 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:

bash
# 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:

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

Prefer running it without a permanent install? Use uvx (the package name is trsdn-markitdown-mcp, the command is markitdown-mcp):

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

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 KNOWN_ISSUES.md for more details.

Configuration

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

Usage

Basic Usage

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

Custom Directories

Specify custom input and output directories:

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

Single File Conversion

Convert a single file:

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

markitdown-mcp/
├── mcp_server.py        # MCP protocol server
├── mdconvert.py         # CLI 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

bash
# 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
  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 for detailed guidelines.

📚 Documentation

For Users

For AI Agents

For Developers

Project facts

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

📄 License

MIT License - see LICENSE file for details.

Repository stats

🔗 Related

Test fix verification

Встановлення

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

Використовуйте MCP Markitdown MCP з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Markitdown MCP ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Markitdown MCP як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Markitdown MCP.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "markitdown-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Markitdown MCP, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Markitdown MCP.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Markitdown MCP?
Markitdown MCP
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Markitdown MCP.

Поширені запитання

Для чого використовується сервер MCP Markitdown MCP?

Markitdown MCP — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Markitdown MCP з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Markitdown MCP з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Markitdown MCP із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Markitdown MCP, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Markitdown MCP до TypingMind?

Markitdown MCP працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP Markitdown MCP у TypingMind?

Markitdown MCP надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Markitdown MCP?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Markitdown MCP потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇