Django ORM Lens MCP Server

Static-analysis MCP server for Django models. 5 read-only tools. No DB, no boot, no creds.

Local serverstdioPython

What is the Django ORM Lens MCP Server?

Static-analysis MCP server for Django models. 5 read-only tools. No DB, no boot, no creds.

What it actually does

Your entire model graph — live in your editor sidebar, gating your CI, and answering your AI agent over MCP. All from static parsing: no database, no runserver, no working venv.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
usesactions/checkout@v4
repohttps://github.com/FROWNINGdev/django-orm-lens
run|
list_appsEvery Django app in the workspace with model counts
list_modelsFlat app.Model list, optional app filter
describe_modelFull field / relation / Meta detail for one model
find_relationsInbound + outbound relations for one model
cascade_previewBlast radius of one delete(), grouped by on_delete
er_diagramER diagram — mermaid / dbml / d2 / plantuml / dot
describe_migration_dependencyPer-app migration DAG: roots, leaves, cross-app deps
suggest_indexesMeta.indexes proposals from observed QuerySet usage
signal_graphSender→signal→handler graph from @receiver decorators
nplusone_scanStatic N+1 findings for the whole workspace

How to install the Django ORM Lens MCP Server

{
  "mcpServers": {
    "django-orm-lens": {
      "command": "django-orm-lens-mcp",
      "env": {
        "DJANGO_ORM_LENS_ROOT": "/abs/path/to/your/project"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
DJANGO_ORM_LENS_ROOTDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Django ORM Lens to uses.”
  • “Use Django ORM Lens to repo.”
  • “Use Django ORM Lens to run.”

Frequently asked questions

Static-analysis MCP server for Django models. 5 read-only tools. No DB, no boot, no creds. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.