DEV Community

XJTLU media
XJTLU media

Posted on

Stop Copy-Pasting AI Answers: How I Built an MCP Server for "Classroom-Ready" Exports

We’ve all been there. You ask Claude or ChatGPT to generate 20 complex physics questions. The output is brilliant, but then the "Final Mile" friction hits.

You spend the next 45 minutes:

  1. Fixing LaTeX formulas that broke during the copy-paste.
  2. Re-formatting bullet points into a CSV template for Kahoot or Quizizz.
  3. Wrestling with Word margins to make a printable PDF.

Generating the content took 10 seconds. Formatting it took an hour. That is a broken developer/educator experience.

The Solution: Model Context Protocol (MCP)

Instead of manually bridging the gap between the AI's "brain" and my local files, I built an MCP Server that allows the AI to handle the export itself.

With the AI Question Copier acting as an MCP server, you don't hit Ctrl+C. You just tell the AI:

"I like these questions. Export them as a Quizizz CSV and a printable PDFHandout."

The AI "sees" the available tools, parses its own reasoning into the correct schema, and triggers the file generation locally.

Tech Stack

Language: TypeScript / Node.js

Protocol: Model Context Protocol (MCP)

Parsing: Intelligent regex-based "Smart-Parse" for Q&A structures.

Outputs: PDF (handouts), XLSX (Quizizz/Kahoot), JSON (LMS), and Markdown.

How to use it in 60 seconds

If you’re using Claude Desktop, you can bind this tool by adding it to your claude_desktop_config.json:

{
  "mcpServers": {
    "question-exporter": {
      "command": "node",
      "args": ["/PATH_TO_PROJECT/mcp-server/dist/index.js"]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Once restarted, you'll see the 🔌 icon. Your AI is now an automated education assistant.

Why this matters

We are moving away from "Chatbots" and toward "Actionable Agents." MCP is the "USB-C for AI"—a standardized way to let models interact with the world securely. Whether you are a teacher, a developer, or a technical trainer, removing the "copy-paste tax" is the first step toward true productivity.

You are welcomed to view my project at MCP_Markdown_Formatter

Top comments (0)