mcpField
M
MCP Document Converter

MCP Document Converter

Local
github.com/demo112Files & Storage0Updated 24w ago

About MCP Document Converter

MCP Document Converter is an MCP server that converts documents and URLs into Markdown for AI agents. It supports a range of document formats and offers tools for batch and directory conversion, metadata extraction, and format listing.

Key features

  1. 01Convert supported files and URLs to Markdown
  2. 02Batch and directory conversion
  3. 03Extract file metadata
  4. 04List supported formats
  5. 05OCR for supported images
  6. 06Docker-ready deployment

Use cases

  1. 01Prepare documents for AI agent ingestion
  2. 02Convert a directory of files in one operation
  3. 03Extract metadata without full conversion

MCP support

The server exposes six MCP tools for file and URL conversion, batch and directory processing, metadata extraction, and supported-format listing.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"convert": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp-server-convert"
]
}
}
}
Run commanddocker run -i --rm mcp-server-convert

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
ocimcp-server-convert

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

mcp-server-convert

A lightweight Model Context Protocol (MCP) server that converts documents to Markdown. Supports PDF, DOCX, HTML, EPUB, CSV, JSON, and plain text files.

Perfect for AI agents that need to ingest and understand document content.

Features

  • 📄 Multi-format support: PDF, DOCX, HTML, EPUB, CSV, JSON, images (via OCR), and plain text
  • 🔧 6 MCP tools: convert_file, convert_url, list_supported_formats, batch_convert, extract_metadata, convert_directory
  • 🐍 Zero external dependencies for core: Uses Python standard library + markdownify for HTML
  • ⚡ Fast: In-memory processing, no temp files
  • 🐳 Docker-ready: Single Dockerfile, one command deploy

Quick Start

Install & Run
# Clone
git clone https://github.com/demo112/mcp-server-convert.git
cd mcp-server-convert

# Install dependencies
pip install -r requirements.txt

# Run
python -m mcp_server_convert
Configure in Claude Code

Add to your MCP settings (~/.claude/settings.json):

{
  "mcpServers": {
    "convert": {
      "command": "python",
      "args": ["-m", "mcp_server_convert"],
      "cwd": "/path/to/mcp-server-convert"
    }
  }
}
Docker
docker build -t mcp-server-convert .
docker run -i --rm mcp-server-convert
Configure with Docker
{
  "mcpServers": {
    "convert": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-v", "/path/to/files:/data", "mcp-server-convert"]
    }
  }
}

Tools

convert_file

Convert a local file to Markdown.

Parameters:

  • file_path (string, required): Absolute path to the file
  • max_length (int, optional): Maximum output length in chars (default: 50000)
convert_url

Fetch a URL and convert its content to Markdown.

Parameters:

  • url (string, required): URL to fetch and convert
  • max_length (int, optional): Maximum output length in chars (default: 50000)
batch_convert

Convert multiple files at once.

Parameters:

  • file_paths (array of strings, required): List of file paths
  • max_length_per_file (int, optional): Max length per file (default: 50000)
convert_directory

Convert all supported files in a directory.

Parameters:

  • dir_path (string, required): Path to directory
  • recursive (bool, optional): Include subdirectories (default: true)
  • max_files (int, optional): Maximum files to convert (default: 20)
extract_metadata

Extract metadata from a file without full conversion.

Parameters:

  • file_path (string, required): Path to the file
list_supported_formats

List all supported file extensions and their conversion methods.

Supported Formats

FormatExtensionMethod
PDF.pdfPyMuPDF (fitz)
Word.docxpython-docx
HTML.html, .htmmarkdownify
EPUB.epubebooklib
CSV.csvpandas → markdown table
JSON.jsonFormatted markdown code block
XML.xmlxmltodict → markdown
Excel.xlsxopenpyxl → markdown table
PowerPoint.pptxpython-pptx → markdown slides
Text.txt, .md, .rst, .logDirect passthrough
Images.png, .jpgpytesseract OCR (if available)

Support

If this tool helps your workflow, consider supporting its development:

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.