🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@xjtlumedia/markdown-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xjtlumedia/markdown-mcp-server

AI Answer Copier — MCP Server with 34 tools: batch convert, PDF, DOCX, HTML, Slack, Discord, JIRA, Confluence, AsciiDoc, RST, MediaWiki, BBCode, Textile, Org Mode, Email HTML, CSV, JSON, XML, XLSX, LaTeX, RTF, and more. Plus document analysis, repair/lint

latest
Source
npmnpm
Version
2.3.1
Version published
Weekly downloads
99
35.62%
Maintainers
1
Weekly downloads
 
Created
Source

AI Answer Copier — Markdown MCP Server

Turn AI output into any document format. Instantly.

npm version License: MIT MCP Registry Glama GitHub

A Model Context Protocol (MCP) server that gives your AI assistant 34 powerful tools — convert Markdown to 22 document formats (PDF, DOCX, HTML, LaTeX, CSV, JSON, XML, XLSX, RTF, PNG, Email HTML…), 10 platform-native formats (Slack, Discord, JIRA, Confluence, AsciiDoc, RST, MediaWiki, BBCode, Textile, Org Mode), batch-convert multiple documents in one call, plus HTML import, markdown repair & lint, and document analysis. Stop copy-pasting. Let the AI do the exporting.

Why AI Answer Copier?

You asked an AI to generate 20 exam questions. It delivered — beautifully. But then reality hits:

Pain PointManual WorkflowWith AI Answer Copier
Extracting Q&A10–15 min copying each line2 seconds (auto-detect)
Formatting Math20 min fixing broken symbolsInstant (KaTeX support)
LMS Upload15 min manual CSV entry1-click export
Total Prep Time~45–60 minutes< 1 minute

The last mile of AI workflows is broken. Generating content takes seconds; formatting it for the real world takes an hour. This MCP server eliminates that gap entirely.

34 MCP Tools at Your AI's Fingertips

Document Conversion (15 tools)

ToolOutput FormatUse Case
harmonize_markdownClean .mdStandardize messy AI output
convert_to_txtPlain .txtStrip all formatting
convert_to_html.htmlWeb pages, email templates
generate_htmlFull HTML docSelf-contained pages with inline styles
convert_to_email_htmlEmail .htmlOutlook/Gmail/Apple Mail compatible
convert_to_pdf.pdfPrint-ready exams, handouts
convert_to_docx.docxMicrosoft Word documents
convert_to_latex.texAcademic papers, journals
convert_to_rtf.rtfRich text for legacy systems
convert_to_csv.csvKahoot, Quizizz, Google Forms
convert_to_json.jsonAPIs, Canvas LMS, custom apps
convert_to_xml.xmlMoodle, Blackboard, SCORM
convert_to_xlsx.xlsxExcel spreadsheets
convert_to_image.pngSocial media, presentations
convert_to_md.mdDocumentation, GitHub

Platform Converters (10 tools)

ToolTargetUse Case
convert_to_slackSlackmrkdwn format for Slack messages
convert_to_discordDiscordStyled markdown for Discord
convert_to_jiraJIRAWiki markup for Atlassian JIRA
convert_to_confluenceConfluenceWiki markup with panels & macros
convert_to_asciidocAsciiDocTechnical documentation format
convert_to_rstreStructuredTextSphinx / Read the Docs
convert_to_mediawikiMediaWikiWikipedia-style markup
convert_to_bbcodeBBCodephpBB / vBulletin forums
convert_to_textileTextileRedmine, Basecamp
convert_to_orgmodeEmacs Org ModeOrg-style headers & source blocks

Import, Repair & Analysis (8 tools)

ToolDescription
html_to_markdownConvert HTML back to Markdown
repair_markdownAuto-fix broken Markdown syntax
lint_markdownCheck Markdown for style & syntax issues
extract_code_blocksPull out all fenced code blocks
extract_linksExtract all URLs and link text
generate_tocGenerate a table of contents
analyze_documentWord count, reading time, structure stats
extract_structureExtract document heading hierarchy
Every tool accepts a markdown string input and an optional output_path to save directly to disk. Binary formats (PDF, DOCX, XLSX, PNG) intelligently guide the AI to save files rather than dumping raw base64.

Quick Start

No installation needed — just configure your MCP client:

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

Install Globally

npm install -g @xjtlumedia/markdown-mcp-server

Then configure your MCP client:

{
  "mcpServers": {
    "ai-answer-copier": {
      "command": "markdown-mcp-server"
    }
  }
}

Configuration by AI Client

Claude Desktop

Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

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

Restart Claude Desktop. You'll see a 🔌 icon — all 34 tools are now available to Claude.

VS Code (GitHub Copilot)

Add to your .vscode/mcp.json or VS Code settings:

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

Cursor / Windsurf / Any MCP Client

Use the same npx command pattern above in your client's MCP configuration.

HTTP Mode (Vercel)

A hosted HTTP endpoint is also available for browser-based and remote integrations:

https://ai-answer-copier.vercel.app/api/mcp

Test it with the MCP Inspector:

