Markdown Formatter logo

Markdown Formatter

Converts Markdown into office, web, data, platform, and analysis outputs through MCP tools.

Install Markdown Formatter

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "markdown-formatter": {
      "command": "npx",
      "args": [
        "-y",
        "@xjtlumedia/markdown-mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 34 tools correctly ().

Overview

The markdown-formatter MCP server converts Markdown into HTML, PDF, DOCX, LaTeX, spreadsheets, structured data, and platform-specific markup. It also repairs and lints Markdown, extracts document structure, generates tables of contents, and analyzes content. Tools accept Markdown or HTML and can return converted content or write output files, with batch conversion for multiple documents and formats. Reach for it when an AI workflow needs to prepare, validate, inspect, or distribute Markdown without manual reformatting.

Use cases

  • Convert AI-generated Markdown into PDF or DOCX handouts
  • Export Markdown tables to CSV or XLSX
  • Repair and lint copied or model-generated Markdown
  • Prepare content for Slack, JIRA, Confluence, or Discord

Key features

  • Convert Markdown to office, web, data, and markup formats
  • Batch-convert multiple documents and formats
  • Repair and lint Markdown syntax
  • Analyze document structure and statistics
  • Extract tables, links, images, and code blocks
  • Generate HTML, PDF, and PNG outputs

Tools34

What Markdown Formatter lets your agent do. Expand a tool for its parameters.

Verified live~9.7k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

23/24 checks healthy over the last 111d

What it can do

From the 34 tools this server returned when we ran it; 34 declare their own safety hints.

Makes network requests · 8Read-only tools · 34
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age225 days
Maintainers1

Observed 2026-11-12 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · @xjtlumedia/markdown-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
npm downloads356Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed34Callable tools this server registers over MCP.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Markdown Formatter works

What the markdown-formatter MCP server does

The markdown-formatter MCP server exposes document conversion, Markdown cleanup, inspection, and batch-processing operations through MCP. It is designed for workflows where Markdown produced by an AI or copied from another source must become a file, a platform-specific message, or structured data.

Supported document outputs include plain text, HTML, PDF, DOCX, LaTeX, RTF, CSV, JSON, XML, XLSX, PNG, and Markdown. HTML output can include GitHub-Flavored Markdown tables and KaTeX math. PDF and image conversion use headless Chromium, while DOCX output preserves common document structures such as headings, lists, and code formatting. Markdown tables can be exported to CSV, or placed into separate XLSX sheets.

Platform converters target Slack, Discord, JIRA, Confluence, AsciiDoc, reStructuredText, MediaWiki, BBCode, Textile, and Emacs Org Mode. An HTML import tool converts a complete document or fragment back to Markdown.

How it works

An MCP client calls an individual tool with Markdown or HTML input and conversion options where supported. The server includes tools for normalizing Markdown, repairing common syntax damage, and reporting lint findings as structured JSON. Repair targets include unclosed fences, malformed tables, stray emphasis markers, missing spaces after headings, and broken links.

Analysis tools return code blocks, links and images, heading-based tables of contents, document counts, estimated reading time, and an overall structural summary. The batch_convert tool accepts multiple documents and multiple target formats in one request. Errors are isolated for each document-format combination, and an optional output directory can be used for file output.

Six built-in prompts combine these operations for common sequences: general conversion, table extraction, PDF and HTML preparation, lint-repair-lint workflows, platform conversion, and document overviews. Two resources expose a supported-format list and a format-selection guide.

Setup and configuration

The documented quick-start method runs the package with npx:

config.json
{
  "mcpServers": {
    "ai-answer-copier": {
      "command": "npx",
      "args": ["-y", "@xjtlumedia/markdown-mcp-server"]
    }
  }
}

The package can also be installed globally with npm, after which the markdown-mcp-server command is used in the MCP client configuration. The project provides an online web version, but the MCP setup described here uses the npm package. No API key or other credential is specified in the provided setup instructions.

Tools and capabilities

The 34 listed tools cover five main areas:

  • Conversion to files or strings, including HTML, PDF, DOCX, LaTeX, RTF, CSV, JSON, XML, XLSX, PNG, TXT, and Markdown.
  • Conversion to collaboration, documentation, forum, and markup formats.
  • Import from HTML into Markdown.
  • Markdown repair, linting, code and link extraction, table-of-contents generation, and document analysis.
  • Multi-document, multi-format batch conversion.

The server also provides generate_html for self-contained HTML returned without file I/O and convert_to_email_html for HTML with inlined styles intended for common email clients.

Limitations and notes

PDF and PNG generation depend on headless Chromium according to the tool descriptions. Platform output is adapted to each target syntax; it is not necessarily interchangeable with standard Markdown. The documentation lists both 22-format batch conversion language and a broader set of individual tools, so the exact format count depends on whether platform and import capabilities are included.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Markdown Formatter

Configure an MCP client to run npx with -y and the package @xjtlumedia/markdown-mcp-server, or install that package globally with npm.

It supports outputs including TXT, HTML, PDF, DOCX, LaTeX, RTF, CSV, JSON, XML, XLSX, PNG, Markdown, email HTML, Slack, Discord, JIRA, Confluence, AsciiDoc, reStructuredText, MediaWiki, BBCode, Textile, and Org Mode.

Yes. Its repair tool addresses issues such as unclosed code fences, broken tables, stray emphasis markers, missing heading spaces, and broken links.

Yes. The XLSX converter creates a spreadsheet with each Markdown table represented as a separate sheet.

No API key or other credential is specified in the provided setup material.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMarkdown Formatter AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/markdown-formatter?style=directory)](https://allmcps.com/mcp/markdown-formatter)
HTML Embed
<a href="https://allmcps.com/mcp/markdown-formatter"><img src="https://allmcps.com/api/badge/markdown-formatter?style=directory" alt="Markdown Formatter on AllMCPs" /></a>