This directory contains technical API documentation for the MarkItDown MCP server.
Convert a single file to markdown format.
Parameters:
file_path(string, optional): Path to the file to convertfile_content(string, optional): Base64-encoded file contentfilename(string, required if using file_content): Original filename
Returns:
content: Array of content blocks with converted markdown
Convert all supported files in a directory to markdown.
Parameters:
input_directory(string, required): Path to input directoryoutput_directory(string, optional): Path to output directory
Returns:
content: Summary of conversion results
List all supported file formats for conversion.
Parameters: None
Returns:
content: List of supported file formats and descriptions
The server implements MCP protocol version 2024-11-05 with the following capabilities:
{
"name": "markitdown-server",
"version": "1.0.0"
}{
"tools": {}
}The server returns standard MCP error responses:
-32601: Method not found-32602: Invalid params-32603: Internal error
- File not found
- Permission denied
- Unsupported format
- Conversion failed
- Path traversal protection
- Safe directory restrictions
- Temporary file cleanup
- Request size limits
- DoS protection
- Memory usage optimization
- Large file handling
- Concurrent request management
- Resource cleanup