mammoth-mcp
A Model Context Protocol (MCP) server for converting DOCX files to HTML using mammoth.js.
Features
convert_docx_to_html: Convert DOCX files to clean HTML
convert_docx_to_html_with_images: Convert DOCX files to HTML with embedded base64 images
Installation
Development
Usage
Configure MCP Client
Add the server to your MCP client configuration (e.g., Claude Desktop):
Or if installed globally:
Available Tools
convert_docx_to_html
Convert a DOCX file to HTML.
Parameters:
filePath(string, required): Absolute path to the DOCX file
Example:
convert_docx_to_html_with_images
Convert a DOCX file to HTML with images embedded as base64 data URIs.
Parameters:
filePath(string, required): Absolute path to the DOCX file
Example:
How It Works
This MCP server uses mammoth.js to convert DOCX documents to clean, semantic HTML. The conversion preserves:
Headings
Paragraphs
Lists
Tables
Bold/italic/underline formatting
Images (when using the
with_imagesvariant)
LICENSE
MIT