MCP Connector

Convert Files and Web Content to Markdown

MCP server converting PDFs, images, audio, Office files, and web content to Markdown, with path-restricted access.

Maintainer of this project? Claim this page to edit the listing.


91
Spark score
out of 100
Updated last month
Version 1.1.0
Models
universal

Add to Favorites

Why it matters

Automate the conversion of diverse file types (PDF, images, audio, DOCX, XLSX, PPTX) and web content (YouTube, web pages, search results) into a standardized Markdown format.

Outcomes

What it gets done

01

Convert YouTube videos to Markdown.

02

Transform PDF, DOCX, XLSX, and PPTX files into Markdown.

03

Generate Markdown from web pages and Bing search results.

04

Extract text and metadata from images and audio files into Markdown.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-markdownify | bash

Capabilities

Tools your agent gets

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

+2 tools

Overview

Markdownify MCP Server

An MCP server converting PDFs, images, audio, Office documents, and web content to Markdown, with configurable, path-restricted file access. Use when an AI assistant needs to convert documents, images, audio, or web pages into Markdown, especially when file access should be restricted to specific directories.

What it does

Markdownify is an MCP server that converts various file types and web content to Markdown format, providing tools to transform PDFs, images, audio files, web pages, and more into easily readable and shareable Markdown text. It converts PDF, images, audio (with transcription), DOCX, XLSX, and PPTX files, as well as web content (YouTube video transcripts, Bing search results, general web pages), and can retrieve existing Markdown files.

When to use - and when NOT to

Use this connector when an AI assistant needs to convert a document, image, audio file, or web page into clean Markdown text for further processing or sharing. When MD_ALLOWED_PATHS is set, every file-input tool rejects paths outside the configured allowed directories, restricting the server's filesystem read access to a known boundary.

Capabilities

Available tools: youtube-to-markdown, pdf-to-markdown, bing-search-to-markdown, webpage-to-markdown, image-to-markdown (with metadata), audio-to-markdown (with transcription), docx-to-markdown, xlsx-to-markdown, pptx-to-markdown, and get-markdown-file (retrieves an existing .md/.markdown file).

How to install

Clone the repository, run bun install (whose preinstall step creates a Python virtual environment at .venv and installs markitdown[all]), bun run build, then bun start. For development, bun run dev runs the TypeScript compiler in watch mode; server behavior lives in src/server.ts and tools in src/tools.ts. For a desktop app, configure it with command: node, args: ["{path}/dist/index.js"]. Environment variables: MARKITDOWN_PATH (defaults to the bundled venv's markitdown executable, override if installed system-wide e.g. via pipx install "markitdown[pdf]"), REPOMIX_PATH (path to the repomix executable used by a git-repo-to-markdown tool), MD_ALLOWED_PATHS (a path-delimiter-separated allowlist of readable directories, unrestricted if unset), and MD_SHARE_DIR (a deprecated single-directory alias for MD_ALLOWED_PATHS, still honored for compatibility). For Docker, build with docker build -t markdownify-mcp . and run with a read-only volume mount plus MD_ALLOWED_PATHS set to the mounted container path (not the host path) - the published Docker image (mcp/markdownify) only installs markitdown[pdf], so audio transcription and image OCR (audio-to-markdown, image-to-markdown) require the full [all] extras and will fail in the slim Docker image; use the local bun install setup for the complete feature set. This project is MIT-licensed.

Who it's for

Teams that need to convert PDFs, Office documents, images, audio, or web content into Markdown for AI processing or sharing, with an option to restrict the server's file access to specific directories - especially useful when running in Docker with bind-mounted host directories. Since audio transcription and image OCR depend on the full markitdown extras rather than the minimal PDF-only set shipped in the published Docker image, teams that need those specific capabilities should plan on the local bun install setup from the start rather than discovering the gap only after deploying the containerized version.

Source 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.

Markdownify Server MCP server

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.

Variable Default Purpose
MARKITDOWN_PATH <project>/.venv/bin/markitdown, then markitdown on PATH Absolute 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 <project>/node_modules/.bin/repomix, then repomix on PATH Absolute path to the repomix executable used by git-repo-to-markdown.
MD_ALLOWED_PATHS unset (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_DIR unset Deprecated 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.

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.