Skip to content

Support for serving raw markdown #3973

Open

Description

@upman

LLMs are beginning to access documentation sites with MCP servers acting as intermediaries. Lots of them crawl documentation sites and convert the html back to markdown. This is inefficient and the markdown -> html -> markdown conversion often leaves a lot of additional irrelevant text in the output.

Can mkdocs support a text/markdown content-type header and serve the raw markdown?

Happy to look into what it takes to implement this if there is interest/alignment on this.

Activity

  1. upman commented on May 12, 2025

    @upman
    Author

    Alternative: https://github.com/pawamoy/mkdocs-llmstxt

    This seems to convert the generated html back to markdown instead of just using the source markdown files :(

  2. njbrake commented on Jul 10, 2025

    @njbrake

    Hi team! My team was just thinking about this too. This would be a great feature add for mkdocs.

  3. gialmisi commented on Feb 5, 2026

    @gialmisi

    It would be fantastic to have an option to generate an llms.txt file from the docs.

  4. kinjelom commented on Sep 15, 2026

    @kinjelom

    @upman, you might want to check this out:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions