Data as of

Markdownify MCP Server for Claude Code: Setup & Config

Claude Code: Convert documents, media, and web content into Markdown through an assistant.

What you can do with Markdownify in Claude Code

Unify mixed documents and web material as Markdown, with explicit directory read boundaries.

  • Convert PDF and office documents into assistant-readable Markdown.
  • Read existing Markdown within an explicitly allowed directory set.

Before you start: Markdownify in Claude Code

  • Bun
  • A cloned repository with dependencies installed and the project built
  • Python for the MarkItDown environment created during installation

Run bun install and bun run build first. The local installation uses markitdown[all]. Set allowed paths to restrict file reads; the slim published Docker image lacks audio and image extras.

Markdownify Claude Code configuration

  1. Choose Claude Code configuration scope

    For Markdownify MCP Server, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.

  2. Add Markdownify MCP Server to Claude Code

    Use the markdownify-mcp entry below in mcpServers. Keep Markdownify MCP Server's documented stdio connection fields and your other Claude Code entries.

  3. Check Markdownify MCP Server in Claude Code

    Markdownify MCP Server: Inspect claude mcp list and /mcp status.

Config file · Project scope: .mcp.json at the repository root

JSON
{
  "mcpServers": {
    "markdownify-mcp": {
      "type": "stdio",
      "command": "bun",
      "args": [
        "start"
      ],
      "env": {
        "MD_ALLOWED_PATHS": "<allowed directories separated by your platform path delimiter>"
      }
    }
  }
}

CLI (POSIX shell)
claude mcp add-json --scope project 'markdownify-mcp' '{"type":"stdio","command":"bun","args":["start"],"env":{"MD_ALLOWED_PATHS":"<allowed directories separated by your platform path delimiter>"}}'

Markdownify tools available to Claude Code

Markdownify's stored tool list documents 11 tools; compare it with Claude Code's connected tool list, because the stored list is not a live check.

youtube-to-markdown

For Markdownify's youtube-to-markdown, review the permission request and arguments in Claude Code before approval.

pdf-to-markdown

For Markdownify's pdf-to-markdown, review the permission request and arguments in Claude Code before approval.

bing-search-to-markdown

For Markdownify's bing-search-to-markdown, review the permission request and arguments in Claude Code before approval.

Represent Bing search results as Markdown.

webpage-to-markdown

For Markdownify's webpage-to-markdown, review the permission request and arguments in Claude Code before approval.

Extract web page content into Markdown.

image-to-markdown

For Markdownify's image-to-markdown, review the permission request and arguments in Claude Code before approval.

Produce Markdown from an image with associated metadata.

audio-to-markdown

For Markdownify's audio-to-markdown, review the permission request and arguments in Claude Code before approval.

docx-to-markdown

For Markdownify's docx-to-markdown, review the permission request and arguments in Claude Code before approval.

Transform a DOCX document into Markdown.

xlsx-to-markdown

For Markdownify's xlsx-to-markdown, review the permission request and arguments in Claude Code before approval.

pptx-to-markdown

For Markdownify's pptx-to-markdown, review the permission request and arguments in Claude Code before approval.

get-markdown-file

For Markdownify's get-markdown-file, review the permission request and arguments in Claude Code before approval.

Read an existing file with a .md or .markdown extension.

git-repo-to-markdown

For Markdownify's git-repo-to-markdown, review the permission request and arguments in Claude Code before approval.

Convert repository content using the configured Repomix executable.

Markdownify: full stored tool descriptions

Troubleshooting Markdownify in Claude Code

  • If Markdownify MCP Server fails to start, check bun, the working directory, and Claude Code's selected scope; inspect claude mcp list and /mcp.
  • Markdownify MCP Server: check MD_ALLOWED_PATHS; keep credentials out of shared .mcp.json.
  • Markdownify MCP Server uses stdio here: Claude Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
  • Known limitation: File access is unrestricted unless allowed directories are configured.
  • Known limitation: The published slim Docker image lacks audio transcription and image OCR extras.
  • Known limitation: The full local installation involves JavaScript tooling and a Python conversion environment.
  • General Claude Code troubleshooting lives in the /clients/claude-code guide.

Markdownify MCP Server — details. Claude Code guide

Frequently asked questions

Register Markdownify MCP Server with the displayed claude mcp add-json --scope project command, or merge the JSON into .mcp.json at the repository root.

Claude Code's markdownify-mcp example uses stdio.

Markdownify MCP Server's Claude Code configuration invokes bun.

Claude Code's Markdownify MCP Server example references MD_ALLOWED_PATHS. Check these names if startup or authentication fails; the example alone does not distinguish required from optional values.

Markdownify MCP Server's stored list contains 11 tools, including youtube-to-markdown, pdf-to-markdown, bing-search-to-markdown. Compare those names with Claude Code's connected tool list; the stored list is not a live check.

The README lists DOCX documents, XLSX spreadsheets, and PPTX presentations, in addition to PDFs and media.

The documented tools cover ordinary web pages, Bing search results, and YouTube video transcripts.