Skip to main content

Django Chainsaw

io.github.syrian963/django-chainsaw-mcp

v0.1.5Updated Sep 10, 2026stdio · PyPI

Finds what will hurt in a Django project: cascades, N+1, unsafe migrations, tenant leaks.

Install

Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add django-chainsaw-mcp -e 'DJANGO_CHAINSAW_PROJECT_PATH=<your-django-chainsaw-project-path>' -e 'DJANGO_CHAINSAW_SETTINGS_MODULE=<your-django-chainsaw-settings-module>' -- uvx django-chainsaw-mcp==0.1.5

Configuration

2 settings.

  • DJANGO_CHAINSAW_PROJECT_PATH
    Env var· required
    Absolute path to the Django project to analyse - the directory containing manage.py, or whichever directory the settings module is importable from. This server must run in an interpreter that can import that project, so install it into the project's own environment rather than an isolated one.
  • DJANGO_CHAINSAW_SETTINGS_MODULE
    Env var· required
    Dotted path to the settings module, for example myproject.settings. Point it at the settings the site actually runs on: a base or partial module can import cleanly and load no models, and the server says so when that happens.

Listed in the official MCP Registry since Sep 10, 2026. Mirrored daily; last checked Nov 26, 2026.