Md2doc

Md2doc

Convert Markdown text to DOCX format using an external conversion service

4
Stars
1
Forks
0
Releases

Overview

md2doc is an MCP server that converts Markdown text into DOCX documents by delegating the actual formatting to an external conversion service. It supports applying user-provided templates and offers multi-language support to tailor the output for different locales, including English and Chinese. The server can be configured through common MCP clients and CLI tools; an example configuration uses uvx with an API key loaded from the DEEP_SHARE_API_KEY environment variable for authentication with the conversion service. It exposes tools such as convert_markdown_to_docx and list_templates to perform conversion tasks and to discover available templates by language. A quick start path includes integration with Cherry Studio and Claude Desktop by adding an md2doc entry to their MCP configurations, or via a simple command line invocation uvx md2doc. A Python integration example shows how to construct a ConvertTextRequest with content, filename, language, and template_name, and then call the ConversionAPIClient to perform the conversion. The project provides a free trial API key for testing and emphasizes template listing and management as part of its MCP workflow. Output files can be downloaded automatically to the user’s Downloads directory after successful conversion.

Details

Owner
Yorick-Ryu
Language
Python
License
Updated
2025-12-07

Features

Convert Markdown to DOCX

Converts Markdown text to DOCX format using an external conversion service.

Template support

Supports applying custom templates when generating DOCX files.

Multi-language support

Provides multi-language support including English, Chinese.

Automatic file download

Automatically downloads the generated DOCX file to the user’s Downloads directory.

Template listing and management

Allows listing and managing available templates by language.

Audience

Cherry Studio usersConfigure md2doc in Cherry Studio to convert Markdown to DOCX via external service.
Claude Desktop usersAdd md2doc to Claude Desktop config to enable Markdown to DOCX conversion.
DevelopersIntegrate md2doc into Python projects using the client library for Markdown to DOCX.
MCP clientsAny MCP-compatible client can run md2doc via uvx with a configured API key.
Command Line usersRun md2doc directly from the command line using uvx md2doc for quick conversion.

Tags

md2docmarkdownDOCXMCPtemplatesmulti-languagedownloadconversionexternal-serviceCLIuvxapi_keypythonintegration