原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Markdown to Word

作者:benbalter版本 0.5.0i★ –i在你的电脑上运行
注册名称io.github.benbalter/markdown-to-word

安装

概览

作者提供的说明(英文原文)

Convert GitHub Flavored Markdown to Word (.docx) documents in Node or the browser

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

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

在终端中运行这条命令

claude mcp add markdown-to-word -- npx -y markdown-to-word mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

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

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "markdown-to-word": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "markdown-to-word",
        "mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 benbalter 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 3539 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 3539 个服务器的 89% 更新
  • 基础检查结果等于或优于此分类中其他 3539 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Markdown to Word 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.5.0)于3天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT7天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT4天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Markdown to Word

Convert GitHub Flavored Markdown to a formatted Word (.docx) document, entirely in your browser, at [md2word.app](https://md2word.app). Nothing is uploaded.

The same converter is on npm as markdown-to-word: a command-line tool, a Node library, and an MCP server for AI agents, no clone required:

npx markdown-to-word input.md

It's the mirror image of word2md.com (word-to-markdown-js), which goes the other way, and the successor to markdown_to_word, the original Ruby gem and web demo, first published in 2015 and now archived.

Usage

  1. Go to md2word.app.
  2. Drop a .md file anywhere on the page, choose one, or paste Markdown. AI chat responses (ChatGPT, Claude, and others) are Markdown, so they paste in as-is.
  3. A dropped file converts right away. For pasted text, click Convert to Word, or press Ctrl/⌘+Enter.
  4. Click Download .docx, or Copy formatted text to paste straight into Word or Google Docs with the formatting intact.

The document is named after its first heading, which also becomes its title.

What converts

MarkdownIn Word
# to ###### headingsHeading 1–6 styles
**bold**, *italic*, ~~strikethrough~~The same formatting
Bulleted and numbered lists, nestedWord lists
- [x] task lists☒ (done) and ☐ (to do) items, since Word can't show checkboxes from HTML
TablesThin borders, a bold header row that repeats on each page, and the column alignment from the Markdown
[links](https://example.com)Clickable hyperlinks
`inline code` and fenced code blocksMonospace; code blocks keep their line breaks
> block quotesLeft-aligned paragraphs, indented one step per level of nesting
--- horizontal rulesA line across the page
[^1] footnotesSuperscript numbers, with the notes as a numbered list after a line at the end of the document (not Word footnotes)
Embedded, when the browser can fetch them; otherwise the alt text, linked to the image (see Limitations)
, , and other inline HTMLThe text, with in the code font and highlighted

As on GitHub, a single newline inside a paragraph is joined into the same line, so hard-wrapped files convert to normal paragraphs. End a line with two spaces or a backslash to force a line break.

Optional Font Presets

Conversions use Word's standard styling by default. Choosing Chinese official document (公文) from the Style menu (always shown on the Chinese page, and elsewhere once the pasted text is mostly Chinese) rewrites the generated document to the layout of GB/T 9704-2012 《党政机关公文格式》. Each level gets an East Asian face and a 公文 size alongside Times New Roman:

LevelFont sizeChinese charactersLatin letters and digits
Body三号 (16pt)仿宋Times New Roman
Heading 1二号 (22pt)方正小标宋简体Times New Roman
Heading 2三号 (16pt)黑体Times New Roman
Heading 3三号 (16pt)楷体Times New Roman
Heading 4三号 (16pt)仿宋 (bold)Times New Roman
Heading 5-6三号 (16pt)仿宋Times New Roman

The preset also sets the page:

  • Paper and margins (5.1, 5.2.1): A4, with a 37mm top margin (天头) and a 28mm left margin (订口) around a 156 × 225mm text block (版心).
  • 22 lines of 28 characters (5.2.3): a Word document grid (文档网格) with exact line spacing at its pitch, 28.95pt. Widow control (孤行控制) is off, so it can't push a line to the next page and leave 21.
  • Indent (7.3.3): paragraphs, and the headings below the title, start two characters in (首行缩进 2 字符). Table cells, list items, and code blocks don't.
  • Title (7.3.1): Heading 1 is centered.
  • Spacing: 段前段后 0 行 on every level.

The app remembers your choice in this browser, and suggests the preset when the text you paste is mostly Chinese.

Word resolves a typeface per character class, so English words and numbers inside a Chinese sentence stay in Times New Roman. The fonts must be installed on the machine that opens the document. Some of the choices go beyond the standard:

  • The standard names no Latin font. Times New Roman for Latin letters and digits is common practice.
  • The standard says 小标宋体, not 方正小标宋简体 specifically. 方正小标宋简体 is a commercial Founder font that most machines don't have, so Word substitutes another font for the title unless it's installed.
  • Heading 4, the standard's third level (1.), is bold, which the standard doesn't ask for: it generally sets its third and fourth levels in plain 仿宋. Bolding that level is how these documents are written in practice. Headings 5 and 6 stay plain and rely on their numbers ((1) and ①) to stand out, as in a printed 公文.

Page numbers (7.5) aren't added yet; see #106. Neither are the red separator line and the other 版头 elements, which Markdown has no way to express.

Programmatically:

import {

convertMarkdownToWord, CHINESE_OFFICIAL_DOC_FONTS, } from 'markdown-to-word';

const blob = await convertMarkdownToWord(markdown, { fontPreset: CHINESE_OFFICIAL_DOC_FONTS, });

pageMargins, when you also pass it, takes precedence over the preset's margins; the line grid is fitted to the margins the document ends up with.

Privacy

Conversion happens entirely in your browser: your Markdown and the Word document never leave your device. Images your Markdown links to load from the sites that host them, like on any web page. md2word.app uses cookie-free Cloudflare Web Analytics and keeps an anonymous count of conversions (whether each succeeded and if not why, the page's language, and how it started; never the content, filename, size, or anything that identifies you); a local or self-hosted copy sends neither. Raw HTML in the preview is sanitized, so a shared file can't run script. See the privacy policy.

Limitations

  • Images are embedded only when the browser can fetch them: data: URIs, and web URLs whose server allows cross-origin requests (most image hosts and CDNs do). Any other image, including a local file path, becomes its alt text, linked to the image's URL when it has one.
  • Footnotes come out as a numbered list of notes at the end of the document, not as Word footnotes at the foot of each page.
  • Math stays as the literal text: $x^2$ comes out as $x^2$, not an equation.
  • Emoji shortcodes such as :tada: aren't converted; paste the emoji itself instead.
  • Links to headings in the same document ([see below](#usage)) don't jump anywhere in Word.
  • sections are flattened: the summary and the hidden content both show, as ordinary paragraphs.
  • Complex raw HTML inside Markdown may not convert cleanly, and advanced Word features (comments, tracked changes, page layout) aren't produced.
  • Very large documents can be slow, since everything runs in the browser. Files are limited to 5 MB.
  • The site works in current versions of Chrome, Edge, Firefox, and Safari. The end-to-end tests run in Chrome.

Command line

Run it directly with npx (downloads and runs the latest published version):

npx markdown-to-word report.md

Or install it globally to get the md2w command:

npm install -g markdown-to-word

md2w report.md

It writes the .docx next to the input with the same name (report.md becomes report.docx), replacing any file already there, and prints where it wrote it to stderr. It needs Node 22.12 or later, and exits with status 1 and a message if the file is missing or empty.

To read the Markdown from stdin, pass - as the file, or leave it out and pipe the Markdown in. There's no file name to go on then, so -o is required:

cat reply.md | md2w -o reply.docx

md2w - -o - < report.md > report.docx

Options:

  • -o, --output : write the .docx to , creating folders as needed. -o - writes it to stdout.
  • --font-preset : restyle the document with a font preset. chinese-official is the Chinese official document (公文) style described in Optional Font Presets.
  • -q, --quiet: print nothing to stderr except errors.
  • -V, --version: print the version.

MCP server

md2w mcp runs a local Model Context Protocol server on stdio, so AI agents can turn Markdown into Word documents on your machine. Like the website, it never uploads anything: the server converts in-process and writes the .docx to disk.

In Claude Desktop, it's one click: download markdown-to-word.mcpb and double-click it. Claude Desktop installs it as an extension. You don't need Node or a terminal, since Claude Desktop includes Node.

Add it to Claude Code:

claude mcp add markdown-to-word -- npx -y markdown-to-word mcp

Or to any MCP client that takes a JSON config:

{

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

It has one tool, convert_markdown_to_word:

  • markdown or path (exactly one): the Markdown as a string, or the path of a Markdown file (.md, .markdown, .mdown, or .txt). Prefer absolute paths; relative ones resolve against the server's w

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx