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.
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
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
django-chainsaw-mcp 0.1.5
{
"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.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"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
{
"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
{
"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
{
"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.