Converts Markdown to Word documents over MCP, handling the full pipeline from parsing to styled DOCX output. Exposes markdown_to_docx for direct conversion with customizable fonts, colors, and page layout, plus table_data_to_markdown for turning CSV or JSON into formatted tables. Renders math formulas, embeds local and remote images, and converts Mermaid diagrams to graphics with fallback support. Ships with preset templates for academic, business, and technical reports. Also supports headers, footers, page numbers, and watermarks. Runs via npx or as a local build, and includes HTTP deployment options for Cloudflare Workers if you need REST access alongside MCP.
Professional Markdown-to-Word conversion over MCP, with advanced styling, tables, formulas, images, Mermaid rendering, and HTTP deployment support.
aigroup-mdtoword-mcp is an MCP server for generating professional .docx documents from Markdown content.
It is designed for:
npx -y aigroup-mdtoword-mcp
git clone https://github.com/jackdark425/aigroup-mdtoword-mcp.git
cd aigroup-mdtoword-mcp
npm install
npm run build
npm start
{
"mcpServers": {
"markdown-to-word": {
"command": "npx",
"args": ["-y", "aigroup-mdtoword-mcp"]
}
}
}
{
"mcpServers": {
"markdown-to-word": {
"command": "node",
"args": ["/path/to/aigroup-mdtoword-mcp/dist/index.js"]
}
}
}
markdown_to_docxConverts Markdown content or a Markdown file into a .docx document.
Typical inputs include:
markdowninputPathfilenameoutputPathstyleConfigtable_data_to_markdownConverts CSV or JSON tabular data into formatted Markdown tables.
Typical inputs include:
dataformatstylehasHeadertemplate://customer-analysistemplate://academictemplate://businesstemplate://technicaltemplate://minimalstyle-guide://quick-startstyle-guide://advancedstyle-guide://templatesmetrics://conversion-statsmetrics://memory-usageThe styling system supports:
Included table styles cover common business, academic, financial, technical, and minimal report layouts.
# Project Report
## Executive Summary
This is a sample report with **bold text** and *italic text*.
- Feature 1: Complete Markdown support
- Feature 2: Advanced styling system
- Feature 3: Professional document layout
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Data 1 | Data 2 | Data 3 |
| Data 4 | Data 5 | Data 6 |
Mathematical formula: $E = mc^2$
```mermaid
flowchart TD
A[Start] --> B{Check input}
B -->|Valid| C[Generate DOCX]
B -->|Invalid| D[Return error]
```
npm run server:http
npm install -g wrangler
wrangler login
wrangler deploy
Related endpoints typically include:
/health/mcp/convert/.well-known/ai-plugin.json/openapi.yaml/openapi.jsonSee detailed guidance in docs/DEPLOYMENT_INSTRUCTIONS.md.
src/
├── index.ts
├── converter/
├── template/
├── types/
└── utils/
npm run build
npm test
Additional test commands:
npm run test:mathnpm run test:imagesnpm run test:pagesnpm run test:mermaidThis project is released under the MIT License.
In practical terms, MIT allows you to:
Please keep in mind:
See the full text in LICENSE.
Model Context Protocol SDK
docx by Dolan Miu
csoai-org/pdf-document-mcp
xt765/mcp-document-converter
io.github.xjtlumedia/markdown-formatter
io.github.ai-aviate/better-notion
suekou/mcp-notion-server
meterlong/mcp-doc