Django Chainsaw MCP Server
by syrian963io.github.syrian963/django-chainsaw-mcpv0.1.5
Finds what will hurt in a Django project: cascades, N+1, unsafe migrations, tenant leaks.
context tax
queued
security
queued
cold start
queued
freshness
Active30d ago
Install Django Chainsaw MCP server
Install in Claude Code
claude mcp add django-chainsaw -e DJANGO_CHAINSAW_PROJECT_PATH='<django-chainsaw-project-path>' -e DJANGO_CHAINSAW_SETTINGS_MODULE='<django-chainsaw-settings-module>' -- uvx django-chainsaw-mcpInstall in Cursor
{
"mcpServers": {
"django-chainsaw": {
"command": "uvx",
"args": [
"django-chainsaw-mcp"
],
"env": {
"DJANGO_CHAINSAW_PROJECT_PATH": "<django-chainsaw-project-path>",
"DJANGO_CHAINSAW_SETTINGS_MODULE": "<django-chainsaw-settings-module>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"django-chainsaw": {
"command": "uvx",
"args": [
"django-chainsaw-mcp"
],
"env": {
"DJANGO_CHAINSAW_PROJECT_PATH": "<django-chainsaw-project-path>",
"DJANGO_CHAINSAW_SETTINGS_MODULE": "<django-chainsaw-settings-module>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"django-chainsaw": {
"type": "stdio",
"command": "uvx",
"args": [
"django-chainsaw-mcp"
],
"env": {
"DJANGO_CHAINSAW_PROJECT_PATH": "<django-chainsaw-project-path>",
"DJANGO_CHAINSAW_SETTINGS_MODULE": "<django-chainsaw-settings-module>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"django-chainsaw": {
"command": "uvx",
"args": [
"django-chainsaw-mcp"
],
"env": {
"DJANGO_CHAINSAW_PROJECT_PATH": "<django-chainsaw-project-path>",
"DJANGO_CHAINSAW_SETTINGS_MODULE": "<django-chainsaw-settings-module>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| DJANGO_CHAINSAW_PROJECT_PATH | yes | — | 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 | yes | — | 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. |
Freshness
Active — last maintenance signal 30d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-10 · 30d ago · GitHub
Latest release
2026-09-10 · 30d ago · GitHub · v0.1.5
Package published
no data · npm/PyPI
Registry entry updated
2026-09-10 · 30d ago · official registry · v0.1.5
FAQ
›How do I install the Django Chainsaw MCP server in Claude Code?
Run: claude mcp add django-chainsaw -e DJANGO_CHAINSAW_PROJECT_PATH='<django-chainsaw-project-path>' -e DJANGO_CHAINSAW_SETTINGS_MODULE='<django-chainsaw-settings-module>' -- uvx django-chainsaw-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Django Chainsaw require an API key?
Yes. It expects DJANGO_CHAINSAW_PROJECT_PATH, DJANGO_CHAINSAW_SETTINGS_MODULE.
›Can I use Django Chainsaw as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Django Chainsaw in the official MCP registry?
Yes, as io.github.syrian963/django-chainsaw-mcp.