npx @modelcontextprotocol/inspector https://ai-answer-copier.vercel.app/api/mcp

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."

The AI will use batch_convert with all five documents and three format IDs.

"Generate 10 physics questions about Newton's Laws and export them as a Kahoot CSV."

The AI will use convert_to_csv automatically.

"Convert this markdown into a Word document and save it to my Desktop."

The AI calls convert_to_docx with output_path: "C:/Users/you/Desktop/questions.docx".

"Take these lecture notes and produce a print-ready PDF."

The AI calls convert_to_pdf with Puppeteer-powered rendering, full KaTeX math support, and syntax highlighting.

"Turn this into a Moodle-compatible XML quiz bank."

The AI calls convert_to_xml with structured question/answer extraction.

Features

Math & Code as First-Class Citizens

Full support for LaTeX 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. Instead, the server returns actionable guidance so the AI knows to save to a file path — a much better UX.

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 rendering
  • Syntax-highlighted code blocks
  • Print-optimized layouts

Self-Contained

Zero runtime dependencies on external APIs. Everything runs locally on your machine. Your data never leaves your computer.

Supported Formats Deep Dive

For Educators

  • CSV/XLSX → Direct upload to Kahoot, Quizizz, Google Forms
  • PDF → Print and distribute physical exam papers
  • DOCX → Edit in Word, share with colleagues
  • XML/JSON → Import into Canvas, Moodle, Blackboard LMS

For Developers

  • JSON → Structured data for APIs and databases
  • XML → Enterprise integrations, SOAP services
  • HTML → Embed in web apps, email templates
  • LaTeX → Academic publishing, research papers
  • AsciiDoc / RST → Sphinx, Read the Docs, technical manuals
  • Org Mode → Emacs workflows

For Content Creators

  • PNG → Social media posts, slide decks
  • HTML / Email HTML → Blog posts, newsletters, email campaigns
  • Markdown → Documentation, READMEs, wikis
  • RTF → Universal rich text compatibility

For Teams & Collaboration

  • Slack → Paste-ready mrkdwn messages
  • Discord → Styled markdown for servers and channels
  • JIRA / Confluence → Atlassian wiki markup
  • MediaWiki → Wikipedia-style documentation
  • BBCode / Textile → Forum posts (phpBB, Redmine, Basecamp)

Import & Quality

  • HTML → Markdown → Round-trip HTML content back to Markdown
  • Repair → Auto-fix broken Markdown syntax
  • Lint → Validate style and syntax
  • Analysis → Word count, reading time, structure extraction

Architecture

┌─────────────────────┐
│  AI Client           │
│  (Claude, Copilot,  │
│   Cursor, etc.)     │
└────────┬────────────┘
         │ MCP Protocol (stdio / HTTP)
         ▼
┌──────────────────────────────────┐
│  AI Answer Copier MCP Server     │
│  34 tools                        │
│                                  │
│  ┌─ Document Conversion (15) ───┐│
│  │  remark/rehype · docx · xlsx ││
│  │  puppeteer · KaTeX · CSV/XML ││
│  │  JSON · RTF · LaTeX · TXT    ││
│  │  Email HTML (inline styles)  ││
│  └──────────────────────────────┘│
│  ┌─ Platform Converters (10) ───┐│
│  │  Slack · Discord · JIRA      ││
│  │  Confluence · AsciiDoc · RST ││
│  │  MediaWiki · BBCode          ││
│  │  Textile · Org Mode          ││
│  └──────────────────────────────┘│
│  ┌─ Batch Convert (1) ──────────┐│
│  │  items[] × formats[]         ││
│  │  22 formats · error-isolated ││
│  └──────────────────────────────┘│
│  ┌─ Import & Repair (3) ────────┐│
│  │  HTML→MD · Repair · Lint     ││
│  └──────────────────────────────┘│
│  ┌─ Analysis (5) ───────────────┐│
│  │  Code Blocks · Links · TOC   ││
│  │  Document Stats · Structure  ││
│  └──────────────────────────────┘│
└──────────────────────────────────┘

Development

# Clone the repository
git clone https://github.com/XJTLUmedia/AI_answer_copier.git
cd AI_answer_copier/mcp-server

# Install dependencies
npm install

# Development mode (hot reload)
npm run dev

# Build for production
npm run build

# Test with MCP Inspector
npm run inspector

Live Demo

Try the web interface (no install needed):

https://ai-answer-copier.vercel.app

Tech Stack

ComponentTechnology
MCP SDK@modelcontextprotocol/sdk
Markdown Parserunified + remark + rehype
Math Renderingremark-math + rehype-katex
Word Exportdocx
Excel Exportxlsx
PDF/PNG Exportpuppeteer
Schema Validationzod
RuntimeNode.js (ESM)

Contributing

We welcome contributions! Whether it's a new export format, a bug fix, or documentation improvement:

  • Fork the repository
  • Create a feature branch
  • Submit a pull request

License

MIT © XJTLUmedia

Built by educators, for educators.
Reclaim 5 hours of your week. Let the AI handle the formatting.

Keywords

mcp

FAQs

Package last updated on 09 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts