Enhancement: Add MCP server support for document processing
I've been using markitdown for document conversion and it's great! One enhancement that would be very useful is adding MCP (Model Context Protocol) server support.
This would allow:
- AI coding assistants to directly use markitdown for document processing
- Seamless integration with tools like Claude Code and Cursor
- Real-time document conversion in AI workflows
I've created some MCP server configs as reference that demonstrate the pattern:
https://github.com/chengjunhua465-create/ai-dev-workflow-pack/blob/main/mcp-configs/
Would love to contribute to this if there's interest!
+1 on this — MCP server support for markitdown would be a great addition. A few implementation considerations:
-
Server pattern: The simplest approach would be a
stdiotransport MCP server that exposes a singleconvert_documenttool taking a file path or URL as input and returning the markdown content. This would work out of the box with Claude Desktop, Cursor, and other MCP clients without needing HTTP infrastructure. -
Tool definition sketch:
Tool: convert_document Input: { path: string, output_format?: "markdown" | "text" } Output: { content: string, metadata: { pages: number, format: string } } -
For AI coding workflows, having the converted markdown available directly in the tool result (rather than needing to write to a temp file) is much more ergonomic. Tools like AI Workdeck integrate document conversion as part of a broader workspace — having markitdown as an MCP tool would make it composable into these kinds of multi-tool workflows.
-
Existing patterns to reference: The
mcp-server-fetchandmcp-filesystemservers from the official MCP repos are good minimal examples of the stdio tool pattern. Markitdown's conversion logic is already well-encapsulated, so wrapping it in an MCP tool should be straightforward.
Happy to help with a PR if there's interest in the stdio approach.
This functionality is already available through the markitdown-mcp package, which exposes convert_to_markdown(uri) over STDIO, Streamable HTTP, and SSE. Installation and configuration instructions are in packages/markitdown-mcp/README.md. Closing as already supported.
Please re-open with more details if the current server is insufficient