mcp-server-convert
๐ MCP Server for Document Conversion โ PDF, DOCX, HTML, EPUB to Markdown | 6 Tools, Docker-ready
Documentation
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_convertConfigure 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-convertConfigure 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
| Format | Extension | Method |
|---|---|---|
| `.pdf` | PyMuPDF (fitz) | |
| Word | `.docx` | python-docx |
| HTML | `.html`, `.htm` | markdownify |
| EPUB | `.epub` | ebooklib |
| CSV | `.csv` | pandas โ markdown table |
| JSON | `.json` | Formatted markdown code block |
| XML | `.xml` | xmltodict โ markdown |
| Excel | `.xlsx` | openpyxl โ markdown table |
| PowerPoint | `.pptx` | python-pptx โ markdown slides |
| Text | `.txt`, `.md`, `.rst`, `.log` | Direct passthrough |
| Images | `.png`, `.jpg` | pytesseract OCR (if available) |
Support
If this tool helps your workflow, consider supporting its development:
- GitHub Sponsors: Sponsor via Liberapay
- ETH: `0xddD9f45e14c92846f47C1c1A4431aC2b41D87273`
License
MIT
Frequently asked questions
What is mcp-server-convert?
mcp-server-convert is ๐ MCP Server for Document Conversion โ PDF, DOCX, HTML, EPUB to Markdown | 6 Tools, Docker-ready
How do I install mcp-server-convert?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-server-convert open source?
Yes โ it is hosted on GitHub at https://github.com/demo112/mcp-server-convert.
Related MCP tools
AI-powered OSINT agent with interactive REPL, MCP server, and CLI. 19 tools. Works with Claude, GPT-4, or local models. For authorized security research only.
Open-source coding agent memory. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT.
Give your AI agents persistent, collective memory โ with deduplicating absorb, supersession lineage, semantic search, and a graph UI. Speaks MCP.
Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.
The go-to web for your AI coding agent โ local-first search, fetch, crawl & research over MCP. No API keys, no cloud, $0/query. Public beta.
Give your AI agent eyes for PDFs โ structured text, tables, OCR, visual evidence, and page-level citations via MCP. Native Rust, local-first.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP