skillfed

mkdocs-get-deps

An extra command for MkDocs that infers required PyPI packages from `plugins` in mkdocs.yml

mkdocs-get-deps v0.2.2 16.2M downloads/30d#1,158 on PyPI2
Permissive license MIT Active released

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-deps

uv

uv add mkdocs-get-deps

poetry

poetry add mkdocs-get-deps

Installing 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

Development Status :: 4 - BetaEnvironment :: ConsoleEnvironment :: Web EnvironmentIntended Audience :: Information TechnologyLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: DocumentationTyping :: Typed

Tags

mkdocs dependency detectionauto-discover mkdocs pluginsmkdocs requirements generatorinfer mkdocs dependenciesmkdocs plugin resolvermkdocs config scanner
mkdocsdependency-resolutiondocumentation-tooling

More Documentation packages