Skip to main content
Glama
StuartMacKay

django-mcp-inspector

by StuartMacKay

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

django://settings

All settings (sensitive values redacted)

django://apps

Installed apps, labels, paths, model names

django://urls

URL pattern tree flattened to pattern / view / name

django://models

Every model's fields, types, and relations

django://models/{app_label}

Fields for a single app

django://migrations

Applied and pending migrations per app

Related MCP server: django-mcp

Usage

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-inspector

Pass --settings instead of the environment variable if you prefer:

uv run --with django-mcp-inspector django-mcp-inspector --settings myproject.settings

Exclude third-party app noise:

uv run --with django-mcp-inspector django-mcp-inspector --settings myproject.settings --exclude-site-packages

As 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-packages

Connecting 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+

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    F
    maintenance
    Integrates 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.
    72
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    A 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.
    109
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server exposing the Backtest360 engine API as tools for AI agents.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/StuartMacKay/django-mcp-inspector'

If you have feedback or need assistance with the MCP directory API, please join our Discord server