
Markdown Formatter
io.github.XJTLUmedia由 GitHub 账号 XJTLUmedia 发布v1.0.5更新于 Oct 24, 2026
AI Answer Copier — Convert Markdown to PDF, DOCX, HTML, LaTeX, CSV, JSON, XML, XLSX, RTF, PNG
概览
在 AI 对话中将 Markdown 转换为多种文档与平台格式,并分析、检查与修复 Markdown。
- 可以做什么
- 提供 34 个工具,可将 Markdown 转换为 PDF、DOCX、HTML、LaTeX、CSV、JSON、XML、XLSX、RTF、PNG、TXT 等格式,以及 Slack、Discord、JIRA、Confluence、AsciiDoc、RST、MediaWiki、BBCode、Textile、Org Mode 等平台标记。还支持一次调用批量转换多份文档到多种格式、将 HTML 转回 Markdown、检查并修复损坏的 Markdown,以及统计文档字数、生成目录、提取代码块和链接。内置 6 个提示词模板串联这些工具。
- 适用场景
- 适合需要把助手生成的 Markdown 交付为正式文件或粘贴到特定平台的场景,例如把讲义导出为 PDF 或 DOCX、把表格转为 CSV 或 XLSX、为 Slack、JIRA 或 wiki 重新排版。也适合清理模型输出中格式错误的 Markdown。
- 运行要求
- 作为本地 Node.js 进程运行,通常通过 npx 启动 npm 包 @xjtlumedia/markdown-mcp-server,也可全局安装。PDF 和 PNG 转换需要本地 Chromium;若自动检测失败,可用环境变量 PUPPETEER_EXECUTABLE_PATH 指向本地 Chrome。未声明账号、API 密钥或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Markdown Formatter,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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.
来源:README.md,提交 1a009ab
工具
0版本历史
1- v1.0.5最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分