md2doc - Markdown to DOCX MCP Server
A Model Context Protocol (MCP) server that converts Markdown text to DOCX format using an external conversion service.
Features
- Convert Markdown text to DOCX format
- Support for custom templates
- Multi-language support (English, Chinese, etc.)
- Automatic file download to user's Downloads directory
- Template listing and management
Usage
Cherry Studio
- Open Cherry Studio
- Go to Settings → MCP
- Add the server configuration:
{ "mcpServers": { "md2doc": { "command": "uvx", "args": ["md2doc"], "env": { "DEEP_SHARE_API_KEY": "your-api-key-here" } } } }
Claude Desktop
-
Open your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the md2doc server:
{ "mcpServers": { "md2doc": { "command": "uvx", "args": ["md2doc"], "env": { "DEEP_SHARE_API_KEY": "your-api-key-here" } } } }
-
Restart Claude Desktop
Command Line (Quick Start)
For immediate use without any client setup:
# Install and run the server
uvx md2doc
# Or with environment variable
DEEP_SHARE_API_KEY="your-api-key-here" uvx md2doc
Python Integration
You can also use md2doc directly in your Python projects:
import asyncio
from md2doc.api_client import ConversionAPIClient
from md2doc.models import ConvertTextRequest
async def convert_markdown():
client = ConversionAPIClient()
request = ConvertTextRequest(
content="# Hello World\n\nThis is **markdown** content.",
filename="example",
language="zh",
template_name="templates",
remove_hr=False,
compat_mode=True
)
response = await client.convert_text(request)
if response.success:
print(f"File saved to: {response.file_path}")
# Run the conversion
asyncio.run(convert_markdown())
Other MCP Clients
The server works with any MCP-compatible client. Configure it to run:
uvx md2doc
With environment variables:
DEEP_SHARE_API_KEY="your-api-key-here" uvx md2doc
Cloud Deployment (Remote Server)
When deploying this MCP server on a cloud server (VPS/Docker), set MCP_SAVE_REMOTE=true to return a temporary download link instead of saving to a local directory:
# In your cloud environment
export DEEP_SHARE_API_KEY="your-api-key-here"
export MCP_SAVE_REMOTE=true
uvx md2doc
The server will provide a download link for the converted document.
API Key
Free Trial API Key
Use this key for testing:
f4e8fe6f-e39e-486f-b7e7-e037d2ec216f
Purchase API Key - Super Low Price!
Available Tools
convert_markdown_to_docx: Convert markdown text to DOCXlist_templates: Get available templates by language
License
MIT
Metadata
Release files for md2doc 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| md2doc-0.1.3.tar.gz | 778.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| md2doc-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 785.2 kB
Release files / md2doc-0.1.3.tar.gz
| Download URL | md2doc-0.1.3.tar.gz |
|---|---|
| Size | 778.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccafe6e9812a408bb32dd92c1208f714cd3c8a2f759ea8650578a1c6ae9be9c4
|
|
BLAKE2b-256 checksum How to use checksums |
5ecb574d4a3821c6773b261d4ea3561069d47594d81f38bb4d673ff9832dcf23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|
Release files / md2doc-0.1.3-py3-none-any.whl
| Download URL | md2doc-0.1.3-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4d22f62f6367ecb1289514ce0c716d237ea5db105aff67e5e23797dac75e907
|
|
BLAKE2b-256 checksum How to use checksums |
b28826e84db050f8d3bc785779ce960268defcd89675c83ca3f8782aecbb5717
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|
Security for md2doc 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.