Implementation
From an existing site to a published MPF representation — one build step.
MPF is generated, not hand-written: the build reads the site’s HTML output and emits the companion files beside it. The server keeps serving static files; nothing changes in production infrastructure.
This page describes the path. The full implementation guide — installation, configuration reference, per-page overrides, discovery setup, verification and troubleshooting — is maintained on docs.esfi.eu, which is authoritative: MPF Implementation.
The path
01 — Get the reference implementation
The reference implementation is mpf-build. Source, installation and releases: git.esfi.eu/esfi/mpf.
02 — Declare the publisher
A single mpf.config.json in the project root states who the publisher is, which languages the site uses, and the default declarations every page carries: provenance, processing scope, contact and the publisher signature. Individual pages can override those defaults.
These are publisher decisions, not technical settings. Deciding what the site declares — and what it does not — is the real work of implementation.
03 — Generate after the HTML is final
mpf-build runs over the finished HTML output, typically as the last step of the site build. Every page receives its .mpf companion at the same path, and the machine indexes are written at the site root.
What the build produces
| Artifact | Purpose |
|---|---|
A .mpf file beside each page |
The machine representation of that page |
llms.mpf |
Machine index of all indexed pages |
llms.txt |
Conventional agent entry point, updated with MPF references |
Further discovery mechanisms used in ESFI’s reference practice are documented on docs.esfi.eu: Publishing and discovery.
Ordering and drift
Run the generation step after the HTML is final. Each file pins its source with source-hash; regenerating one side without the other creates drift.
A stale companion file is worse than an absent one: it looks authoritative. Keep the step last in the pipeline.
Verify
The simplest check is to open the output: fetch a page’s .mpf file, the site’s llms.mpf and its llms.txt, and confirm that they exist, parse and point to each other. On this site, the .mpf button in the top bar shows the raw file of the page you are reading.
Step-by-step verification and troubleshooting: MPF Implementation.
Guide: docs.esfi.eu — MPF Implementation
Specification: docs.esfi.eu/standards/mpf/0.7
Reference implementation: git.esfi.eu/esfi/mpf
Next: Further work