プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Django Chainsaw

作者:syrian963バージョン 0.1.5i★ –iパソコンで動く
レジストリ名io.github.syrian963/django-chainsaw-mcp

インストール

概要

作者による説明(英語の原文)

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

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: その他
  • 入力が必要なもの:DJANGO_CHAINSAW_PROJECT_PATH, DJANGO_CHAINSAW_SETTINGS_MODULE

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: DJANGO_CHAINSAW_PROJECT_PATH, DJANGO_CHAINSAW_SETTINGS_MODULE

必要なもの

  • PyPIPythonのuvのインストール(uvxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "django-chainsaw": {
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "your-value",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add django-chainsaw --env DJANGO_CHAINSAW_PROJECT_PATH=your-value --env DJANGO_CHAINSAW_SETTINGS_MODULE=your-value -- uvx django-chainsaw-mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "django-chainsaw": {
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "your-value",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "django-chainsaw": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "your-value",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • DJANGO_CHAINSAW_PROJECT_PATH 必須 env
    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 imp…
  • DJANGO_CHAINSAW_SETTINGS_MODULE 必須 env
    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…

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント syrian963 で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

その他のほかのサーバーとの比較i

  • このカテゴリのほかの18431件のうち0%よりスターが多い
  • このカテゴリのほかの18431件のうち41%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの18431件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Django Chainsawは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:DJANGO_CHAINSAW_PROJECT_PATH, DJANGO_CHAINSAW_SETTINGS_MODULE

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.1.5)がレジストリに届いたのは2 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, Filesystem MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

クラウドで動く★ 2113 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

django-chainsaw-mcp

An MCP server and CLI that analyses a Django project rather than describing it. Not *what is in here* — *what will hurt*: what a delete takes with it, which migration breaks the pods still running, which query returns another tenant's row, what a save() sets off three hops away.

There is no model in the loop. Every answer comes from the AST and Django's own app registry, so the same input gives the same output, and nothing leaves the machine. It is an MCP server so an assistant can ask it questions, and a CLI so CI can gate on the answers.

22 checks: 19 need the app registry (16 Django, three of those DRF as well), one needs only Python, one reads FastAPI, one reads SQLAlchemy. [Why this exists →](docs/why.md)

Install

It has to run in an interpreter that can import your project. Everything here reads the app registry, which means django.setup(), your settings and your apps:

/path/to/project/.venv/bin/python -m pip install django-chainsaw-mcp

A plain uvx django-chainsaw-mcp starts and then fails every check, because uvx gives it an isolated environment with no trace of your project. To avoid installing, hand uv the dependencies instead:

uvx --with-requirements requirements.txt --from django-chainsaw-mcp django-chainsaw check

Two environment variables point it at the project:

VariableExample
DJANGO_CHAINSAW_PROJECT_PATH/srv/app — the directory settings are importable from
DJANGO_CHAINSAW_SETTINGS_MODULEmyproject.settings

django-chainsaw project-info proves the setup before anything else, and says which half is missing. [Five minutes end to end →](docs/quickstart.md)

mcp-name: io.github.syrian963/django-chainsaw-mcp

One command

django-chainsaw check --tenant-root myapp.Organisation
44 finding(s): 1 critical, 14 high, 29 medium

CRITICAL


[deploy-safety] RemoveField drops 'legacy_code' while code still uses it shop/0002_remove_product_legacy_code During a rolling deploy the old pods keep running against the new schema and will fail. fix: Ship a release that stops using it, deploy that everywhere, then ship this migration.

Every analysis, merged, worst first, one exit code.

On a pull request

This is the part that decides whether a tool like this survives. Point tenancy at a five year old project and it returns two hundred candidates; nobody reads two hundred candidates, somebody adds continue-on-error, and it runs forever with nobody looking.

django-chainsaw tenancy --since main     # only what this branch changed

django-chainsaw tenancy --baseline # everything old, ratcheted django-chainsaw check --sarif out.json # annotate the diff, on the line

--since compares at the merge base, so a branch that is behind main is not blamed for other people's work. --baseline keeps existing findings in the report and stops them blocking; anything new fails the build, and fixing an old one is reported so the number only ever goes down. Findings are fingerprinted on file plus identity, never the line, so adding an import does not resurrect twenty findings nobody touched.

--sarif writes the format GitHub and GitLab annotate a pull request with, so findings land on the line instead of in a log nobody opens.

[baseline.md](docs/baseline.md) · [cli.md](docs/cli.md)

As an MCP server

claude mcp add django-chainsaw --scope local \

--env DJANGO_CHAINSAW_PROJECT_PATH=/srv/app \ --env DJANGO_CHAINSAW_SETTINGS_MODULE=myproject.settings \ -- /srv/app/.venv/bin/python -m django_chainsaw_mcp.server

Ask it project_info first: the smallest call that proves both the transport and the Django boot. Five prompts carry the ordering the tools do not — before_deploy, why_is_this_slow, what_breaks_if_i_delete, triage, review_this_branch.

[Claude Desktop, Cursor, VS Code, Windsurf, Zed, Docker →](docs/clients.md)

Or as one HTML file

django-chainsaw report --out findings.html --title myproject

Grouped by endpoint is the view that matters: which pages carry this, and through what call path. No server, no network, no build step — the CSS, the script and the data are all in the file, so it works from a CI artifact or an email attachment. [report.md](docs/report.md)

The checks

Django projects — these read the app registry, so they need DJANGO_CHAINSAW_SETTINGS_MODULE as well as the project path

ToolAnswers
project_infoDoes the target project load at all? Run this first when something is broken.
list_modelsEvery model with fields, relation kind, direction and on_delete.
delete_impactDelete one row: what cascades, what blocks, what gets nulled. Transitive.
find_n_plus_oneRelation traversals in a template that each cost a query, and the fix.
scan_templatesThe same across a directory, resolving context from views.
migration_riskMigrations rated: blocks writes, rewrites the table, breaks running code.
deploy_safetyIs this destructive migration safe to ship yet?
find_unscoped_queriesWhich queries read data the caller may not own? The IDOR shape.
what_happens_onWhat does this save actually trigger? Follows the signal chain.
missing_indexesFields the code filters or sorts on that carry no index.
datetime_auditNaive datetimes and field defaults that break when the clock moves.
serializer_exposureWhat DRF serializers expose, including what the next migration will add.
serializer_nplusoneN+1 in DRF serializers, which is where it lives in an API project.
explain_modelEverything about one model, plus the risks only visible combined.
endpoint_costHow many queries one request costs, before anybody sends one.
api_contract / api_contract_checkWhat this branch changes about the API, and who it breaks.
escaping_side_effectsMail and tasks fired inside a transaction that can still roll back.
bypassed_effectsBulk writes that skip everything the save() chain promised.
race_conditionsCounters read into Python, changed, and saved. Also unsafe upserts.
money_precisionWhere a decimal amount stops being exact.
celery_argumentsWhat the worker actually receives, and whether it can even be called.
queries_in_loopsQueries written inside a loop, split by which of three fixes applies.
defeated_prefetchesPrefetches paid for and then re-queried by the accessor that reads them.
request_impactEvery finding grouped by the entry points that reach it, so the question becomes which endpoint to fix.
choice_typosLiterals a field's choices will never match: valid SQL, zero rows, no exception.
multiplied_aggregatesCounts and sums multiplied by a join across two multi-valued relations.
dangling_referencesURL names, templates, signal senders and Celery tasks nothing will resolve.
open_endpointsSensitive fields on endpoints anybody can call.
unused_eager_loadingJoins and prefetches nothing in the response reads.
checkRun everything that applies, one severity-sorted list, one exit code.
suggest_fixesFindings turned into code, grouped by how safe each one is to apply.

Any Python project — no Django, no settings module

ToolAnswers
project_profileWhat is this built on? Counted from the project's own imports.
blocking_in_asyncWhich synchronous call stops the event loop for every request?
fastapi_exposureEndpoints that serialise more than they declare.
sqlalchemy_nplusoneRelationships loaded one row at a time, including during serialisation.
amplificationWhich endpoint can a stranger use to exhaust the database?

Plus the resource django://models. check profiles the project first and runs what applies, and says "does not apply, and here is why" for the rest — silence would read exactly like a clean result. Nothing about the FastAPI support imports the project, so those checks run on a checkout with no dependencies installed at all.

36 of the 37 tools declare readOnlyHint, so a client can stop asking permission for each call; the exception is api_contract_check with update=True, which writes the snapshot and says so. [Every tool, argument and output shape →](docs/tools.md)

What it will not tell you

Nothing here executes the target project or reads its data, which buys safety and speed and costs certainty. Every tool states its own blind spots in its own output:

  • delete_impact does not run signals or custom delete() overrides.
  • find_n_plus_one reports candidates; it reads the template and the model graph, not the queryset in the view.
  • migration_risk does not know row counts, PostgreSQL version, or deploy strategy.
  • deploy_safety cannot see getattr(obj, name), runtime SQL, or another repository. CLEAR means nothing was found here.

A confident wrong answer is worse than an incomplete one. In this kind of tooling the failure mode is not a crash, it is a plausible sentence that sends someone in the wrong direction. [limitations.md](docs/limitations.md)

What it does to your code

It imports the target project. django.setup() imports your settings and every app in INSTALLED_APPS, and the checks additionally import the modules that declare serializers, views and URLs — so anything those do at import time happens. Do not point this at code you would not run.

It does not run your application: no view, no task, no management command. One check reads the database, read-only — MigrationLoader reads django_migrations, and nothing is written. It writes files only when you ask: fix --write applies the mechanical class of fix only, and a baseline, a contract snapshot or --sarif write where you tell them to. Nothing leaves the machine — no network calls, no telemetry, no uploads.

[SECURITY.md](SECURITY.md)

Documentation

[docs/](docs/README.md) is the index.

why.mdwhy this exists, three checks worth reading about, and the bar a new one clears
quickstart.mdfive minutes from clone to first finding
usage.mdinstalling against a real project, Docker, troubleshooting
clients.mdClaude Code, Cursor, VS Code, Windsurf, Zed
cli.mdcommands, exit codes, CI

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く