Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
MCP serverCẩn thậnTài liệu & nội dungCần cài đặt chút Đã chạy thử thật

markdownify-mcp

zcaceres · zcaceres/markdownify-mcp

Cung cấp một MCP server cho phép các AI agent chuyển đổi nhiều loại tệp và nội dung web khác nhau sang định dạng Markdown.

Một máy chủ Model Context Protocol để chuyển đổi hầu hết mọi thứ sang Markdown.

3k sao254Giấy phép: MITCập nhật 23 ngày trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Chuyển đổi tài liệu PDF hoặc hình ảnh thành văn bản Markdown có thể chỉnh sửa.
  • Nhận bản tóm tắt Markdown của một trang web hoặc bản ghi YouTube.
  • Tập trung hóa các định dạng nội dung đa dạng vào một cơ sở tri thức Markdown nhất quán.

Đã chạy thử thật · 11 tool

Chúng tôi đã khởi động MCP server này trong máy ảo cách ly, và nó cung cấp các tool sau:

  • audio-to-markdown

    Convert an audio file to markdown, including transcription if possible

  • bing-search-to-markdown

    Convert a Bing search results page to markdown

  • docx-to-markdown

    Convert a DOCX file to markdown

  • get-markdown-file

    Get a markdown file by absolute file path

  • git-repo-to-markdown

    Convert a git repository into a single markdown document containing the file tree and source code. Supports GitHub URLs and shorthand (e.g. 'owner/repo').

  • image-to-markdown

    Convert an image to markdown, including metadata and description

  • pdf-to-markdown

    Convert a PDF file to markdown

  • pptx-to-markdown

    Convert a PPTX file to markdown

  • webpage-to-markdown

    Convert a webpage to markdown

  • xlsx-to-markdown

    Convert an XLSX file to markdown

  • youtube-to-markdown

    Convert a YouTube video to markdown, including transcript if available

npx -y mcp-markdownify-server · 6/10/2026

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Gói npm tự chạy script khi cài đặt.package.json

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Markdownify MCP Server

Markdownify is a Model Context Protocol (MCP) server that converts various file types and web content to Markdown format. It provides a set of tools to transform PDFs, images, audio files, web pages, and more into easily readable and shareable Markdown text.

Features

  • Convert multiple file types to Markdown:
    • PDF
    • Images
    • Audio (with transcription)
    • DOCX
    • XLSX
    • PPTX
  • Convert web content to Markdown:
    • YouTube video transcripts
    • Bing search results
    • General web pages
  • Retrieve existing Markdown files

Getting Started

  1. Clone this repository

  2. Install dependencies:

    bun install
    

    The preinstall step creates a Python virtual environment at .venv and installs markitdown[all].

  3. Build the project:

    bun run build
    
  4. Start the server:

    bun start
    

Development

  • Use bun run dev to start the TypeScript compiler in watch mode
  • Modify src/server.ts to customize server behavior
  • Add or modify tools in src/tools.ts

Usage with Desktop App

To integrate this server with a desktop app, add the following to your app's server configuration:

{
  "mcpServers": {
    "markdownify": {
      "command": "node",
      "args": [
        "{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
      ]
    }
  }
}

Environment variables

All paths default to sensible values; override only when the defaults don't fit your install layout.

VariableDefaultPurpose
MARKITDOWN_PATH/.venv/bin/markitdown, then markitdown on PATHAbsolute path to the markitdown executable. Set this when you've installed markitdown system-wide (e.g. pipx install "markitdown[pdf]") instead of using the bundled venv.
REPOMIX_PATH/node_modules/.bin/repomix, then repomix on PATHAbsolute path to the repomix executable used by git-repo-to-markdown.
MD_ALLOWED_PATHSunset (unrestricted)Path-delimiter-separated list (: on POSIX, ; on Windows) of directories the server is allowed to read. When set, all file-input tools (pdf-to-markdown, get-markdown-file, etc.) reject paths outside these directories.
MD_SHARE_DIRunsetDeprecated alias for MD_ALLOWED_PATHS (single directory). Still honored for backward compatibility.

Usage with Docker

Build and run:

docker build -t markdownify-mcp .
docker run --rm -i \
  -v "$HOME/Documents:/data:ro" \
  -e MD_ALLOWED_PATHS=/data \
  markdownify-mcp

Notes for the Docker MCP catalog (mcp/markdownify):

  • Mount any host directories you want the server to read into the container, then pass the container paths to the tools (e.g. /data/foo.pdf, not /Users/you/Documents/foo.pdf).
  • Set MD_ALLOWED_PATHS to the colon-separated list of mounted directories so the server enforces a read boundary that matches the bind mount.
  • The published Docker image installs markitdown[pdf] only — audio transcription and image OCR (audio-to-markdown, image-to-markdown) require the [all] extras and will fail in the slim image. Use the local install (bun install) for the full feature set.

Available Tools

  • youtube-to-markdown: Convert YouTube videos to Markdown

  • pdf-to-markdown: Convert PDF files to Markdown

  • bing-search-to-markdown: Convert Bing search results to Markdown

  • webpage-to-markdown: Convert web pages to Markdown

  • image-to-markdown: Convert images to Markdown with metadata

  • audio-to-markdown: Convert audio files to Markdown with transcription

  • docx-to-markdown: Convert DOCX files to Markdown

  • xlsx-to-markdown: Convert XLSX files to Markdown

  • pptx-to-markdown: Convert PPTX files to Markdown

  • get-markdown-file: Retrieve an existing Markdown file. File extension must end with: *.md, *.markdown.

    OPTIONAL: set MD_ALLOWED_PATHS to restrict every file-input tool to a list of directories, e.g. MD_ALLOWED_PATHS=/data/in:/data/out bun start.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Xem mã nguồn trên GitHub