AcademyMCP serversDevelopment

Django ORM Lens: Static Model Analysis

Backend teams that maintain large Django projects and want to review the data model in CI, in the editor or during code review.

  • Recommendedour rating
  • 85gitHub stars
  • MITlicence
  • 2 days agolast update
claude mcp add django-orm-lens -e DJANGO_ORM_LENS_ROOT=/abs/path/to/your/project -- django-orm-lens-mcp
README.md

Loading the file...

What it does

A static analysis tool for Django models that works without a database or a running project. It maps models and their relationships, checks migration dependencies and missing indexes, and draws ER diagrams and signal graphs. It also flags possible N+1 query patterns and migration risks, and it can run in an editor sidebar, in CI checks or through an MCP server.

Use cases

  1. 01Draw an ER diagram of a Django app
  2. 02Find models that are missing useful indexes
  3. 03Check migration dependencies before a release

Questions about
Django ORM Lens: Static Model Analysis.

What is Django ORM Lens: Static Model Analysis used for?

Backend teams that maintain large Django projects and want to review the data model in CI, in the editor or during code review. A static analysis tool for Django models that works without a database or a running project. It maps models and their relationships, checks migration dependencies and missing indexes, and draws ER diagrams and signal graphs. It also flags possible N+1 query patterns and migration risks, and it can run in an editor sidebar, in CI checks or through an MCP server.

How do I install Django ORM Lens: Static Model Analysis?

Run this in your terminal: claude mcp add django-orm-lens -e DJANGO_ORM_LENS_ROOT=/abs/path/to/your/project -- django-orm-lens-mcp

Is Django ORM Lens: Static Model Analysis open source?

Yes. The code is on GitHub (FROWNINGdev/django-orm-lens) under the MIT licence.

Is Django ORM Lens: Static Model Analysis safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.