trackmcp
Back to directory
nextdoorlaohuang-hf

Consistent_docx_mcp

View on GitHub
1 stars JavaScriptOthers Updated Jul 27, 2025

Documentation

文档格式转换 MCP 服务器

这是一个基于 Node.js 和 TypeScript 构建的 MCP (Model-Context Protocol) 服务器,旨在为大语言模型 (LLM) 提供一套能保持文档格式一致的md-docx互相转换工具。

本项目已被打包成一个可通过 `npx` 直接运行的命令行工具,实现了真正的“开箱即用”。

核心功能

1. `docx_to_markdown`

    2. `markdown_to_docx`

      如何使用 (NPX 方式)

      本服务器可以作为一个独立的命令行工具,通过 `npx` 在任何兼容 MCP 的客户端中进行配置。这种方式无需手动下载、安装或编译。

      1. 打开客户端配置: 找到并打开您 MCP 客户端的配置文件(例如 Claude for Desktop 的 `claude_desktop_config.json`)。

      2. 添加服务器配置: 在 `mcpServers` 对象中,添加以下配置。

      重要提示: 您必须将 `--api-key` 的值替换为您自己的真实 API 密钥。

      json
      {
            "mcpServers": {
              "doc-converter": {
                "command": "npx",
                "args": [
                  "consistent-docx-mcp",
                  "--api-key",
                  "YOUR-API-KEY-HERE"
                ]
              }
            }
          }

        3. 重启客户端: 保存配置文件,然后完全关闭并重新启动您的 MCP 客户端。

        现在,客户端将自动通过 `npx` 下载并运行此工具,您可以在客户端中直接调用 `docx_to_markdown` 和 `markdown_to_docx`。

        相关文档

        Frequently asked questions

        What is Consistent_docx_mcp?

        Consistent_docx_mcp is a Model Context Protocol (MCP) server listed in the TrackMCP directory.

        How do I install Consistent_docx_mcp?

        Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

        Is Consistent_docx_mcp open source?

        Yes — it is hosted on GitHub at https://github.com/nextdoorlaohuang-hf/consistent_docx_mcp and has 1 stars.

        Related MCP tools

        Run your own MCP server? See who uses it and what to fix.

        Measure it with TrackMCP