文件转Markdown服务

MarkItDown MCP Server是一个通过MarkItDown工具将多种文件格式转换为Markdown的Model Context Protocol服务器。

  • by KorigamiK
  • Python
  • 本地部署
  • 88 星标
  • 更新于
在 GitHub 查看 KorigamiK/markitdown_mcp_server

使用说明

MarkItDown MCP服务器

一种模型上下文协议(MCP)服务器,使用MarkItDown实用程序将各种文件格式转换为Markdown。

支持格式

  • PDF
  • 幻灯片
  • 字
  • Excel
  • 图像(EXIF元数据和OCR)
  • 音频(EXIF元数据和语音转录)
  • 超文本标记语言
  • 基于文本的格式(CSV、JSON、XML)
  • ZIP文件(迭代内容)

安装

通过Smithery安装

通过以下方式自动安装适用于Claude Desktop的MarkItDown MCP服务器 史密瑟里:

npx -y @smithery/cli install @KorigamiK/markitdown_mcp_server --client claude

手动安装

  1. 克隆此存储库
  2. 安装依赖项:
uv install

用法

作为MCP服务器

服务器可以与任何MCP客户端集成。以下是一些示例:

Zed编辑

将以下内容添加到您的 settings.json:

"context_servers": {
  "markitdown_mcp": {
    "settings": {},
    "command": {
      "path": "uv",
      "args": [
        "--directory",
        "/path/to/markitdown_mcp_server",
        "run",
        "markitdown-mcp"
      ]
    }
  }
}

命令

服务器响应以下MCP命令:

  • /md <file> -将指定文件转换为Markdown

例子:

/md document.pdf

支持的MCP客户端

与以下列出的任何符合MCP标准的客户合作 modelcontextprotocol.io/客户端,包括:

  • Zed编辑
  • 任何其他与MCP兼容的编辑器和工具

许可证

MIT许可证。看 许可证 了解详情。

致谢

https://github.com/microsoft/markitdown#readme