skillfed

mkdocs-render-swagger-plugin

MKDocs plugin for rendering swagger & openapi files.

mkdocs-render-swagger-plugin v0.1.2 149.2K downloads/30d#11,002 on PyPI78
Permissive license DORMANT released

What it is and what it does

mkdocs-render-swagger-plugin is an MkDocs plugin that embeds interactive Swagger UI documentation directly into your MkDocs site by rendering OpenAPI and Swagger JSON schemas. It works by inserting special markup tags into your markdown files—either `!!swagger FILENAME!!` for local JSON files or `!!swagger-http URL!!` for external schemas—which the plugin then converts into fully interactive API documentation at build time.

The plugin uses Swagger UI from a CDN by default but allows you to specify custom JavaScript and CSS assets if needed. It integrates with the MkDocs plugin system and respects the OpenAPI specification standard, making it compatible with schemas generated by tools like FastAPI and Pydantic. However, the project is currently dormant with no active maintenance, so it may not receive updates for compatibility issues with newer mkdocs or OpenAPI versions.

Use it for:

  • Embed interactive API documentation directly in your project's MkDocs site without maintaining separate documentation portals.
  • Display OpenAPI schemas generated by FastAPI or similar frameworks as part of your technical documentation.
  • Reference multiple API specifications from different sources (local files or external URLs) within a single documentation site.
  • Customize Swagger UI appearance by providing your own CSS and JavaScript assets instead of relying on the CDN.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Renders Swagger and OpenAPI schemas as interactive documentation within MkDocs sites using Swagger UI, supporting both local JSON files and external URLs.

Yes, if you are building MkDocs documentation and want to embed interactive OpenAPI/Swagger schemas with minimal setup. The low install friction and permissive license make it straightforward to add. However, be aware that maintenance is dormant—if you encounter issues or need support for newer OpenAPI versions, you may need to fork or patch the plugin yourself. Suitable for stable, self-contained documentation projects.

Install

mkdocs-render-swagger-plugin on PyPI

pip

pip install mkdocs-render-swagger-plugin

uv

uv add mkdocs-render-swagger-plugin

poetry

poetry add mkdocs-render-swagger-plugin

Installing mkdocs-render-swagger-plugin

Before you install

Low friction install as a pure Python wheel with a single runtime dependency on mkdocs. Maintenance is dormant—last release was 2024-05-26, with no commits since 2024-09-23, so expect no active bug fixes or feature updates.

License in practice

MIT license (permissive) means you can use, modify, and distribute this plugin freely in commercial and open-source projects with minimal restrictions.

Quickstart

pip install mkdocs-render-swagger-plugin

Add to mkdocs.yml:
plugins:
  - render_swagger

In your markdown file:
!!swagger openapi.json!!
or
!!swagger-http https://example.com/openapi.json!!

Requires Python 3.8 or later and an existing mkdocs project; OpenAPI files must conform to the OpenAPI specification.

Verify before relying

  • Whether the plugin works with recent mkdocs versions given the dormant maintenance status.
  • Whether Swagger UI CDN dependencies (unpkg) remain stable and accessible.
  • Support for OpenAPI 3.1 or only earlier versions of the specification.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 1 — mkdocs
Maintenance dormant — 810 days since the last release
Last repo commit
First released
Downloads 149,151/month — #11,002 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mkdocs_render_swagger_plugin-0.1.2-py3-none-any.whl

License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

mkdocs openapi documentationswagger ui mkdocs pluginrender openapi schemasapi documentation mkdocsswagger json viewer mkdocsopenapi spec rendering
api-documentationopenapimkdocs-plugin

More Documentation packages

docutils

Docutils converts plaintext documentation in…

unclear · top 1,000 on PyPI

Sphinx

Sphinx generates professional documentation…

permissive · top 1,000 on PyPI

griffe

Griffe extracts the complete structure and…

permissive · top 1,000 on PyPI

sphinxcontrib-serializinghtml

A Sphinx extension that outputs documentation…

permissive · top 1,000 on PyPI

alabaster

Alabaster is a clean, responsive Sphinx theme…

permissive · top 1,000 on PyPI

sphinxcontrib-htmlhelp

A Sphinx extension that generates HTML help…

permissive · top 1,000 on PyPI

essentials-openapi

Generates OpenAPI v2 and v3 documentation in…

permissive · top 15,000 on PyPI

mkdocs-swagger-ui-tag

A MkDocs plugin that embeds Swagger UI directly…

permissive · top 15,000 on PyPI

neoteroi-mkdocs

Provides a collection of MkDocs plugins and…

permissive · top 15,000 on PyPI

swagger-plugin-for-sphinx

A Sphinx plugin that embeds interactive Swagger…

permissive · top 5,000 on PyPI

flask-swagger-ui

Adds Swagger UI to Flask applications as a…

permissive · top 5,000 on PyPI

swagger-ui-py

Integrates Swagger UI documentation into Python…

permissive · top 15,000 on PyPI

django-rest-swagger

Generates Swagger UI documentation and OpenAPI…

permissive · top 15,000 on PyPI

openapi-codec

Converts between OpenAPI/Swagger schemas and…

permissive · top 15,000 on PyPI

scalar-fastapi

Serves interactive, browser-based API…

permissive · top 5,000 on PyPI

aiohttp-swagger

Generates Swagger API documentation and…

permissive · top 15,000 on PyPI