NestDaddy

Django Chainsaw

io.github.syrian963/django-chainsaw-mcp · v0.1.5

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

Connect Runs on your machine

Terminal
claude mcp add django-chainsaw-mcp -e DJANGO_CHAINSAW_PROJECT_PATH=<DJANGO_CHAINSAW_PROJECT_PATH> -e DJANGO_CHAINSAW_SETTINGS_MODULE=<DJANGO_CHAINSAW_SETTINGS_MODULE> -- uvx django-chainsaw-mcp==0.1.5
claude_desktop_config.json
{
  "mcpServers": {
    "django-chainsaw-mcp": {
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp==0.1.5"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "<DJANGO_CHAINSAW_PROJECT_PATH>",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "<DJANGO_CHAINSAW_SETTINGS_MODULE>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "django-chainsaw-mcp": {
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp==0.1.5"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "<DJANGO_CHAINSAW_PROJECT_PATH>",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "<DJANGO_CHAINSAW_SETTINGS_MODULE>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "django-chainsaw-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp==0.1.5"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "<DJANGO_CHAINSAW_PROJECT_PATH>",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "<DJANGO_CHAINSAW_SETTINGS_MODULE>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
DJANGO_CHAINSAW_PROJECT_PATH
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
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.

Details

Package[email protected] (PYPI, stdio)
First published10 Sep 2026
Last updated10 Sep 2026
Registry nameio.github.syrian963/django-chainsaw-mcp

More other servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.