mcp-markdown-to-docx
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π MCP Markdown to DOCX Server
An MCP (Model Context Protocol) server that empowers your AI agents (like Claude Desktop or Cursor) to autonomously generate beautifully styled, production-ready Microsoft Word (.docx) documents from Markdown.
π The Concept: AI-Driven Document Formatting
Most AI agents can write text, but delivering a finished, clean, and properly formatted file is often a manual secondary step.
This MCP server bridges that gap. It gives your AI the ability to not only write your content but also fully control document styling. When the AI uses this tool, it can decide on fonts, header colors, margins, and typography directly through parameters. The result? A perfectly formatted Word document saved directly to your local drive, ready to be sent or presented.
No more copy-pasting raw text into Word and manually tweaking headers. Let the AI do the secretarial work.
Related MCP server: Word MCP
β¨ Features
Markdown to DOCX Conversion: Seamlessly translates standard Markdown (including tables, lists, and code blocks) into native Word elements.
Autonomous Styling: AI agents can dynamically inject style settings (
font_family,h1_color,body_size_pt, etc.) via JSON parameters.Local File Saving: Generates the
.docxfile and saves it securely to your local machine (or any designated directory).FastMCP Integration: Built using the official
mcpPython SDK for robuststdiocommunication with clients like Claude Desktop.
π Installation
Option 1: Using uv (Recommended)
You don't even need to install it manually. Just use uvx:
uvx mcp-markdown-to-docxOption 2: Standard Python installation
Clone the repository:
git clone https://github.com/Baptiste4321/mcp-markdown-to-docx.git cd mcp-markdown-to-docxInstall the package: Ensure you have Python 3.10 or higher installed.
pip install .
βοΈ Configuration (Claude Desktop)
To connect this tool to Claude Desktop, add the following configuration to your claude_desktop_config.json file.
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"markdown-to-docx": {
"command": "uvx",
"args": [
"mcp-markdown-to-docx"
],
"env": {
"MARKDOWN_API_URL": "https://markdown-to-docx.pfoly.com",
"MARKDOWN_API_KEY": "mkdn_votre_cle_api_secrete_ici"
}
}
}
}Security Note: To get an API Key, go to the web interface of your markdown-to-docx instance, open the Settings > "SΓ©curitΓ© & API", and click "Generate API Key". The key is only displayed once and stored securely via SHA-256 hash.
Note: If you installed it manually via pip instead of uv, change the command to
mcp-markdown-to-docxand remove the args.
π¬ Example Prompts
Once configured, simply talk to your AI Agent:
"Write a comprehensive report about the impact of AI on modern healthcare. Format the output as a Word document, use 'Montserrat' font, and make all main headers dark blue. Save it to my Desktop."
"Take these rough meeting notes, expand them into a professional meeting minutes document, and generate a DOCX file named 'Q3_Meeting_Minutes'."
π License
MIT License. Feel free to fork and modify!
This server cannot be deployed
Maintenance
Related MCP Connectors
Use your own Word templates to convert Markdown β DOCX/PDF/HTML from any MCP-compatible AI.
Turn Markdown and AI answers into Word (.docx) with native equations, or into PDF.
Convert, create and edit Word, PowerPoint, Excel and PDF documents from any AI agent.
Document to Markdown: convert Word, Excel, PowerPoint and PDF files to Markdown for an LLM.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables creation and management of Word documents from markdown content, with support for multiple templates and conversion of chat conversations to formatted Word documents.-
- AlicenseBqualityDmaintenanceEnables programmatic generation of Microsoft Word documents (.docx) from AI-generated text and data, with support for Markdown formatting, tables, headers, and rich document elements that are saved directly to the local file system.1ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, read, modify, and convert Word documents without Microsoft Word, supporting 18 tools for document operations, paragraph manipulation, table management, formatting, and conversion between multiple formats including PDF, HTML, and Markdown.6MIT
- AlicenseBqualityDmaintenanceEnables AI agents to generate professional Word and PDF documents with support for Markdown, syntax highlighting, and smart pagination. It features automatic JSON detection and responsive A4 formatting for creating high-quality technical reports and manuals.2180 npm9MIT