# AI Answer Copier

AI Answer Copier is a Model Context Protocol (MCP) server that solves the "Final Mile" friction in educational content creation. It enables AI models to move beyond just writing questions to actually…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add XJTLUmedia/x23

# Browse available tools
npx -y @smithery/cli@latest tool list XJTLUmedia/x23

# Get full schema for a tool
npx -y @smithery/cli@latest tool get XJTLUmedia/x23 harmonize_markdown

# Call a tool
npx -y @smithery/cli@latest tool call XJTLUmedia/x23 harmonize_markdown '{}'
```

## Direct MCP Connection

Endpoint: `https://x23--xjtlumedia.run.tools`

**Optional config:**
- `pdf_page_format` (query) — Paper size for PDF output. Controls page dimensions for Markdown-to-PDF conversion.
- `pdf_margin` (query) — PDF margin in CSS units, applied to all sides. Examples: '20mm', '1in', '0.5cm'.
- `html_theme` (query) — Visual theme for HTML/PDF/PNG output. 'light' = white background, 'dark' = dark background.
- `default_title` (query) — Fallback document title when none is provided. Used in PDF metadata, HTML title, XML root.
- `code_style` (query) — Syntax highlighting theme for fenced code blocks in HTML, PDF, and image output.
- `max_input_bytes` (query) — Max input size in bytes. Documents exceeding this are rejected. Default: 1 GB (1073741824).

## Tools (34)

- `harmonize_markdown` — Standardize and normalize Markdown syntax without changing the document's meaning. Re-formats headers (ATX-style), norm…
- `convert_to_txt` — Convert Markdown to plain text by stripping all formatting — removes headers, bold/italic markers, links, images, code …
- `convert_to_rtf` — Convert Markdown to Rich Text Format (RTF). Produces an RTF document string preserving basic formatting: bold, italic, …
- `convert_to_latex` — Convert Markdown to LaTeX source code. Produces a LaTeX document fragment with \section, \textbf, \textit, list environ…
- `convert_to_docx` — Convert Markdown to a Microsoft Word DOCX file. Produces a binary .docx document with styled headings, bold/italic text…
- `convert_to_pdf` — Convert Markdown to a PDF document. Renders the Markdown as styled HTML (GFM tables, KaTeX math) and prints it to PDF v…
- `convert_to_image` — Convert Markdown to a PNG image. Renders the Markdown as styled HTML (GFM tables, KaTeX math) and takes a full-page scr…
- `convert_to_csv` — Extract tables from Markdown and convert them to CSV format. Parses GFM pipe-tables from the input and outputs comma-se…
- `convert_to_json` — Convert Markdown to a structured JSON representation. Parses the document into a JSON object with sections, headings, p…
- `convert_to_xml` — Convert Markdown to an XML document. Produces well-formed XML with an <?xml?> declaration and structured elements inclu…
- `convert_to_xlsx` — Convert Markdown tables to a Microsoft Excel XLSX spreadsheet. Each table becomes a sheet in the workbook. Non-table co…
- `convert_to_html` — Convert Markdown to a complete, styled HTML document. Renders GFM (tables, task lists, strikethrough) and KaTeX math in…
- `convert_to_md` — Export Markdown content, optionally harmonizing its formatting first. When harmonize=false (default), returns the input…
- `generate_html` — Generate a complete, self-contained HTML document from Markdown with all styles inlined. Returns the HTML string direct…
- `convert_to_slack` — Convert Markdown to Slack mrkdwn format. Bold as *, links as <url|text>, headers as bold text.
- `convert_to_discord` — Convert Markdown to Discord-compatible format with styled bold/underline headers and preserved code blocks.
- `convert_to_jira` — Convert Markdown to JIRA wiki markup with h1./h2. headings, {code} blocks, and [text|url] links.
- `convert_to_confluence` — Convert Markdown to Confluence wiki markup with {info}, {note} panels and {code:language=x} syntax.
- `convert_to_asciidoc` — Convert Markdown to AsciiDoc format with = headers, ---- code blocks, url[text] links, and image:: directives.
- `convert_to_rst` — Convert Markdown to reStructuredText (RST) format with underlined headers, .. code-block:: directives, and RST referenc…
- `convert_to_mediawiki` — Convert Markdown to MediaWiki markup with == headers, '''bold''', <syntaxhighlight> tags, and {| wikitable syntax.
- `convert_to_bbcode` — Convert Markdown to BBCode format with [b], [i], [code], [url], [img] tags for phpBB/vBulletin forums.
- `convert_to_textile` — Convert Markdown to Textile markup format for Redmine, Basecamp, and CMS platforms.
- `convert_to_orgmode` — Convert Markdown to Emacs Org Mode format with * headers, #+BEGIN_SRC/#+END_SRC code, and [[url][text]] links.
- `convert_to_email_html` — Convert Markdown to email-optimized HTML with all styles inlined, compatible with Outlook, Gmail, and Apple Mail.
- `html_to_markdown` — Convert HTML content (full document or fragment) back to Markdown. Handles headings, tables, lists, code blocks, links,…
- `repair_markdown` — Repair broken Markdown from LLM output or copy-paste. Fixes unclosed code fences, broken tables, stray emphasis markers…
- `lint_markdown` — Lint Markdown and report issues as a JSON array with line number, severity, rule name, message, and fixable flag.
- `extract_code_blocks` — Extract all code blocks from Markdown. Returns JSON array with language, code content, and start/end line numbers.
- `extract_links` — Extract all links and images from Markdown. Returns JSON with text, URL, line number, and type (inline, reference, imag…
- `generate_toc` — Generate a Markdown Table of Contents from headings with configurable max_depth (1-6) and indented links.
- `analyze_document` — Analyze Markdown and return comprehensive statistics: line/word/character/paragraph/sentence counts, heading/code/table…
- `extract_structure` — Extract full document structure overview: statistics, heading outline, code block summary, and link summary.
- `batch_convert` — Batch-convert multiple Markdown documents to one or more output formats in a single call. Accepts an array of items (ea…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get XJTLUmedia/x23 <tool-name>
```

## Resources

- `markdown-formatter://supported-formats` — Complete JSON list of all 22 output formats with tool names and types — txt, csv, json, xml, xlsx, latex, rtf, docx, pd…
- `markdown-formatter://conversion-guide` — Guide for choosing the right output format based on your use case

## Prompts (6)

- `convert-document` (format, markdown) — Convert a Markdown document to a specified output format. Supports: PDF, DOCX, HTML, LaTeX, CSV, JSON, XML, XLSX, RTF, …
- `extract-tables` (format, markdown) — Extract all tables from a Markdown document and export them as CSV or XLSX spreadsheet format.
- `format-for-sharing` (markdown) — Prepare a Markdown document for sharing by harmonizing formatting and converting to portable formats (PDF and HTML) wit…
- `analyze-and-repair` (markdown) — Analyze a Markdown document for issues, repair problems, and return both the lint report and repaired document.
- `convert-for-platform` (platform, markdown) — Convert Markdown to a platform-specific format: Slack, Discord, JIRA, Confluence, AsciiDoc, RST, MediaWiki, BBCode, Tex…
- `document-overview` (markdown) — Get a comprehensive overview of a Markdown document: statistics, structure, TOC, code blocks, and links.
