Skip to main content

mkdocs-llm-context

CI License: MIT PyPI

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.

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)

Source distribution for mkdocs-llm-context 0.1.0
File Size Uploaded
mkdocs_llm_context-0.1.0.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-llm-context 0.1.0
File Interpreter ABI Platform
mkdocs_llm_context-0.1.0-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page