Purpose
scorm-mcp-server is used to convert completed HTML learning modules, Claude Design .dc package files, or content exports from mobile learning platforms (Excel activity templates plus media) into course packages (.zip / PIF) that comply with the SCORM 2004 (or 1.2) standard, so they can be imported into any SCORM-compatible LMS. It can also validate SCORM zips from any source and explain the specific reasons why an LMS might reject them.
Main capabilities
- Package rather than rewrite: The original HTML is preserved; the tool does only three things: it inlines all resources such as CSS, @import, fonts, JS, images, srcset, favicon, etc. as data URIs, achieving 100% offline operation; it injects a small runtime that reports completion status, progress percentage, and time spent, and supports resuming learning across sessions; it generates a manifest and packages the 15 official ADL XSD schemas, and the manifest undergoes real consistency validation against these schemas, not merely well-formedness.
- Progress and completion: No advance preparation is required. If the HTML does not declare milestones, the packager automatically generates them based on the document structure (sections → articles → headings, up to 8, triggered by view), so ordinary HTML can also obtain meaningful progress. This can be disabled with auto_milestones: false. Milestones can also be declaratively marked in the HTML; at runtime, progress_measure = number of milestones reached / total, and once all are reached, completion_status = "completed" is set. It is recommended to set 4–8 milestones per micro-module. Resuming learning is automatic (cmi.suspend_data + cmi.location), and progress does not go backward.
- Scores and quizzes (optional): Setting mastery_score (0..1) enables score-based success status and adds a sequencing objective to the manifest. A single line in the content can report a score; at runtime it is mapped to cmi.score., success_status = passed/failed is set according to mastery_score, and completion and progress are reported. dc: event names are accepted as aliases.
- Item-level tracking (v2.3): CanEach answer is reported as a cmi.interactions record, so the LMS gradebook shows which questions were answered incorrectly, not just the total score. Distinguishes dialects (2004's learner_response / timestamp vs 1.2's student_response / time, incorrect vs wrong), and is best-effort by design: if the LMS refuses to write an interaction, a warning is logged and the session continues. Quizzes generated by the mobile learning migration automatically report interactions, one record per question, including the question text, learner answer, expected answer, and latency.
- SCORM 1.2, batch processing, and CLI (v2.1): Passing scorm_version: "1.2" generates a 1.2 manifest (validated against the built-in 1.2 XSD, with adlcp:masteryscore when mastery_score is set). The injected runtime is adaptive: it communicates with the API exposed by the hosting LMS (API_1484_11 or API), maps the data model (single lesson_status, 0-100 score, HH:MM:SS session time, 4096-character suspend data), and does not downgrade an already-passed status. With batch: true, input_path is treated as a course directory (each subdirectory, .zip, or .html is one course), one package per course, producing a merged batch-report.json, and an error in a single course does not affect the others. The CLI can be used without an MCP client.
- Web UI: The ui command opens a local page; drag in an .html or .zip, choose the SCORM version and an optional passing score, and download the course package. It runs entirely on the local machine and uploads nothing.
- Library API: buildPackage() is the public API for pipelines and SaaS backends.
- Diagnostics: The scorm_selftest MCP tool packages a built-in constant HTML and reports the version, elapsed time, and output path, distinguishing "server failure" from "input problem" within one second.
- Validate any SCORM package (v2.3): scorm_validate answers "why does my LMS reject this zip", works with any SCORM package, and does not modify the input. Checks include: zip readability, whether imsmanifest.xml is at the root (it can detect the classic mistake of "zipping a folder instead of its contents" and give the fix), manifest well-formedness, SCORM version detection (2004/1.2), a launchable organization/item/resource chain, whether the launch file and every <file href> exist in the archive (case-only mismatches are flagged—they work on Windows but fail on Linux LMS servers), and full XSD validation against the official ADL schemas—preferring the package's own XSD and falling back to the built-in copy, so packages without schemas can still be validated. Exit codes 0/1 can be used in CI pipelines; it is also exposed as the scorm_validate MCP tool and the validatePackage() library API.
Usage
- Try it online (option 0): Visit https://scormpackager.vercel.app,拖入课程、选择 SCORM version, download the course package. Files are processed in memory and not stored, but they are transmitted to the server; for actual work, using the local method is recommended, as data does not leave the machine and there is no 4 MB limit.
- One-click install (Option A, recommended): Download scorm-mcp-server-x.y.z.mcpb from Releases, drag and drop the .mcpb in Claude Desktop → Settings → Extensions, choose the output folder and enable it.
- npm (Option B, any MCP client): No installation step required; add the configuration to the client's MCP configuration (for Claude Desktop, ~/Library/Application Support/Claude/claude_desktop_config.json). Registry name: io.github.giacomomaria81/scorm-mcp-server (MCP registry).
- Build from source (Option C, developers): After building, point the configuration to node /ABSOLUTE/PATH/scorm-mcp-server/dist/index.js. After restarting Claude, the scorm_package tool is ready to use. In the conversation: build the module with Claude Design, then say "package this module as SCORM", and Claude will call scorm_package and return the .zip path.
- Testing without an LMS account: Open scorm-test-harness.html through a small local server, drag in the generated .zip, and you can see the live progress percentage, completion status, and the full LMS API call log (0 errors expected).
When to use it
Scenarios where existing HTML learning content or mobile learning export content needs to be quickly converted into a SCORM course package and imported into an LMS; scenarios where SCORM needs to be packaged and validated in a local offline environment; scenarios where the validity of a SCORM package needs to be validated in a CI pipeline; scenarios where question-level score tracking is needed.
Limitations and notes
- When passing a .dc package, pass its folder or .zip, not the standalone .dc.html (when sibling files are missing, it isinert).
- Resource references are restricted to within the module folder: ../ or absolute paths pointing outside will not be inlined, and a warning will be issued instead.
- Question-level interactions are written on a best-effort basis; if the LMS rejects them, only a warning is logged.
- The tool language (BCP-47, default fr-FR) is applied as <html lang="…"> when the source HTML does not declare it.
- Requires Node ≥ 20; schema tests require xmllint (libxml2-utils).
- The extension runs entirely locally: no data collection, no telemetry, no third parties. The only network activity is downloading resources referenced by your own HTML in order to embed them in the offline package. See PRIVACY.md for the full policy.
- The project is MIT licensed.