markitdown-mcp
Verified Safeby trsdn
Overview
A Model Context Protocol (MCP) server for converting over 29 file formats (PDFs, Office docs, images, audio, etc.) into clean, structured Markdown, primarily for integration with AI workflows and MCP clients like Claude Desktop.
Installation
markitdown-mcpEnvironment Variables
- MAX_FILE_SIZE_MB
- CONVERSION_TIMEOUT
- SAFE_DIRECTORIES
- LOG_LEVEL
- MCP_DEBUG
Security Notes
The server demonstrates a high commitment to security with robust input validation, content sanitization (XML, JSON, CSV), file size limits, and timeout protections. Path traversal attacks are explicitly mitigated through `validate_and_sanitize_path`, which restricts operations to defined 'safe directories' and blocks dangerous file types/patterns. Base64 content is validated and processed via temporary files with proper cleanup. Error messages are sanitized to prevent information disclosure. Extensive security testing is documented, covering DoS, malicious files, and path traversal. Communication is via stdin/stdout, limiting network attack surface. The core MarkItDown library's security profile is external to this audit but assumed to be robust. One minor point is that the `secure_compare` function is defined but its usage in the main server logic isn't evident in the provided code.
Similar Servers
deepl-mcp-server
This server provides translation and rephrasing capabilities using the DeepL API, integrated as a Model Context Protocol (MCP) tool for AI clients.
claude-faf-mcp
Provides AI-optimized context for software projects to large language models, enhancing collaboration and project understanding via 50+ specialized tools within Claude Desktop workflows.
pptx-generator-mcp
Generate professional PowerPoint presentations from Markdown input via a Model Context Protocol (MCP) server integrated with Claude Desktop.
markitdown-mcp
A Model Context Protocol (MCP) server designed to convert various document and media file formats into Markdown, primarily for integration with AI workflows like Claude Desktop.