Statically analyze Django ORM for models, relations, migrations, indexes, signals, and N+1 issues.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "Django ORM Lens" MCP server from askskill: Run: claude mcp add 'io-github-frowningdev-django-orm-lens' -- uvx django-orm-lens
Please statically analyze the ORM in this Django project, list all models and foreign key/many-to-many relationships, and point out associations that may be complex or error-prone.
A list of models, their relationship structure, and notes on associations that need attention.
Analyze the Django migrations and database indexes in the project, and help me find indexes or migration risks that may be missing, duplicated, or poorly designed.
A list of migration- and index-related issues, with their potential impact highlighted.
Using Django ORM static analysis, identify places in the project where N+1 queries may occur and explain the related models or relationships.
Potential N+1 risk points, along with the relevant ORM structure context.
Django developers can use it to map models, relationships, and signals when taking over a legacy or large codebase. This helps them understand the data layer faster and reduce mistakes when changing the ORM.
Before release, teams can use it to statically inspect migrations and indexes and catch issues that may affect database structure or performance. It fits well into code review or pre-release quality checks.
When ORM query performance issues are suspected, developers can use it for an initial N+1 risk screening to locate models or relationships that may need optimization. This narrows the scope of further performance investigation.
It is a Django ORM static analysis MCP tool. Based on the provided information, it focuses on models, relationships, migrations, indexes, signals, and N+1 issues.
Yes. The original description explicitly mentions N+1, indicating that this is one of the issues it covers.
The provided materials do not include installation steps or prerequisite details. For dependencies, runtime, or configuration requirements, see the source repository.
Inspect database schemas, index issues, table bloat, and query plans.
Connect to MongoDB for schema exploration, querying, analysis, and troubleshooting.
Analyze Cloudflare D1 schemas, relationships, and optimization opportunities more efficiently.
Builds codebase dependency graphs so AI can analyze impact and modify safely.
Analyze MySQL databases with natural language, queries, ER diagrams, and performance insights.
Perform static taint analysis on Python code to detect security vulnerabilities.