Document to markdown conversion
## MarkItDown MCP Server: Markdown Conversion Utility The **MarkItDown MCP Server** provides powerful Markdown conversion capabilities directly within Google Antigravity, enabling AI assistants to convert various file formats to clean Markdown programmatically. This integration brings document-to-Markdown conversion to your development workflow. ### Why MarkItDown MCP? - **Multi-Format Input**: Convert from PDF, Word, HTML, and other formats to Markdown - **Clean Output**: Generate well-structured, readable Markdown output - **Image Handling**: Extract and reference images from source documents - **Table Preservation**: Maintain table structures in Markdown format - **Metadata Extraction**: Capture document metadata as YAML frontmatter ### Key Features #### 1. Document Conversion ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Convert this Word document to clean Markdown format" }], tools=[{ "name": "markitdown_convert", "description": "Convert to Markdown" }] ) ``` #### 2. HTML to Markdown ```python # Convert HTML response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Convert this webpage HTML to Markdown preserving structure" }], tools=[{"name": "markitdown_html", "description": "HTML to Markdown"}] ) ``` #### 3. PDF Extraction ```python # Convert PDF to Markdown response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Extract content from this PDF and convert to Markdown" }], tools=[{"name": "markitdown_pdf", "description": "PDF to Markdown"}] ) ``` #### 4. Batch Processing ```python # Convert multiple files response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Convert all documents in this folder to Markdown files" }], tools=[{"name": "markitdown_batch", "description": "Batch conversion"}] ) ``` ### Configuration ```json { "mcpServers": { "markitdown": { "command": "npx", "args": ["-y", "@anthropic/mcp-markitdown"], "env": { "OUTPUT_STYLE": "github" } } } } ``` ### Use Cases **Documentation Migration**: Convert existing documentation to Markdown for static site generators. **Content Extraction**: Extract and repurpose content from various document formats. **Knowledge Base Building**: Convert documents to Markdown for knowledge management systems. **Blog Migration**: Convert Word or HTML content to Markdown for CMS platforms. The MarkItDown MCP Server brings document-to-Markdown conversion directly into your development workflow, enabling seamless content transformation.
{
"mcpServers": {
"markitdown": {
"mcpServers": {
"markitdown": {
"args": [
"markitdown-mcp"
],
"command": "uvx"
}
}
}
}
}