h5p-mcp

v0.11.1
@missing-elements/h5p-mcp Checked 5 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…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

h5p_types H5P content types

The H5P content types and how to write a source for one. With no type: the list, and how to write good content. With a type: its notes, a tested example and its fields. Read the type's answer before writing its source.

ParameterTypeDescription
typestringA content type, as H5P.MultiChoice or "multiple choice"

h5p_build Build an H5P package

Builds a .h5p package from a source, its params holding only what differs from the type's defaults. A file is { "path": ... }, in a folder this server may use or at a web address. Writes the package and its source (.source.json) to output, or under a new name in the first folder it may use. A source with problems is refused, each problem named by its path. With verify (the default), plays the package in a headless browser and reports whether it works.

ParameterTypeDescription
source *objectThe source, as h5p_types describes it for its type
outputstringLeave it out unless the person named a place: a file name, or a path in a folder this server may use
verifybooleanPlay it and report whether it works; default true

h5p_media Look at media files

Says what a picture, a video or a recording is before a source names it: a picture's size in pixels, a video's length and whether it has sound, a Vimeo video's length as Vimeo gives it. Call it before writing an Interactive Video's times.

ParameterTypeDescription
files *arrayEach by its file name alone, its path in a folder this server may use, or its web address

h5p_read Read an H5P package

Reads a .h5p package back into its source, to change it and build it again with h5p_build: its type, title, language, licence, authors, and the params that differ from the defaults. Writes the source and the package's media into a new folder beside it, and answers with the source, each file named where it was written. Reads content made for the library pack's versions of its libraries.

ParameterTypeDescription
package *stringThe .h5p by its file name alone, as the person names it, or its path in a folder this server may use

h5p_preview Preview an H5P package

Opens a .h5p package in the person's browser in the real player, served from this computer until its tab is closed. Answers with the address.

ParameterTypeDescription
package *stringThe .h5p to open, in a folder this server may use