Koskamo

Django Chainsaw MCP

An MCP server and CLI that statically analyzes a Django project to identify potential issues such as cascade impacts, N+1 queries, unsafe migrations, and unscoped tenant reads. It uses the AST and Django's app registry to provide deterministic results without executing code, allowing agents to query for code quality and database safety concerns.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

Django Chainsaw MCP logo, by syrian963Community listingLocal stdioSource reviewed; not executedPublished by syrian963
You need:It has to run in an interpreter that can import your project.
Vendor documentation

What you can do with it

  • Identify cascade impact of model deletions
  • Detect N+1 query patterns in Django ORM
  • Find unsafe database migrations
  • Locate unscoped tenant reads

Source and maintenance

Community listingRegistry 0.1.5
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

django-chainsaw-mcp 0.1.5

pypi
django-chainsaw-mcp package definition
{
  "version": "0.1.5",
  "transport": "stdio",
  "identifier": "django-chainsaw-mcp",
  "registryType": "pypi",
  "registryBaseUrl": "https://pypi.org",
  "environmentVariables": [
    {
      "name": "DJANGO_CHAINSAW_PROJECT_PATH",
      "isRequired": true,
      "description": "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."
    },
    {
      "name": "DJANGO_CHAINSAW_SETTINGS_MODULE",
      "isRequired": true,
      "description": "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."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "django-chainsaw-mcp": {
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp==0.1.5"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "<YOUR_DJANGO_CHAINSAW_PROJECT_PATH>",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "<YOUR_DJANGO_CHAINSAW_SETTINGS_MODULE>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "django-chainsaw-mcp": {
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp==0.1.5"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "<YOUR_DJANGO_CHAINSAW_PROJECT_PATH>",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "<YOUR_DJANGO_CHAINSAW_SETTINGS_MODULE>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "django-chainsaw-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp==0.1.5"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "<YOUR_DJANGO_CHAINSAW_PROJECT_PATH>",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "<YOUR_DJANGO_CHAINSAW_SETTINGS_MODULE>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "django-chainsaw-mcp": {
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp==0.1.5"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "<YOUR_DJANGO_CHAINSAW_PROJECT_PATH>",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "<YOUR_DJANGO_CHAINSAW_SETTINGS_MODULE>"
      }
    }
  }
}

Let your agent find its tools

Find servers like Django Chainsaw MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.