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 分