mkdocs-get-deps
An extra command for MkDocs that infers required PyPI packages from `plugins` in mkdocs.yml
What it is and what it does
mkdocs-get-deps is a command-line tool that reads your MkDocs configuration file and automatically identifies which PyPI packages you need to install to build your documentation site. It works by scanning the `plugins`, `themes`, and `markdown_extensions` sections of mkdocs.yml and cross-referencing them against a catalog of known MkDocs projects to produce a list of package names. The tool depends on importlib-metadata, mergedeep, platformdirs, and pyyaml to parse configuration and manage lookups.
The tool is designed to eliminate the manual step of figuring out which dependencies to install after configuring a MkDocs site. The approach trades off strict dependency pinning for convenience—it's most useful in development environments or for quick setup, though production CI workflows typically prefer explicit requirements files.
Use it for:
- Quickly bootstrap a new MkDocs project by auto-installing all plugin and theme dependencies without manual research.
- Generate a requirements.txt snapshot of all MkDocs dependencies for a given configuration.
- Install dependencies in one command during local development by piping output to a package manager.
- Verify which packages a mkdocs.yml file declares as needed before committing to a repository.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Scans a MkDocs configuration file to automatically detect and list the PyPI packages required by its plugins, themes, and markdown extensions.
Yes—if you use MkDocs and want to avoid manually tracking plugin and theme dependencies. The tool is lightweight, actively maintained, and has no security vulnerabilities. Install it as a development dependency or globally; the low friction and permissive MIT license make it a safe addition to any MkDocs workflow.
Install
mkdocs-get-deps on PyPI
pip
pip install mkdocs-get-depsuv
uv add mkdocs-get-depspoetry
poetry add mkdocs-get-depsInstalling mkdocs-get-deps
Before you install
Low friction install with no compiled dependencies. Actively maintained as of the latest release date, with stable Python 3.9+ support across modern versions.
License in practice
MIT license permits commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install mkdocs-get-deps
# Then in a directory with mkdocs.yml:
mkdocs-get-deps
# Or save to a file:
mkdocs-get-deps > requirements.txt
Requires mkdocs.yml to exist in the current directory (or specify an alternate path with --config); relies on the official MkDocs catalog for plugin lookup.
Verify before relying
- Accuracy of the plugin/theme/extension catalog used for reverse lookup and whether it covers all commonly-used MkDocs extensions
- Whether the tool handles custom or third-party plugins not in the official catalog
- Performance characteristics when scanning large or complex mkdocs.yml files
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — importlib-metadata, mergedeep, platformdirs, pyyaml |
| Maintenance | actively maintained — 157 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 16,185,016/month — #1,158 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mkdocs_get_deps-0.2.2-py3-none-any.whl
Keywords: mkdocs
Tags
More Documentation packages
Docutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
MarkdownConverts Markdown text to HTML using a Python…
permissive · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
griffeGriffe extracts the complete structure and…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
mkdocs-materialMaterial for MkDocs is a professional theme and…
permissive · top 5,000 on PyPI
mkdocsMkDocs generates static HTML documentation…
permissive · top 5,000 on PyPI
mkdocs-simple-hooksA MkDocs plugin that lets you define custom…
permissive · top 15,000 on PyPI
mkdocs-clickGenerates API documentation for Click…
permissive · top 5,000 on PyPI
mkdocstringsAn MkDocs plugin that automatically generates…
permissive · top 5,000 on PyPI
mkdocs-gen-filesMkDocs plugin that generates documentation…
permissive · top 5,000 on PyPI
mkdocs-meta-managerA MkDocs plugin that automatically applies meta…
permissive · top 5,000 on PyPI
mkdocs-macros-pluginExtends MkDocs with Jinja2 templating to use…
permissive · top 5,000 on PyPI
mkdocs-include-markdown-pluginA MkDocs plugin that includes content from…
permissive · top 15,000 on PyPI
mkdocs-redirectsA MkDocs plugin that generates HTTP redirects…
permissive · top 5,000 on PyPI
mkdocs-task-collectorA MkDocs plugin that scans Markdown files for…
permissive · top 15,000 on PyPI