
Markdown Formatter
Turns AI-generated markdown into production documents without leaving your chat window. Exposes 34 tools through MCP: convert to PDF, DOCX, HTML, LaTeX, and 18 other formats including platform-specific outputs for Slack, Discord, JIRA, Confluence, and MediaWiki. Beyond conversion, you get document repair for broken LLM output, linting with line-level diagnostics, structure extraction, batch processing across multiple files and formats, and bidirectional HTML conversion. Built for educators and content creators who generate material with AI but need it formatted for LMS uploads, email distribution, or legacy systems. The server runs locally via stdio transport and handles math rendering through KaTeX, syntax highlighting, and table extraction to CSV or Excel.
- tools
- 34
- transport
- STDIO
- last updated
- Apr 1, 2026
Tools
34 toolsPublic tool metadata for what this MCP can expose to an agent.
harmonize_markdownStandardize and normalize Markdown syntax (ATX headers, `-` list markers, fenced code blocks) without changing meaning
Standardize and normalize Markdown syntax (ATX headers, `-` list markers, fenced code blocks) without changing meaning
No parameter schema in public metadata yet.
convert_to_txtStrip all formatting to produce plain text
Strip all formatting to produce plain text
No parameter schema in public metadata yet.
convert_to_htmlFull styled HTML document with GFM tables, KaTeX math, and embedded stylesheet
Full styled HTML document with GFM tables, KaTeX math, and embedded stylesheet
No parameter schema in public metadata yet.
generate_htmlGenerate self-contained HTML with all styles inlined (read-only, no file I/O)
Generate self-contained HTML with all styles inlined (read-only, no file I/O)
No parameter schema in public metadata yet.
convert_to_pdfPrint-ready PDF via headless Chromium with full KaTeX math and syntax highlighting
Print-ready PDF via headless Chromium with full KaTeX math and syntax highlighting
No parameter schema in public metadata yet.
convert_to_docxMicrosoft Word document with styled headings, lists, and code formatting
Microsoft Word document with styled headings, lists, and code formatting
No parameter schema in public metadata yet.
convert_to_latexLaTeX source code with `\section`, list environments, and native math pass-through
LaTeX source code with `\section`, list environments, and native math pass-through
No parameter schema in public metadata yet.
convert_to_rtfRich Text Format for legacy word processors and email clients
Rich Text Format for legacy word processors and email clients
No parameter schema in public metadata yet.
convert_to_csvExtract GFM pipe-tables to comma-separated values
Extract GFM pipe-tables to comma-separated values
No parameter schema in public metadata yet.
convert_to_jsonStructured JSON representation with sections, headings, lists, code blocks, and tables
Structured JSON representation with sections, headings, lists, code blocks, and tables
No parameter schema in public metadata yet.
convert_to_xmlWell-formed XML with `<?xml?>` declaration and structured elements
Well-formed XML with `<?xml?>` declaration and structured elements
No parameter schema in public metadata yet.
convert_to_xlsxExcel spreadsheet — each Markdown table becomes a sheet
Excel spreadsheet — each Markdown table becomes a sheet
No parameter schema in public metadata yet.
convert_to_imageFull-page PNG screenshot via headless Chromium
Full-page PNG screenshot via headless Chromium
No parameter schema in public metadata yet.
convert_to_mdExport Markdown to file, optionally harmonizing formatting first (`harmonize=true`)
Export Markdown to file, optionally harmonizing formatting first (`harmonize=true`)
No parameter schema in public metadata yet.
convert_to_email_htmlEmail-optimized HTML with all styles inlined, compatible with Outlook, Gmail, Apple Mail
Email-optimized HTML with all styles inlined, compatible with Outlook, Gmail, Apple Mail
No parameter schema in public metadata yet.
convert_to_slackmrkdwn format — bold as `*`, links as `<url|text>`, headers as bold text
mrkdwn format — bold as `*`, links as `<url|text>`, headers as bold text
No parameter schema in public metadata yet.
convert_to_discordStyled bold/underline headers, preserved code blocks
Styled bold/underline headers, preserved code blocks
No parameter schema in public metadata yet.
convert_to_jiraWiki markup — `h1.`/`h2.`, `{code}` blocks, `[text|url]` links
Wiki markup — `h1.`/`h2.`, `{code}` blocks, `[text|url]` links
No parameter schema in public metadata yet.
convert_to_confluenceWiki markup with `{info}`, `{note}` panels and `{code:language=x}` syntax
Wiki markup with `{info}`, `{note}` panels and `{code:language=x}` syntax
No parameter schema in public metadata yet.
convert_to_asciidoc`=` headers, `----` code blocks, `url[text]` links, `image::` directives
`=` headers, `----` code blocks, `url[text]` links, `image::` directives
No parameter schema in public metadata yet.
convert_to_rstUnderlined headers, `.. code-block::` directives, RST reference syntax
Underlined headers, `.. code-block::` directives, RST reference syntax
No parameter schema in public metadata yet.
convert_to_mediawiki`==` headers, `'''bold'''`, `<syntaxhighlight>` tags, `{\ wikitable`
`==` headers, `'''bold'''`, `<syntaxhighlight>` tags, `{\ wikitable`
No parameter schema in public metadata yet.
convert_to_bbcode`[b]`, `[i]`, `[code]`, `[url]`, `[img]` tags for phpBB/vBulletin forums
`[b]`, `[i]`, `[code]`, `[url]`, `[img]` tags for phpBB/vBulletin forums
No parameter schema in public metadata yet.
convert_to_textileMarkup for Redmine, Basecamp, and CMS platforms
Markup for Redmine, Basecamp, and CMS platforms
No parameter schema in public metadata yet.
convert_to_orgmode`*` headers, `#+BEGIN_SRC`/`#+END_SRC` code, `[[url][text]]` links
`*` headers, `#+BEGIN_SRC`/`#+END_SRC` code, `[[url][text]]` links
No parameter schema in public metadata yet.
html_to_markdownConvert HTML content (full document or fragment) back to Markdown
Convert HTML content (full document or fragment) back to Markdown
No parameter schema in public metadata yet.
repair_markdownFix broken Markdown from LLM output or copy-paste — unclosed code fences, broken tables, stray emphasis markers, missing heading spaces, broken links
Fix broken Markdown from LLM output or copy-paste — unclosed code fences, broken tables, stray emphasis markers, missing heading spaces, broken links
No parameter schema in public metadata yet.
lint_markdownLint and report issues as JSON array with line number, severity, rule name, message, and fixable flag
Lint and report issues as JSON array with line number, severity, rule name, message, and fixable flag
No parameter schema in public metadata yet.
extract_code_blocksExtract all code blocks with language, content, and start/end line numbers
Extract all code blocks with language, content, and start/end line numbers
No parameter schema in public metadata yet.
extract_linksExtract all links and images with text, URL, line number, and type (inline, reference, image, autolink)
Extract all links and images with text, URL, line number, and type (inline, reference, image, autolink)
No parameter schema in public metadata yet.
generate_tocGenerate Markdown Table of Contents from headings with configurable `max_depth` (1–6)
Generate Markdown Table of Contents from headings with configurable `max_depth` (1–6)
No parameter schema in public metadata yet.
analyze_documentComprehensive statistics — line/word/character/paragraph/sentence counts, heading/code/table/link/image counts, estimated reading time
Comprehensive statistics — line/word/character/paragraph/sentence counts, heading/code/table/link/image counts, estimated reading time
No parameter schema in public metadata yet.
extract_structureBird's-eye document architecture — statistics, heading outline, code block summary, link summary
Bird's-eye document architecture — statistics, heading outline, code block summary, link summary
No parameter schema in public metadata yet.
batch_convertBatch-convert multiple Markdown documents to 22 formats in one call. Error-isolated per item+format. Optional `output_dir` for file output.
Batch-convert multiple Markdown documents to 22 formats in one call. Error-isolated per item+format. Optional `output_dir` for file output.
No parameter schema in public metadata yet.
Sponsors
Readme
AI Answer Copier — MCP-Powered Multi-Format Exporter
Turn "AI Noise" into "Classroom Ready" in 5 Seconds.
A Model Context Protocol (MCP) server that gives your AI assistant the power to convert Markdown into 22 professional document formats, batch-convert multiple documents across 22 formats in one call, analyze documents, repair broken Markdown, and convert across platforms — all without leaving your AI chat.
Details
- Repository
- github.com/xjtlumedia/ai_answer_copier
- Categories
- Developer Tools, Documents & Knowledge, Data & Analytics
- Package
@xjtlumedia/markdown-mcp-server- Transport
- STDIO
- Registry
- MCP registry, active