h5p-mcp

v0.11.1
@missing-elements/h5p-mcp Checked 6 hours ago Published 1 day ago

H5P Author MCP by Missing Elements: a local MCP server that builds playable H5P packages of any content type from a short source, checks them in a real player…

@missing-elements/h5p-mcp lets an AI app make H5P content on your computer: quizzes, fill in the blanks, flash cards, presentations, interactive books, branching scenarios and the rest of the content types the H5P hub serves. It writes a playable .h5p that carries its libraries, checks that it plays in a real H5P player, and opens it in your browser. It reads a .h5p you have back into its source too, to change it and build it again. No H5P site, server or account. It is a local MCP server: your app starts it on your computer, and it sends nothing to a server of ours.

Summary extracted from the README.

H5P Author MCP by Missing Elements

@missing-elements/h5p-mcp lets an AI app make H5P content on your computer: quizzes, fill in the blanks, flash cards, presentations, interactive books, branching scenarios and the rest of the content types the H5P hub serves. It writes a playable .h5p that carries its libraries, checks that it plays in a real H5P player, and opens it in your browser. It reads a .h5p you have back into its source too, to change it and build it again. No H5P site, server or account.

It is a local MCP server: your app starts it on your computer, and it sends nothing to a server of ours. It needs Node 22 or newer, and Chrome or Edge for the check; without either, run npx playwright install chromium once. For a chat app on the web there is h5p-mcp-app.

Add it to your app

Claude Desktop: Settings, Developer, Edit Config, then in claude_desktop_config.json:

{
  "mcpServers": {
    "h5p": { "command": "npx", "args": ["-y", "@missing-elements/h5p-mcp"] }
  }
}

Claude Code: claude mcp add h5p -- npx -y @missing-elements/h5p-mcp

VS Code: in .vscode/mcp.json:

{ "servers": { "h5p": { "command": "npx", "args": ["-y", "@missing-elements/h5p-mcp"] } } }

Then ask, for example: "Make a five-question quiz about the water cycle as an H5P file."

The folders it uses

It reads the files your content names, and writes packages, only in its folders. They are the first of:

  1. the folders you give with --allow, repeated for more, as in "args": ["-y", "@missing-elements/h5p-mcp", "--allow", "/Users/me/Lessons"];
  2. the folders your app gives it;
  3. your Desktop, Documents and Downloads, and never your home folder whole.

It never writes over a file: a name that is taken gets a number, and it says which. With --no-open, a preview is answered with its address instead of opening the browser.

Tools

Tool What it does
h5p_types Lists the content types, and says how to write a source for one
h5p_build Builds a package from a source, with its source beside it as .source.json, and checks that it plays. It says what the package holds and which H5P core a site needs to take it. A source with problems is refused, each problem named
h5p_media Says what a picture, a video or a recording is before your content names it: a picture's size, an mp4's length, which an Interactive Video's times are kept within
h5p_preview Opens a package in your browser, in the real player, served from your computer until its tab is closed
h5p_read Reads a package back into its source, with its pictures and other files, in a new folder beside it. It says what a source cannot hold, such as the author's comments

Both servers also serve the h5p-author skill over MCP's Skills extension (SEP-2640), for an app that loads skills from a server. Installed in your agent instead, with npx skills add missing-elements/h5p-toolkit --skill h5p-author, the same skill builds with these tools wherever they are connected.

What leaves your computer

  • A file named by web address is downloaded. An address on your local network is refused: a guard against a mistaken or planted address, not against a hostile network.
  • A video on YouTube, Vimeo, Panopto or Echo360 is not downloaded. It stays an address, which the player loads wherever it points, as H5P does anywhere. A YouTube or Vimeo address is sent to that site's oEmbed, to ask whether it has the video; Vimeo answers with its length where it has one.
  • Nothing else. Math is drawn by the package's own copy of MathJax, and the check and the preview play the package from your computer.

Your app sends your conversation to its model, as it does without this server.

Licence

MIT. The H5P libraries a package carries are under their own licences, listed in it.

H5P is a trademark of H5P Group. This server is made by Missing Elements and is not affiliated with or endorsed by H5P Group.