md2doc
md2doc - Markdown zu DOCX MCP-Server
Ein Model Context Protocol (MCP)-Server, der Markdown-Text mithilfe eines externen Konvertierungsdienstes in das DOCX-Format umwandelt.
Funktionen
Konvertierung von Markdown-Text in das DOCX-Format
Unterstützung für benutzerdefinierte Vorlagen
Mehrsprachige Unterstützung (Englisch, Chinesisch usw.)
Automatischer Dateidownload in das Downloads-Verzeichnis des Benutzers
Auflistung und Verwaltung von Vorlagen
Related MCP server: flexberry-markitdown-mcp
Verwendung
Cherry Studio
Öffnen Sie Cherry Studio
Gehen Sie zu Einstellungen → MCP
Fügen Sie die Serverkonfiguration hinzu:
{ "mcpServers": { "md2doc": { "command": "uvx", "args": ["md2doc"], "env": { "DEEP_SHARE_API_KEY": "your-api-key-here" } } } }
Claude Desktop
Öffnen Sie Ihre Claude Desktop-Konfigurationsdatei:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Fügen Sie den md2doc-Server hinzu:
{ "mcpServers": { "md2doc": { "command": "uvx", "args": ["md2doc"], "env": { "DEEP_SHARE_API_KEY": "your-api-key-here" } } } }Starten Sie Claude Desktop neu
Befehlszeile (Schnellstart)
Für die sofortige Nutzung ohne Client-Einrichtung:
# Install and run the server
uvx md2doc
# Or with environment variable
DEEP_SHARE_API_KEY="your-api-key-here" uvx md2docPython-Integration
Sie können md2doc auch direkt in Ihren Python-Projekten verwenden:
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())Andere MCP-Clients
Der Server funktioniert mit jedem MCP-kompatiblen Client. Konfigurieren Sie ihn wie folgt:
uvx md2docMit Umgebungsvariablen:
DEEP_SHARE_API_KEY="your-api-key-here" uvx md2docCloud-Bereitstellung (Remote-Server)
Wenn Sie diesen MCP-Server auf einem Cloud-Server (VPS/Docker) bereitstellen, setzen Sie MCP_SAVE_REMOTE=true, um einen temporären Download-Link anstelle des Speicherns in einem lokalen Verzeichnis zurückzugeben:
# In your cloud environment
export DEEP_SHARE_API_KEY="your-api-key-here"
export MCP_SAVE_REMOTE=true
uvx md2docDer Server stellt einen Download-Link für das konvertierte Dokument bereit.
API-Schlüssel
Kostenloser Test-API-Schlüssel
Verwenden Sie diesen Schlüssel zum Testen:
f4e8fe6f-e39e-486f-b7e7-e037d2ec216fAPI-Schlüssel kaufen
Verfügbare Tools
convert_markdown_to_docx: Konvertiert Markdown-Text in DOCXlist_templates: Ruft verfügbare Vorlagen nach Sprache ab
Lizenz
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Document to Markdown MCP server: PDF, Word, PowerPoint, Excel and HTML, with OCR for large files.
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server that enables bidirectional conversion between Markdown and PDF formats, including text extraction from specific pages and metadata retrieval. It supports customizable PDF output sizes and document processing through standard MCP tools.51-
- AlicenseNot gradedqualityCmaintenanceMCP server for converting various file formats (PDF, DOCX, images, audio, etc.) to Markdown using Microsoft MarkItDown, with support for large files and Cyrillic text.1MIT
- AlicenseCqualityDmaintenanceA unified MCP server for document processing that enables creating, editing, and converting Word documents (DOCX), PDFs, Markdown, and images, with support for templates, formatting, and batch operations.100MIT
- FlicenseAqualityDmaintenanceMCP server for generating professionally formatted Word documents (.docx). Supports corporate templates (colors, fonts, logo), headers/footers, and Markdown conversion.4-