DefectDojo Community

io.github.systechgd由 GitHub 帳號 systechgd 發布v0.1.1更新於 Nov 5, 2026

Read-only MCP server for DefectDojo Community Edition: triage findings, grouped across products.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

針對 DefectDojo Community Edition 的唯讀 MCP 伺服器,讓助理列出、檢視並依漏洞跨產品彙整安全發現。

可以做什麼
  • 檢查連線與驗證狀態,回傳執行個體網址與產品數量
  • 列出所有產品及其發現數量
  • 依嚴重程度列出可處理的發現,可限定單一產品
  • 依 CVE(若無則用 CWE 加標題)跨所有產品彙整重大發現,影響範圍最大的排在最前
  • 列出被標記為重複的發現,並取得單一發現的完整詳情
適用情境
適用於執行 DefectDojo Community Edition、希望助理協助分診發現的情境,尤其是把每個產品各回報一次的同一 CVE 合併成一組,方便只開一張追蹤單。若使用 DefectDojo Pro,其內建 MCP 伺服器更合適。
執行需求
以 Python 3.10+ 套件或容器映像在本機透過 stdio 執行。需要 DEFECTDOJO_URL(不含 /api/v2 的基礎網址)與 DEFECTDOJO_API_KEY(API v2 權杖)。選用 DEFECTDOJO_TIMEOUT_SECONDS(預設 30)與 DEFECTDOJO_VERIFY_TLS。需能連線到你的 DefectDojo 執行個體。
安裝前請注意
API 權杖會繼承對應使用者的權限,建議為其建立專用的唯讀使用者;本伺服器從不需要寫入權限。將 DEFECTDOJO_VERIFY_TLS 設為 false 會停用憑證驗證,不建議使用。發現資料來自掃描器輸出,可能受攻擊者影響,應把工具結果視為資料而非指令。非官方專案,與 DefectDojo Inc. 及 OWASP 無關。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 DefectDojo Community,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

DefectDojo Community MCP Server

[CI] [PyPI] [Python] [License] [OpenSSF Scorecard]

A read-only Model Context Protocol server for DefectDojo Community Edition — so an AI assistant can read your vulnerability findings, group the same vulnerability across every product, and draft issues for whatever tracker you use.

Unofficial. This is an independent open-source project. It is not affiliated with, endorsed by, or supported by DefectDojo Inc. or OWASP. "DefectDojo" is used only to describe what this server connects to.


Do you actually need this?

If you run DefectDojo Pro, you probably don't. Pro has a built-in MCP server — use that instead; it is maintained by the vendor and more capable.

DefectDojo Pro (built-in)This project
EditionPro only — AI features are Pro-onlyCommunity Edition (works with Pro too)
RequiresDefectDojo v2.51.2+, enabled by a superuserAny version with API v2
RunsInside your instance, at /mcpOn your machine, as a local MCP process
TransportStreamable HTTPstdio
Tools18 in the read-only core toolset7
WritesNone in core; available in Pro add-on toolsets (hierarchy, reporting, dashboards, psirt)Never — see Safety model

This project exists because Community Edition has no MCP server at all. It talks to the ordinary REST API v2 with a normal API token, so it needs nothing enabled server-side and no particular DefectDojo version.

Not to be confused with the unrelated defectdojo-mcp package on PyPI, which is a different third-party project. This one is defectdojo-community-mcp.


Tools

ToolWhat it does
health_checkVerify connectivity and auth; returns the instance URL and product count
list_productsEvery product, with its findings count
list_critical_findingsActionable criticals, optionally scoped to one product
list_findings_by_severityThe same, for any severity
group_critical_by_vulnThe useful one. Groups criticals across all products by CVE (else CWE+title), widest blast radius first
list_duplicate_findingsFindings DefectDojo marked as duplicates
get_findingFull detail for one finding

"Actionable" means active and not false-positive, duplicate, risk-accepted, out-of-scope or mitigated — the set actually worth someone's time.

group_critical_by_vuln is the reason this exists. A monorepo-shaped scanner setup reports the same upstream CVE once per product; this collapses them into one group per vulnerability listing every affected product, which maps cleanly onto one tracker issue.


