by zcaceres
A Model Context Protocol server for converting almost anything to Markdown
# Add to your Claude Code skills
git clone https://github.com/zcaceres/markdownify-mcpGuides for using mcp servers skills like markdownify-mcp.
markdownify-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by zcaceres. A Model Context Protocol server for converting almost anything to Markdown. It has 3,009 GitHub stars.
markdownify-mcp's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/zcaceres/markdownify-mcp" and add it to your Claude Code skills directory (see the Installation section above).
markdownify-mcp is primarily written in TypeScript. It is open-source under zcaceres on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh markdownify-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.

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.
Prerequisites:
PATH for locked Python setup..python-version if needed; Python 3.15 is not supported.Clone this repository
Install dependencies:
bun install --frozen-lockfile
The preinstall step runs uv sync --locked --extra all --no-dev, creating .venv and installing MarkItDown's full feature set at the exact versions in uv.lock. Setup fails if the lockfile is stale or Python installation fails. If dependency lifecycle scripts are disabled, run node preinstall.js manually.
Build the project:
bun run build
Start the server:
bun start
bun run dev to start the TypeScript compiler in watch modesrc/server.ts to customize server behaviorsrc/tools.tsNormal installs consume the committed lockfiles; they do not upgrade packages.
package.json, run bun update --ignore-scripts, then commit package.json and bun.lock.pyproject.toml as needed, run uv lock --upgrade, then commit pyproject.toml and uv.lock. Both the local all and Docker pdf profiles are resolved in this one lockfile.uv lock --check, node preinstall.js, bun run build, bun test, and bash scripts/docker-smoke-test.sh when Docker is available.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"
]
}
}
}
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. |
By default the server runs over stdio. To run it as a stateless Streamable HTTP server (listening on 127.0.0.1:3000/mcp by default):
MD_ALLOWED_PATHS=/path/to/docs bun dist/index.js --transport=http --port=3000
Or via environment variables:
MCP_TRANSPORT=http MCP_PORT=3000 MD_ALLOWED_PATHS=/path/to/docs bun dist/index.js
| Flag / Env | Default | Purpose |
|---|---|---|
--transport=stdio|http / MCP_TRANSPORT |
stdio |
Transport mode. |
--host=HOST / MCP_HOST |
127.0.0.1 |
Bind address for HTTP mode. Defaults to loopback only. |
--port=N / MCP_PORT |
3000 |
Port for HTTP mode (ignored in stdio mode). |
MCP_ALLOWED_HOSTS |
loopback hosts when bound to loopback | Comma-separated list of allowed Host headers (DNS-rebinding protection). |
MCP_ALLOWED_ORIGINS |
loopback origins when bound to loopback | Comma-separated list of allowed browser Origin headers. |
Security note: The HTTP transport has no built-in authentication. Always set
MD_ALLOWED_PATHSwhen running over HTTP, keep--host=127.0.0.1for local use, or place it behind an authenticating reverse proxy withMCP_ALLOWED_HOSTS/MCP_ALLOWED_ORIGINSconfigured.
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):
/data/foo.pdf, not /Users/you/Documents/foo.pdf).MD_ALLOWED_PATHS to the colon-separated list of mounted directories so the server enforces a read boundary that matches the bind mount.pdf profile (uv sync --locked --extra pdf), not the full all profile. 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 --frozen-lockfile) for the full feature set.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.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.