Aigroup Mdtoword Mcp

io.github.jackdark425由 GitHub 帳號 jackdark425 發布v4.0.2更新於 Oct 24, 2026

本地 Markdown 到 Word 文档转换工具,支持最新 MCP 协议特性、完整的页眉页脚页码功能、增强的表格功能、数据导入和数学公式支持,修复本地相对路径图片嵌入问题

已驗證STDIO僅桌面效率與工作流檔案與儲存

概覽

AI 產生的概覽

將 Markdown 內容或檔案轉換為帶樣式的 Word .docx 文件,支援表格、公式、圖片與 Mermaid 圖表。

可以做什麼
這個本機 MCP 伺服器用於從 Markdown 產生專業的 .docx 文件。主要工具 markdown_to_docx 接受 Markdown 文字或檔案路徑,以及檔名、輸出路徑與樣式設定,並可套用範本、標題與段落樣式、表格預設、圖片尺寸、程式碼區塊樣式,以及頁首、頁尾、頁碼與浮水印。另一個工具 table_data_to_markdown 可將 CSV 或 JSON 表格資料轉換為格式化的 Markdown 表格。它還提供範本、樣式指南與指標資源。
適用情境
適合需要由助理把 Markdown 轉成 Word 交付項目的情境,例如報告、學術論文或商務文件,尤其是對統一樣式、表格、公式或圖表有要求時。它是面向本機桌面的工具,而非託管服務。
執行需求
以 npm 套件(aigroup-mdtoword-mcp)形式透過 stdio 在本機執行。需要 Node.js 18 或更新版本以及 npm 8 或更新版本;可用 npx 啟動,也可從本機建置啟動。未宣告驗證、環境變數或標頭。
安裝前請注意
此伺服器會把 .docx 檔案寫入工具輸入中指定的路徑,因此應謹慎選擇輸出位置。它可以嵌入本機與遠端圖片,可能因此讀取本機檔案或取得遠端資源。README 也提到可選的 HTTP 與 Cloudflare Worker 部署方式,這不在預設的本機 stdio 設定範圍內。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Aigroup Mdtoword Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

AI Group Markdown to Word MCP Server

[License: MIT] [Node.js] [MCP Protocol] [Version]

Professional Markdown-to-Word conversion over MCP, with advanced styling, tables, formulas, images, Mermaid rendering, and HTTP deployment support.

Overview

aigroup-mdtoword-mcp is an MCP server for generating professional .docx documents from Markdown content.

It is designed for:

  • converting Markdown into structured Word documents
  • applying reusable templates and styling presets
  • rendering tables, formulas, images, and Mermaid diagrams
  • exposing both MCP and simplified HTTP endpoints
  • integrating with Claude Desktop and other MCP-compatible clients

Highlights

  • Markdown to DOCX conversion with document styling and layout control
  • Advanced formatting for headings, tables, lists, code blocks, and blockquotes
  • Math support for inline and block formulas
  • Image embedding for local and remote assets
  • Mermaid rendering with safe fallback to code blocks
  • Header / footer / page numbering / watermark support
  • Template, resource, and prompt support for guided usage
  • HTTP deployment options including Cloudflare Worker workflows

Quick Start

Requirements

  • Node.js >= 18
  • npm >= 8

Run with npx

bash
npx -y aigroup-mdtoword-mcp

Install locally

bash
git clone https://github.com/jackdark425/aigroup-mdtoword-mcp.gitcd aigroup-mdtoword-mcpnpm installnpm run buildnpm start

MCP Client Configuration

Claude Desktop / compatible MCP clients

json
{  "mcpServers": {    "markdown-to-word": {      "command": "npx",      "args": ["-y", "aigroup-mdtoword-mcp"]    }  }}

Local build output

json
{  "mcpServers": {    "markdown-to-word": {      "command": "node",      "args": ["/path/to/aigroup-mdtoword-mcp/dist/index.js"]    }  }}

Tools

markdown_to_docx

Converts Markdown content or a Markdown file into a .docx document.

Typical inputs include:

  • markdown
  • inputPath
  • filename
  • outputPath
  • styleConfig

table_data_to_markdown

Converts CSV or JSON tabular data into formatted Markdown tables.

Typical inputs include:

  • data
  • format
  • style
  • hasHeader

Resources

Templates

  • template://customer-analysis
  • template://academic
  • template://business
  • template://technical
  • template://minimal

Style Guides

  • style-guide://quick-start
  • style-guide://advanced
  • style-guide://templates

Metrics

  • metrics://conversion-stats
  • metrics://memory-usage

Styling Capabilities

The styling system supports:

  • document-level fonts, colors, and page layout
  • heading and paragraph styles
  • table presets and formatting
  • image sizing and placement
  • code block styling
  • headers, footers, page numbers, and watermarks

Included table styles cover common business, academic, financial, technical, and minimal report layouts.

Example

markdown
# Project Report
## Executive SummaryThis is a sample report with **bold text** and *italic text*.
- Feature 1: Complete Markdown support- Feature 2: Advanced styling system- Feature 3: Professional document layout
| Column 1 | Column 2 | Column 3 ||----------|----------|----------|| Data 1   | Data 2   | Data 3   || Data 4   | Data 5   | Data 6   |
Mathematical formula: $E = mc^2$
```mermaidflowchart TD  A[Start] --> B{Check input}  B -->|Valid| C[Generate DOCX]  B -->|Invalid| D[Return error]```

Deployment

HTTP server

bash
npm run server:http

Cloudflare Worker

bash
npm install -g wranglerwrangler loginwrangler deploy

Related endpoints typically include:

  • /health
  • /mcp
  • /convert
  • /.well-known/ai-plugin.json
  • /openapi.yaml
  • /openapi.json

See detailed guidance in docs/DEPLOYMENT_INSTRUCTIONS.md.

Project Structure

text
src/├── index.ts├── converter/├── template/├── types/└── utils/

Development

bash
npm run buildnpm test

Additional test commands:

  • npm run test:math
  • npm run test:images
  • npm run test:pages
  • npm run test:mermaid

License & Usage

This project is released under the MIT License.

In practical terms, MIT allows you to:

  • use this project in personal, internal, academic, or commercial scenarios
  • copy, modify, merge, publish, and distribute the code
  • build proprietary or open-source products on top of it
  • ship derivative works as long as the required copyright and license notice is preserved

Please keep in mind:

  • you must retain the original copyright notice and MIT license text in copies or substantial portions of the software
  • the software is provided "AS IS", without warranty of any kind
  • if you package this project into hosted services, desktop tools, plugins, or internal workflows, you are responsible for your own compliance, security review, and downstream usage constraints

See the full text in LICENSE.

Acknowledgments

Core Dependencies & Ecosystem

Community Inspiration

  • Inspired by the broader MCP community and ecosystem

Support

來源:README.md,提交 7a0b784

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v4.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分