Includes documentation on Celery task management best practices within Django applications, as referenced in the generated documentation structure.
Supports integration with Windsurf (Codeium's editor) for accessing Django styleguide documentation through MCP protocol.
Provides comprehensive Django best practices and style guidelines divided into sections like Models, Services, APIs, Serializers, URLs, Settings, and Error handling, helping developers follow consistent patterns in Django projects.
Includes testing best practices for Django applications, with pytest mentioned as part of the development workflow.
Django Styleguide for MCP Servers
Ready-to-use Django Styleguide documentation for Model Context Protocol (MCP) servers in Cursor, Windsurf, Claude Desktop, and other AI editors.
What is this?
This repository takes the original Django Styleguide documentation as a git submodule, automatically splits it into smaller, AI-friendly files and provides access to them through the llms.txt format.
Result: Your AI assistant can easily find and use all Django best practices from the original styleguide.
Related MCP server: DevDocs MCP
How it works
Git submodule: We include the original Django Styleguide as a submodule
Automatic splitting: CLI tool splits the large README.md into separate files by sections
llms.txt generation: Creates an index file with absolute URLs for each section
Ready for consumption: MCP servers can easily access the documentation
What you get
š 18 separate files with Django best practices (Models, Services, APIs, etc.)
š llms.txt index with direct links to GitHub raw content
š Automatic updates when the original styleguide changes
š¤ AI-friendly format for MCP servers
Example generated documentation
After processing you get this structure:
llms.txt contains direct links:
Integration with AI editors
Cursor
Add to ~/.cursor/mcp.json:
Add to your Cursor Rules:
Windsurf
Similar configuration in ~/.codeium/windsurf/mcp_config.json.
Claude Desktop
Add to ~/Library/Application\ Support/Claude/claude_desktop_config.json.
Keeping documentation up-to-date
Documentation automatically updates when the original Django Styleguide changes:
Development
If you want to make changes or run locally:
Project structure
Acknowledgments
Django Styleguide by HackSoft for excellent Django practices
mcpdoc by LangChain for MCP server inspiration
Model Context Protocol for the MCP specification
Related projects
Django Styleguide - The original Django best practices guide
mcpdoc - MCP server for documentation access
llms.txt - Standard for AI-friendly documentation