Skip to main content
Glama

md2doc - Markdown to DOCX MCPサーバー

PyPI version MCP Badge License: MIT

外部変換サービスを使用してMarkdownテキストをDOCX形式に変換するModel Context Protocol (MCP) サーバーです。

機能

  • MarkdownテキストをDOCX形式に変換

  • カスタムテンプレートのサポート

  • 多言語サポート(英語、中国語など)

  • ユーザーのダウンロードディレクトリへの自動ファイルダウンロード

  • テンプレートのリスト表示と管理

使用方法

Cherry Studio

  1. Cherry Studioを開く

  2. 設定 → MCP に移動

  3. サーバー設定を追加:

    {
      "mcpServers": {
        "md2doc": {
          "command": "uvx",
          "args": ["md2doc"],
          "env": {
            "DEEP_SHARE_API_KEY": "your-api-key-here"
          }
        }
      }
    }

Claude Desktop

  1. Claude Desktopの設定ファイルを開く:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

  2. md2docサーバーを追加:

    {
      "mcpServers": {
        "md2doc": {
          "command": "uvx",
          "args": ["md2doc"],
          "env": {
            "DEEP_SHARE_API_KEY": "your-api-key-here"
          }
        }
      }
    }
  3. Claude Desktopを再起動

コマンドライン (クイックスタート)

クライアント設定なしですぐに使用する場合:

# Install and run the server
uvx md2doc

# Or with environment variable
DEEP_SHARE_API_KEY="your-api-key-here" uvx md2doc

Python統合

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-e037d2ec216f

APIキーの購入

利用可能なツール

  • convert_markdown_to_docx: MarkdownテキストをDOCXに変換

  • list_templates: 言語ごとの利用可能なテンプレートを取得

ライセンス

MIT

A
license - permissive license
-
quality - not tested
D
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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