django-mcp-inspector
Provides resources to inspect Django project settings, installed apps, URL patterns, models with fields and relations, and migration status at runtime.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@django-mcp-inspectorlist all installed apps and their models"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
django-mcp-inspector
Starts a Model Context Protocol server that exposes Django runtime information as resources, allowing AI agents to inspect a live Django project without any static file analysis.
Resources
URI | Contents |
| All settings (sensitive values redacted) |
| Installed apps, labels, paths, model names |
| URL pattern tree flattened to pattern / view / name |
| Every model's fields, types, and relations |
| Fields for a single app |
| Applied and pending migrations per app |
Related MCP server: django-mcp
Usage
Zero project modification (recommended)
Run as an ephemeral tool — no changes to INSTALLED_APPS or requirements:
DJANGO_SETTINGS_MODULE=myproject.settings uv run --with django-mcp-inspector django-mcp-inspectorPass --settings instead of the environment variable if you prefer:
uv run --with django-mcp-inspector django-mcp-inspector --settings myproject.settingsExclude third-party app noise:
uv run --with django-mcp-inspector django-mcp-inspector --settings myproject.settings --exclude-site-packagesAs an installed app
Add mcp_inspector to INSTALLED_APPS:
INSTALLED_APPS = [
...
'mcp_inspector',
]Then run the management command:
python manage.py mcpserver
python manage.py mcpserver --exclude-site-packagesConnecting an MCP client
The server communicates over stdio. Point any MCP-compatible client (Claude Desktop, custom agent, etc.) at the process.
Example Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"django": {
"command": "uv",
"args": [
"run", "--with", "django-mcp-inspector",
"django-mcp-inspector", "--settings", "myproject.settings"
],
"env": {
"PYTHONPATH": "/path/to/your/project"
}
}
}
}Requirements
Python 3.12+
Django 4.2+
mcp 1.0+
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
- UnifAPIOAuthcom.unifapi
Hosted MCP server for live public-data APIs and Skills for AI agents.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Django MCP server that exposes tools and resources to AI agents using simple decorators, with auto-discovery, type safety, and custom authentication.MIT
- AlicenseNot gradedqualityFmaintenanceIntegrates MCP tool hosting into Django applications, enabling easy definition and serving of MCP tools, resources, and prompts via ASGI with support for URL path parameters and logging.599 PyPI72MIT
- AlicenseNot gradedqualityCmaintenanceExposes Django REST Framework API documentation via MCP for AI coding agents to read, understand, and write frontend integration code.16MIT
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol (MCP) server for developing Django applications. It exposes Django project information through MCP tools, enabling AI assistants to better understand and interact with Django codebases.1,038 PyPI111MIT