mkdocs-llm-context
Bundle your MkDocs site into a single file for LLM or agent context.
Installation
pip install mkdocs-llm-context
Usage
Add the plugin to your mkdocs.yml:
plugins:
- llm-context
Configuration
plugins:
- llm-context:
format: json # "json" (default) or "txt"
output: llm-context.json # default derives from format
exclude:
- changelog/
- api/reference/*
| Option | Default | Description |
|---|---|---|
format |
json |
Output format: json (list of {url, title, content}) or txt (sections separated by ---) |
output |
llm-context.{format} |
Filename written to the site directory |
exclude |
[] |
Glob patterns matched against page.url — matching pages are omitted |
After mkdocs build, the file appears in site/ and can be used as context for an LLM or agent.
Development
git clone https://github.com/agibson22/mkdocs-llm-context
cd mkdocs-llm-context
python -m venv .venv && source .venv/bin/activate
make install
make test # run tests
make lint # run ruff
make build # build the wheel
See CONTRIBUTING.md for more details.
Metadata
Release files for mkdocs-llm-context 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkdocs_llm_context-0.1.0.tar.gz | 8.3 kB | With provenance | Details for mkdocs_llm_context-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_llm_context-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_llm_context-0.1.0-py3-none-any.whl |
Total release size: 12.8 kB
Release files / mkdocs_llm_context-0.1.0.tar.gz
| Download URL | mkdocs_llm_context-0.1.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e81c378c1a77ba59947af2ddedb826af5beaf8895ef0845236c43fe6ff90120
|
|
BLAKE2b-256 checksum How to use checksums |
143c5934a55a5b6ced9ff69704cc24d691e06870121125161d9462c2787acbc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 25, 2026.
Transparency logRelease files / mkdocs_llm_context-0.1.0-py3-none-any.whl
| Download URL | mkdocs_llm_context-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7e54752ce1c7188ddf106d3128403f4e610d9214725529544cdeffd7f5ee42f
|
|
BLAKE2b-256 checksum How to use checksums |
0d8f33e520dce239d8aa36cd5319410104f2f5a8a4a6c6da239183567fe6ab2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 25, 2026.
Transparency logSecurity for mkdocs-llm-context 0.1.0
Provenance
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mkdocs_llm_context-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 25, 2026.
Transparency logA note on package security
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.