md2doc
md2doc - Markdown to DOCX MCPサーバー
外部変換サービスを使用してMarkdownテキストをDOCX形式に変換するModel Context Protocol (MCP) サーバーです。
機能
MarkdownテキストをDOCX形式に変換
カスタムテンプレートのサポート
多言語サポート(英語、中国語など)
ユーザーのダウンロードディレクトリへの自動ファイルダウンロード
テンプレートのリスト表示と管理
Related MCP server: flexberry-markitdown-mcp
使用方法
Cherry Studio
Cherry Studioを開く
設定 → MCP に移動
サーバー設定を追加:
{ "mcpServers": { "md2doc": { "command": "uvx", "args": ["md2doc"], "env": { "DEEP_SHARE_API_KEY": "your-api-key-here" } } } }
Claude Desktop
Claude Desktopの設定ファイルを開く:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
md2docサーバーを追加:
{ "mcpServers": { "md2doc": { "command": "uvx", "args": ["md2doc"], "env": { "DEEP_SHARE_API_KEY": "your-api-key-here" } } } }Claude Desktopを再起動
コマンドライン (クイックスタート)
クライアント設定なしですぐに使用する場合:
# Install and run the server
uvx md2doc
# Or with environment variable
DEEP_SHARE_API_KEY="your-api-key-here" uvx md2docPython統合
md2docをPythonプロジェクトで直接使用することも可能です:
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())その他のMCPクライアント
このサーバーはMCP互換クライアントであればどれでも動作します。以下のように設定して実行してください:
uvx md2doc環境変数を使用する場合:
DEEP_SHARE_API_KEY="your-api-key-here" uvx md2docクラウドデプロイメント (リモートサーバー)
このMCPサーバーをクラウドサーバー(VPS/Docker)にデプロイする場合、MCP_SAVE_REMOTE=true を設定すると、ローカルディレクトリに保存する代わりに一時的なダウンロードリンクが返されます:
# In your cloud environment
export DEEP_SHARE_API_KEY="your-api-key-here"
export MCP_SAVE_REMOTE=true
uvx md2docサーバーは変換されたドキュメントのダウンロードリンクを提供します。
APIキー
無料トライアルAPIキー
テストにはこのキーを使用してください:
f4e8fe6f-e39e-486f-b7e7-e037d2ec216fAPIキーの購入
利用可能なツール
convert_markdown_to_docx: MarkdownテキストをDOCXに変換list_templates: 言語ごとの利用可能なテンプレートを取得
ライセンス
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-