
Markdown Formatter
io.github.XJTLUmediaPublished by GitHub account XJTLUmediav1.0.5Updated Oct 24, 2026
AI Answer Copier — Convert Markdown to PDF, DOCX, HTML, LaTeX, CSV, JSON, XML, XLSX, RTF, PNG
Overview
Converts Markdown into many document and platform formats, and analyzes, lints, and repairs Markdown, from inside an AI chat.
- What you can do
- Provides 34 tools that convert Markdown to formats such as PDF, DOCX, HTML, LaTeX, CSV, JSON, XML, XLSX, RTF, PNG, and TXT, plus platform markup for Slack, Discord, JIRA, Confluence, AsciiDoc, RST, MediaWiki, BBCode, Textile, and Org Mode. It also batch-converts multiple documents across formats, imports HTML back to Markdown, lints and repairs broken Markdown, and analyzes documents for statistics, tables of contents, code blocks, and links. Six built-in prompts chain these tools for common tasks.
- When to use it
- Useful when an assistant produces Markdown that must be delivered as a polished file or pasted into a specific platform, such as exporting lecture notes to PDF or DOCX, turning tables into CSV or XLSX, or reformatting text for Slack, JIRA, or a wiki. Also helpful for cleaning up malformed Markdown from model output.
- Requirements
- Runs locally as a Node.js process, typically started with npx from the npm package @xjtlumedia/markdown-mcp-server, or installed globally. PDF and PNG conversion need a local Chromium; the PUPPETEER_EXECUTABLE_PATH environment variable can point to a local Chrome if auto-detection fails. No accounts, API keys, or headers are declared.
Installation
In SourceWeft
- Open Markdown Formatter in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
AI Answer Copier — MCP-Powered Multi-Format Exporter
Turn "AI Noise" into "Classroom Ready" in 5 Seconds.
[npm version] [License: MIT] [MCP Registry] [Glama] [GitHub]
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.
[image]npm: https://www.npmjs.com/package/@xjtlumedia/markdown-mcp-server
Why This Exists
You asked an AI to write 20 questions. It delivered. But now you're stuck:
Generating content takes seconds. Formatting it for the real world takes an hour. This MCP server eliminates that gap entirely.
Live Demo
Online web version (no install needed): ai-answer-copier.vercel.app
[live_demo1] [live_demo2]Test MCP tool in inspector:
[MCP server]Use actual MCP instance:
[MCP1] [MCP2]All 34 MCP Tools
Document Conversion Tools (15)
Platform Converter Tools (10)
Import Tools (1)
Repair & Lint Tools (2)
Document Analysis Tools (5)
Batch Conversion (1)
6 Built-in Prompts
Pre-configured prompt templates that orchestrate multiple tools:
2 Resources
Quick Start
Install via npx (Recommended)
No installation needed — just configure your MCP client:
Install Globally
Then configure:
Configuration by AI Client
🔌 Claude Desktop
[image]Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Restart Claude Desktop. You'll see a 🔌 icon — all 34 tools are now available.
VS Code (GitHub Copilot)
Add to .vscode/mcp.json or VS Code settings:
Cursor / Windsurf / Any MCP Client
Use the same npx command pattern above in your client's MCP configuration.
DIY version (local build)
Replace YOUR_PATH_TO_PROJECT with the absolute path to this folder.
HTTP Mode (Vercel)
A hosted HTTP endpoint is available for browser-based and remote integrations:
Test with MCP Inspector:
Usage Examples
Once connected, just talk to your AI naturally:
"Batch-convert 5 markdown documents into DOCX, PDF, and HTML simultaneously and save them to my Downloads folder." → AI uses
batch_convertwith items[] and formats[]
"Generate 10 physics questions about Newton's Laws and export them as a Kahoot CSV." → AI uses
convert_to_csv
"Convert this markdown into a Word document and save it to my Desktop." → AI calls
convert_to_docxwithoutput_path
"Take these lecture notes and produce a print-ready PDF." → AI calls
convert_to_pdfwith Puppeteer rendering, KaTeX math, and syntax highlighting
"Turn this into a Moodle-compatible XML quiz bank." → AI calls
convert_to_xml
"Format this for Slack and send it to the team channel." → AI calls
convert_to_slack
"Check this Markdown for issues and fix them." → AI calls
lint_markdownthenrepair_markdown
"Give me an overview of this document — word count, structure, all links." → AI chains
analyze_document+generate_toc+extract_links
Features
22 Output Formats
Export to PDF, DOCX, HTML, LaTeX, CSV, JSON, XML, XLSX, RTF, PNG, TXT, Markdown — plus Slack, Discord, JIRA, Confluence, AsciiDoc, RST, MediaWiki, BBCode, Textile, Org Mode, and Email HTML.
Batch Conversion
Convert multiple Markdown documents to multiple formats in one batch_convert call. Errors are isolated per item+format so one failure never blocks the rest.
Math & Code as First-Class Citizens
Full support for KaTeX math expressions and syntax-highlighted code blocks. Your $\sqrt{x^2 + y^2}$ and Python snippets survive every conversion perfectly.
Smart Binary Handling
Binary formats (PDF, DOCX, XLSX, PNG) don't dump raw base64 into chat. The server returns actionable guidance so the AI knows to save to a file path.
Document Analysis & Repair
Lint Markdown, auto-repair broken formatting, extract code blocks and links, generate Table of Contents, and get comprehensive document statistics — all without leaving the chat.
GFM (GitHub Flavored Markdown)
Tables, task lists, strikethrough, autolinks — all parsed correctly via remark-gfm.
Puppeteer-Powered PDF & PNG
PDF and image exports use headless Chromium for pixel-perfect rendering with full CSS styling, KaTeX math, syntax highlighting, and print-optimized layouts.
Self-Contained
Zero runtime dependencies on external APIs. Everything runs locally. Your data never leaves your computer.
Architecture
What's New in v2.1.0
This release hardens both the local (npx) and remote Vercel MCP transports with 8 logic fixes:
Known Limitations
- PDF / PNG require local Chromium —
convert_to_pdfandconvert_to_imagelaunch a headless browser. This works fine withnpxbut is unavailable on Vercel's free tier (no bundled Chromium). Set thePUPPETEER_EXECUTABLE_PATHenvironment variable to point to your local Chrome if auto-detection fails. - Chromium version on Vercel — the remote endpoint uses
@sparticuz/chromium-minwith a pinned tar at v131.0.1. If Vercel bumps the Lambda runtime you may need to update theCHROMIUM_TAR_URLenv var. - 1 MB input limit — all tool calls reject inputs larger than 1 MB. Split large documents into sections before converting.
- Session TTL (remote only) — sessions on the Vercel endpoint expire after 30 minutes of inactivity. Long-running stateful workflows should issue periodic keep-alive calls.
Development
Tech Stack
Contributing
We welcome contributions! Whether it's a new export format, a bug fix, or documentation improvement — please consider making a pull request.
- Fork the repository
- Create a feature branch
- Submit a pull request
License
Built by educators, for educators.
Reclaim 5 hours of your week. Let the AI handle the formatting.
Source: README.md at commit 1a009ab
Tools
0Version history
1- v1.0.5LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts