DefectDojo Community

Registre officiel Autres

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

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

PYPI package defectdojo-community-mcp
Claude Code
claude mcp add defectdojo-community -e 'DEFECTDOJO_URL=<DEFECTDOJO_URL>' -e 'DEFECTDOJO_API_KEY=<your defectdojo_api_key>' -e 'DEFECTDOJO_VERIFY_TLS=<DEFECTDOJO_VERIFY_TLS>' -e 'DEFECTDOJO_TIMEOUT_SECONDS=<DEFECTDOJO_TIMEOUT_SECONDS>' -- uvx defectdojo-community-mcp==0.1.1
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "defectdojo-community": {
            "command": "uvx",
            "args": [
                "defectdojo-community-mcp==0.1.1"
            ],
            "env": {
                "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
                "DEFECTDOJO_API_KEY": "<your defectdojo_api_key>",
                "DEFECTDOJO_VERIFY_TLS": "<DEFECTDOJO_VERIFY_TLS>",
                "DEFECTDOJO_TIMEOUT_SECONDS": "<DEFECTDOJO_TIMEOUT_SECONDS>"
            }
        }
    }
}

Variables d'environnement

  • DEFECTDOJO_URL obligatoire Base URL of your DefectDojo instance, e.g. https://defectdojo.example.com (no trailing /api/v2).
  • DEFECTDOJO_API_KEY obligatoire secret DefectDojo API v2 token. Use a dedicated read-only user: this server never needs write access.
  • DEFECTDOJO_VERIFY_TLS Set to false to skip TLS certificate verification. Discouraged; see SECURITY.md.
  • DEFECTDOJO_TIMEOUT_SECONDS Per-request HTTP timeout in seconds. Defaults to 30.
OCI package ghcr.io/systechgd/defectdojo-community-mcp:0.1.1
Claude Code
claude mcp add defectdojo-community -e 'DEFECTDOJO_URL=<DEFECTDOJO_URL>' -e 'DEFECTDOJO_API_KEY=<your defectdojo_api_key>' -- docker run -i --rm ghcr.io/systechgd/defectdojo-community-mcp:0.1.1
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "defectdojo-community": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "ghcr.io/systechgd/defectdojo-community-mcp:0.1.1"
            ],
            "env": {
                "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
                "DEFECTDOJO_API_KEY": "<your defectdojo_api_key>"
            }
        }
    }
}

Variables d'environnement

  • DEFECTDOJO_URL obligatoire Base URL of your DefectDojo instance, e.g. https://defectdojo.example.com (no trailing /api/v2).
  • DEFECTDOJO_API_KEY obligatoire secret DefectDojo API v2 token. Use a dedicated read-only user: this server never needs write access.

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. DefectDojo Community MCP Server
  2. Do you actually need this?
  3. Tools
  4. Install
  5. Configure
  6. Connect an MCP client
  7. Example
  8. Safety model
  9. Development
  10. License

DefectDojo Community MCP Server

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+.

pip install defectdojo-community-mcp

Or from source:

git clone https://github.com/systechgd/defectdojo-community-mcp.git
cd defectdojo-community-mcp
pip 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:

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

Connect an MCP client

Claude Code
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
{
  "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:

{
  "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

git clone https://github.com/systechgd/defectdojo-community-mcp.git
cd defectdojo-community-mcp
python -m venv .venv && . .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -e ".[dev]"

pytest          # 57 tests, no network or live instance needed
ruff 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.

Questions fréquentes

Qu'est-ce que DefectDojo Community ?

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

Comment installer DefectDojo Community ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add defectdojo-community -e 'DEFECTDOJO_URL=<DEFECTDOJO_URL>' -e 'DEFECTDOJO_API_KEY=<your defectdojo_api_key>' -e 'DEFECTDOJO_VERIFY_TLS=<DEFECTDOJO_VERIFY_TLS>' -e 'DEFECTDOJO_TIMEOUT_SECONDS=<DEFECTDOJO_TIMEOUT_SECONDS>' -- uvx defectdojo-community-mcp==0.1.1. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour DefectDojo Community ?

Oui. Il attend DEFECTDOJO_URL, DEFECTDOJO_API_KEY, à renseigner dans sa configuration.

DefectDojo Community est-il open source ?

Oui. Son code est sur GitHub sous licence Apache-2.0.

Qui maintient DefectDojo Community ?

Il est publié par systechgd. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.