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
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 installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Appeared in Searches
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Yorick-Ryu/md2doc-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server