This server converts Markdown documents to professional Word (DOCX) files with extensive styling, formatting, and layout capabilities through MCP tools and HTTP APIs.
Document Conversion: Convert Markdown content to Word with full syntax support (headings, lists, tables, code blocks, blockquotes), LaTeX math formulas (inline and block), and image embedding from local files, URLs, or Base64 with automatic scaling.
Styling & Templates: Apply comprehensive styling with customizable fonts, colors, spacing, and themes. Use preset templates for academic papers, business reports, technical documentation, customer analysis, and minimal designs.
Table Processing: Create tables from CSV or JSON data with 12+ preset styles (minimal, professional, striped, grid, elegant, colorful, compact, fresh, tech, report, financial, academic) and advanced features like zebra striping, custom column widths, and cell alignment.
Document Layout: Configure page setup (size, orientation, margins), headers/footers with flexible page numbering and support for different first/odd/even pages, automatic table of contents with configurable levels, and text watermarks with customizable rotation, transparency, and positioning.
Integration & Deployment: Operates as an MCP server supporting STDIO and Streamable HTTP transports, provides RESTful HTTP API endpoints with OpenAPI documentation, offers OpenAI plugin compatibility, and supports deployment to Cloudflare Workers for cloud-based conversion services.
Output Options: Specify output filenames and directories, combine templates with custom configurations, and receive detailed conversion statistics including file size and success status.
Supports LaTeX mathematical formulas with inline and block rendering, converting math expressions into professional Word document formatting.
Converts Markdown documents to professionally formatted Word documents with support for full Markdown syntax including headings, lists, tables, code blocks, and blockquotes.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AI Group Markdown to Word MCP Serverconvert my project report markdown to a Word document with academic template"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AI Group Markdown to Word MCP Server
A comprehensive Model Context Protocol (MCP) server for converting Markdown documents to professional Word documents with advanced formatting, styling, and layout capabilities.
๐ Features
Core Conversion
Full Markdown Support: Complete Markdown syntax including headings, paragraphs, lists, tables, code blocks, and blockquotes
Advanced Styling System: Comprehensive style configuration with themes, templates, and custom styling
Professional Document Layout: Page setup, margins, orientation, and document structure
Advanced Features
Mathematical Formulas: LaTeX math formula support with inline and block rendering
Table Processing: Advanced table styling with 12+ preset styles, CSV/JSON data import
Image Support: Local and remote image embedding with automatic scaling and formatting
Header & Footer: Complete header/footer system with page numbers, total pages, and custom content
Table of Contents: Automatic TOC generation with configurable levels and styling
Watermarks: Text watermarks with configurable position, rotation, and transparency
MCP Integration
Multiple Transports: Support for STDIO and Streamable HTTP transports
Tool-based Interface: Clean MCP tool interface for document conversion
Resource Templates: Pre-built document templates for various use cases
Prompt System: Intelligent prompts for user guidance and troubleshooting
HTTP API & OpenAI Plugin Support
Dual API Support: Both MCP protocol and simplified HTTP API endpoints
OpenAI Plugin Compatible: Full OpenAI plugin specification support
RESTful Endpoints: Simple REST API for easy integration
OpenAPI Specification: YAML and JSON API documentation available
๐ Quick Start
Installation
Usage with Claude Desktop
Add to your Claude Desktop configuration (claude_desktop_config.json):
Usage with Other MCP Clients
๐ ๏ธ Available Tools
markdown_to_docx
Convert Markdown content to Word document with full styling support.
Input Schema:
Example Usage:
table_data_to_markdown
Convert structured data (CSV/JSON) to formatted Markdown tables.
Input Schema:
๐ Available Resources
Templates
template://customer-analysis- Business analysis report templatetemplate://academic- Academic paper templatetemplate://business- Professional business reporttemplate://technical- Technical documentationtemplate://minimal- Clean minimal template
Style Guides
style-guide://quick-start- Quick styling referencestyle-guide://advanced- Advanced styling optionsstyle-guide://templates- Template usage guide
Performance Metrics
metrics://conversion-stats- Conversion performance datametrics://memory-usage- Memory usage statistics
๐จ Styling System
Basic Styling
Advanced Features
Theme System: Color and font variables for consistent branding
Header/Footer: Custom headers and footers with page numbers
Watermarks: Text watermarks for document protection
Table Styling: 12+ preset table styles with zebra striping
Mathematical Formulas: Professional math formula rendering
๐ Table Styles
The server includes 12 professionally designed table styles:
minimal - Clean modern style with thin borders
professional - Business style with dark headers
striped - Zebra striping for better readability
grid - Complete grid borders for structured data
elegant - Double borders for formal documents
colorful - Colorful headers for vibrant presentations
compact - Minimal margins for data-dense tables
fresh - Green theme for environmental reports
tech - Blue tech theme for technical documents
report - Formal report style with double borders
financial - Right-aligned numbers for financial data
academic - Academic paper style
๐ง Configuration
Style Configuration
Full style configuration supports:
Document-level settings (fonts, colors, page setup)
Paragraph and heading styles
Table and list formatting
Image and code block styling
Header/footer configuration
Watermark settings
Transport Options
STDIO: Standard input/output for local execution
Streamable HTTP: HTTP transport for remote servers
๐ Project Structure
๐งช Testing
Run the test suite:
Available test scenarios:
Mathematical formula conversion
Local image embedding
Page numbering and headers/footers
Table styling and data import
Complete document conversion
๐ Performance
Fast Conversion: Optimized processing for large documents
Memory Efficient: Stream-based processing for minimal memory usage
Production Ready: Robust error handling and logging
Scalable: Handles documents of any size efficiently
๐ค Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
Built with the Model Context Protocol SDK
Uses docx for Word document generation
Inspired by the MCP community and ecosystem
โ๏ธ Cloudflare Worker Deployment
This project supports deployment to Cloudflare Workers. Follow these steps to deploy:
Prerequisites
Install Node.js (version >= 18.0.0)
Install Wrangler CLI:
npm install -g wranglerLogin to Cloudflare:
wrangler login
Deployment Steps
Update
wrangler.tomlwith your account ID:[env.production] account_id = "your-account-id-here" # Replace with your Cloudflare account IDDeploy to Cloudflare Workers:
wrangler deploy
API Endpoints
After deployment, your service will be accessible via:
https://your-worker.your-subdomain.workers.dev/- Main info pagehttps://your-worker.your-subdomain.workers.dev/health- Health checkhttps://your-worker.your-subdomain.workers.dev/mcp- MCP protocol endpointhttps://your-worker.your-subdomain.workers.dev/convert- Simplified HTTP APIhttps://your-worker.your-subdomain.workers.dev/.well-known/ai-plugin.json- OpenAI plugin manifesthttps://your-worker.your-subdomain.workers.dev/openapi.yaml- OpenAPI specification (YAML)https://your-worker.your-subdomain.workers.dev/openapi.json- OpenAPI specification (JSON)https://your-worker.your-subdomain.workers.dev/logo.png- Plugin logo
For detailed deployment instructions, see docs/DEPLOYMENT_INSTRUCTIONS.md.
๐ Support
Issues: GitHub Issues
Documentation: Full Documentation
Examples: Example Files
AI Group Markdown to Word MCP Server - Professional document conversion powered by MCP protocol.