Orm Lens
Read-only MCP tools for inspecting Django and SQLAlchemy schemas, relationships, N+1 risks, drift, and migration impact.
Install Orm Lens
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"orm-lens": {
"command": "uvx",
"args": [
"orm-lens",
"orm-lens-mcp"
],
"env": {
"ORM_LENS_ROOT": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
claude mcp add --env ORM_LENS_ROOT=YOUR_VALUE_HERE --transport stdio orm-lens -- uvx orm-lens orm-lens-mcpRun in your terminal. Add --scope project to share it with your team through .mcp.json.
We couldn’t confirm it starts correctly
The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.
uvx orm-lens orm-lens-mcpProcess exited before answering initialize.
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .
Overview
Use cases
- Inspect model relationships while working in an AI coding client
- Find likely N+1 query loops and suggested eager-loading patterns
- Review Django migrations and Alembic revisions for risk
- Check source-defined schemas for drift without database access
- Assess the impact of removing or changing a model field
Key features
- 14 read-only MCP tools
- Django model and migration analysis
- SQLAlchemy and Alembic analysis
- N+1 query detection
- Schema drift and migration-risk checks
- Static parsing without database or app startup
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 10d ago via OSV.dev · orm-lens (PyPI)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Orm Lens works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Orm Lens
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/orm-lens)<a href="https://allmcps.com/mcp/orm-lens"><img src="https://allmcps.com/api/badge/orm-lens?style=directory" alt="Orm Lens on AllMCPs" /></a>