ORM Lens
Analyze schemas, generate ER diagrams, detect N+1 queries, and lint migrations for Django and SQLAlchemy using zero-runtime static analysis.
ORM Lens provides deep static analysis and schema visualization for Django and SQLAlchemy (Alembic) applications without requiring a database connection, virtual environment, or app startup. It features live ER diagrams, automated N+1 query detection across function calls, schema drift detection, and migration-risk assessments. Available as a VS Code extension, a terminal CLI/CI tool, and an MCP server, ORM Lens exposes read-only tools that allow AI coding agents to accurately understand and query ground-truth database schemas.
主な機能
01Zero-config static parsing without booting apps, virtual environments, or databases
02Automated N+1 query detection with concrete loader recommendations
03Model Context Protocol (MCP) server providing read-only schema queries for AI agents
04Migration-risk linting and blast-radius analysis for destructive schema changes
05Interactive entity-relationship (ER) diagrams and relationship hover inspection
06114 GitHub stars
ユースケース
01Equipping AI coding agents with accurate, ground-truth ORM schema context via MCP
02Automating migration safety checks and PR schema-impact reviews in CI pipelines
03Navigating and visualizing complex multi-app database schemas in unfamiliar codebases