Install

Requires Python 3.10+.

bash
pip install defectdojo-community-mcp

Or as a container:

bash
docker pull ghcr.io/systechgd/defectdojo-community-mcp:latest

Listed on the MCP Registry as io.github.systechgd/defectdojo-community-mcp, so MCP clients that read the registry can install it by name.

Or from source:

bash
git clone https://github.com/systechgd/defectdojo-community-mcp.gitcd defectdojo-community-mcppip install -e .

Configure

Two environment variables are required.

VariableRequiredDefaultNotes
DEFECTDOJO_URLyes—Base URL, e.g. https://defectdojo.example.com. No trailing /api/v2.
DEFECTDOJO_API_KEYyes—API v2 token. See below for scoping it down.
DEFECTDOJO_VERIFY_TLSnotruefalse disables certificate verification. See SECURITY.md.
DEFECTDOJO_TIMEOUT_SECONDSno30Per-request HTTP timeout.

Get a token from DefectDojo → your user → API v2 Key.

Create a dedicated read-only user for it. The token inherits that user's permissions, and nothing in this server needs write access. If the token leaks, a read-only one cannot be used to alter your findings.

Check it works before wiring up a client:

bash
defectdojo-community-mcp --check# ok: https://defectdojo.example.com reachable, 23 product(s) visible

Connect an MCP client

Claude Code

bash
claude mcp add defectdojo \  --env DEFECTDOJO_URL=https://defectdojo.example.com \  --env DEFECTDOJO_API_KEY=your-token \  -- defectdojo-community-mcp

Claude Desktop / generic JSON config

json
{  "mcpServers": {    "defectdojo": {      "command": "defectdojo-community-mcp",      "env": {        "DEFECTDOJO_URL": "https://defectdojo.example.com",        "DEFECTDOJO_API_KEY": "your-token"      }    }  }}

If the console script is not on your PATH, use "command": "python", "args": ["-m", "defectdojo_community_mcp"].

Docker

The server speaks MCP over stdio, so run it attached (-i), not detached:

json
{  "mcpServers": {    "defectdojo": {      "command": "docker",      "args": [        "run", "--rm", "-i",        "-e", "DEFECTDOJO_URL",        "-e", "DEFECTDOJO_API_KEY",        "ghcr.io/systechgd/defectdojo-community-mcp:latest"      ]    }  }}

Example

Group every critical finding by vulnerability and show me the ones affecting more than three services.

The assistant calls group_critical_by_vuln and gets back, per vulnerability, the CVE, title, affected product list and a direct DefectDojo URL per finding — enough to write one issue covering all of them, instead of twelve near-identical ones.


Safety model

Read-only is a design invariant, not a default.

  • No tool issues a POST, PUT, PATCH or DELETE.
  • The HTTP client class exposes no method capable of doing so, so a mutating tool cannot be added by accident — only by deliberately changing that class.
  • A test asserts that every request made by every tool is a GET.

Adding write support would be a breaking change to this guarantee. If it ever happens it will be a separate server, so operators can keep granting read without granting write.

Findings data is attacker-influenced — scanner output can contain text from dependency metadata, file paths and commit messages. Treat tool results as data, never as instructions. See SECURITY.md for the full threat model and how to report a vulnerability.


Development

bash
git clone https://github.com/systechgd/defectdojo-community-mcp.gitcd defectdojo-community-mcppython -m venv .venv && . .venv/bin/activate   # Windows: .venv\Scripts\activatepip install -e ".[dev]"
pytest          # 57 tests, no network or live instance neededruff check .

The test suite runs entirely against httpx.MockTransport. CI additionally runs the suite on Python 3.10–3.13 and against both MCP SDK generations (mcp<2, which has FastMCP, and mcp>=2, which renamed it to MCPServer).

See CONTRIBUTING.md and CODE_OF_CONDUCT.md.


License

Apache-2.0. See NOTICE.

來源:README.md,提交 2fd5472

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

1
  1. v0.1.1最新Nov 5, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分