A Kiwix library (ZIM files) served to AI agents over MCP: offline, citable, token-budgeted documentation search and reading. You supply the ZIMs; none are shipped.
pip install zimlore==0.1.0 Copy PIP instructions
You supply the ZIMs. None are shipped, and .gitignore names every way one could be staged (see NOTICE).
pip install "zimlore[mcp]" zimlore catalog flask # search the public Kiwix catalogue zimlore get devdocs_en_flask # download it, verified by SHA-256, into ~/.zimlore/zim zimlore search "application factory" -l flask zimlore read flask§patterns/appfactories/index zimlore mcp # the MCP server, on stdio Managing what is installed (none of these touch the network):
zimlore du # disk use per library zimlore verify [--adopt] # check files against their provenance record and libzim's checksum zimlore remove flask --yes # delete (dry run without --yes; --edition DATE or --all when several) zimlore prune --keep 2 --yes # drop old zimlore-installed editions and stale partial downloads # (--include-unmanaged also deletes files zimlore did not install) Putting ZIMs in place (add is local; sync and get use the network and resume an interrupted download):
zimlore add some.zim [--link] # copy (or link) a local ZIM in after libzim opens it and its checksum holds zimlore sync --group web-testing --dry-run # plan against a manifest or a named group; sizes are approximate zimlore sync --manifest .zimlore.toml [--update] # install what is missing; --update stages newer editions A manifest (./.zimlore.toml, else $ZIMLORE_HOME/libraries.toml) names catalogue entries only, never URLs or paths, so it can be committed: libraries = ["devdocs_en_python"], groups = ["infra"], max_age_days = 365, budget = "2GB" (the library may not grow past it). sync never removes anything. The shipped groups (languages-core, web-testing, infra) are an editorial default awaiting the maintainer's decision.
Every download records a sidecar ( .zimlore.json: source URL, verified SHA-256, time). A file without one reports provenance: unrecorded in zim_libraries, zim_resolve and zim_cite; it is never presented as official.
Register it with a client (this edits your client's configuration, so it is yours to run):
claude mcp add --scope user zimlore -- \Scripts\zimlore.exe mcp Installing documentation, by hand or by an agent with a shell Any agent that can run a command can install documentation; nothing needs the MCP server for that. Every missing-library error already names the command. The Kiwix catalogue is searchable (q, lang, tag, maxsize; the OPDS description lists them), so:
zimlore catalog playwright # search the live catalogue zimlore catalog --tag devdocs --max-mb 1 # every DevDocs ZIM of at most 1 MB (140 on 2026-11-07) zimlore available flask # the same, offline, from a cached snapshot (catalog --refresh) zimlore get devdocs_en_flask # download, verified against the .meta4 SHA-256 zimlore add ~/Downloads/some.zim # a ZIM you already have: opened, checksum-checked, recorded zimlore sync --group languages-core --dry-run # plan a whole set first; drop --dry-run to install Each install writes a provenance record, so zim_cite can say where a file came from. Installing never needs the MCP server, and the MCP server never installs: planned on-demand installation from a package URL (pkg:pypi/flask@3.1.0 to that version's official docs) is designed in docs/on-demand-docs.md, not built.
ZIMLORE_HOME (default ~/.zimlore), subdirectory zim/. Set ZIMLORE_ZIM_PATH (a list separated by ; on Windows, : elsewhere) to read an existing Kiwix library where it already is. Nothing is ever written inside the repository. An optional $ZIMLORE_HOME/aliases.json maps your own names: {"py": "devdocs_en_python"}.
One reference grammar, accepted everywhere: devdocs_en_flask§blueprints/index#why-blueprints¶3. The library may be any alias (flask§…), :: is the ASCII spelling of §, and a bare path works when library is given. ¶n counts blocks of our conversion of the article, so the entry path and anchor are the durable part.
Conventions inherited from rfclib and itulib:
zimlore catalog --refresh (the one command here that uses the network, besides catalog QUERY, get and outdated) stores the English Kiwix catalogue in $ZIMLORE_HOME/catalog.json, about 0.4 MB for 1,309 entries. After that zimlore available flask and zimlore catalog --offline [flask] say what could be installed and the exact zimlore get to run, with no network and with the snapshot's age. The MCP server reads the same file: zim_available, and a zim_resolve/zim_search miss carries obtainable (the top five), so an agent can tell the user what to install instead of concluding a topic is undocumented. Without a snapshot the answer is an error naming zimlore catalog --refresh; a damaged snapshot is an error too, never an empty list.
Pick Context7 when you need the newest release of a fast-moving library and are online. Pick zimlore when you are offline, behind a policy that forbids sending queries out, want a reproducible snapshot, or want the same documents every run. They are not exclusive.
Measured against the live catalogue on 2026-11-07 (docs/research.md has the method):
python -m pip install -e . --group dev # pip 25.1+ python -m pytest -q # no ZIM needed: tests build a synthetic one with libzim's writer python -m ruff check . ; python -m ruff format --check . ; python -m mypy zimlore tests python scripts/eval_retrieval.py # needs devdocs_en_flask and devdocs_en_python installed ROADMAP.md lists every obligation with the test that would fail if it regressed; PLAN.md records the design decisions; docs/research.md the sources.
Both files in this release have provenance metadata.
context7 devdocs documentation kiwix libzim mcp model-context-protocol offline openzim zim
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




