DefectDojo MCP Server
Use this read-only MCP server to inspect DefectDojo Community vulnerability data through an AI assistant.
Verify DefectDojo connectivity/auth and get the instance URL and visible product count.
List all products, typically repos or services.
List actionable critical findings, optionally scoped to one product or including duplicates.
List actionable findings by any severity: Critical, High, Medium, Low, or Info.
Group critical findings across all products by CVE, or CWE plus title, to identify vulnerabilities with the widest blast radius.
List findings DefectDojo has marked as duplicates, optionally scoped to one product.
Retrieve full detail for one finding, including description, mitigation, references, CWE/CVE, and location.
It never writes to DefectDojo; all operations are read-only GET requests.
Provides read-only access to an OWASP DefectDojo Community Edition instance's REST API v2, letting an assistant list products and their finding counts, retrieve critical or severity-filtered actionable findings, group the same vulnerability (by CVE, else CWE+title) across all products by blast radius, list duplicate findings, and fetch full details and DefectDojo URLs for individual findings — enough to draft a single tracker issue per vulnerability.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DefectDojo MCP Server list critical findings for the Payments API and group them by vulnerability"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 | |
Edition | Pro only — AI features are Pro-only | Community Edition (works with Pro too) |
Requires | DefectDojo v2.51.2+, enabled by a superuser | Any version with API v2 |
Runs | Inside your instance, at | On your machine, as a local MCP process |
Transport | Streamable HTTP | stdio |
Tools | 18 in the read-only | 7 |
Writes | None in | 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-mcppackage on PyPI, which is a different third-party project. This one isdefectdojo-community-mcp.
Related MCP server: MCP Vulnerability Checker Server
Tools
Tool | What it does |
| Verify connectivity and auth; returns the instance URL and product count |
| Every product, with its findings count |
| Actionable criticals, optionally scoped to one product |
| The same, for any severity |
| The useful one. Groups criticals across all products by CVE (else CWE+title), widest blast radius first |
| Findings DefectDojo marked as duplicates |
| Full 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-mcpOr as a container:
docker pull ghcr.io/systechgd/defectdojo-community-mcp:latestListed 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:
git clone https://github.com/systechgd/defectdojo-community-mcp.git
cd defectdojo-community-mcp
pip install -e .Configure
Two environment variables are required.
Variable | Required | Default | Notes |
| yes | — | Base URL, e.g. |
| yes | — | API v2 token. See below for scoping it down. |
| no |
|
|
| no |
| Per-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) visibleConnect an MCP client
Claude Code
claude mcp add defectdojo \
--env DEFECTDOJO_URL=https://defectdojo.example.com \
--env DEFECTDOJO_API_KEY=your-token \
-- defectdojo-community-mcpClaude 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,PATCHorDELETE.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.
Available Tools
7 toolsget_findingB
Full detail for one finding: description, mitigation, references, CWE/CVE and location.
Inputs: finding_id (required).
group_critical_by_vulnA
Group actionable CRITICAL findings across every product by unique vulnerability.
Keyed on CVE where present, else CWE plus title. Useful for filing one tracker issue per vulnerability that lists every affected product. Widest blast radius first.
Inputs: no named parameters. Returns: result
health_checkA
Verify connectivity and auth to DefectDojo. Returns the instance URL and product count.
Inputs: no named parameters.
list_critical_findingsA
List actionable CRITICAL findings (active, not false-positive/risk-accepted/mitigated).
Optionally scope to one product. Set include_duplicates=True to also see duplicates.
Inputs: product, include_duplicates. Returns: result
list_duplicate_findingsB
List findings DefectDojo has marked as duplicates, optionally scoped to one product.
Inputs: product. Returns: result
list_findings_by_severityC
List actionable findings of a given severity (Critical, High, Medium, Low or Info).
Inputs: severity (required), product, include_duplicates. Returns: result
list_productsA
List all DefectDojo products (each product is typically one repo or service).
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Several tools overlap around finding listing: list_critical_findings is essentially a specialized case of list_findings_by_severity for Critical severity, and it also has an include_duplicates option that overlaps with list_duplicate_findings. Descriptions clarify intent somewhat, but an agent could reasonably hesitate between these tools when triaging critical or duplicate findings.
Most tools follow a clear snake_case verb_noun pattern, especially the list_* and get_* tools. Minor deviations like group_critical_by_vuln using an abbreviation and health_check being a noun-like operation keep it from being fully uniform, but the convention is still predictable.
Seven tools is well-scoped for a focused DefectDojo MCP server, with each tool earning its place in a read-only triage workflow. The set is neither thin nor bloated.
The surface covers critical/severity/duplicate finding listing, grouping, detail, products, and health, which supports core triage. However, it lacks a general findings query with product plus severity filters, product detail, and any update/mitigation workflow, creating notable gaps for agents that need more than high-level read-only inspection.
Maintenance
Related MCP Connectors
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
The main MCP server has 10 tools, including six public, read-only CVE tools, site search and page reading. CVE results include source software/version evidence and available CISA KEV and dated FIRST EPSS data. The separate request_security_test action requires an agent key, consent and authorization. A no-account, read-only CVE-only endpoint is https://excessionlabs.ai/mcp/cve. Docs: https://excessionlabs.ai/cve-intelligence/.
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides a Model Context Protocol server implementation that allows AI agents and other MCP clients to programmatically interact with DefectDojo, a vulnerability management tool, for managing findings, products, and engagements.11142 PyPI22MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server providing security vulnerability intelligence tools including CVE lookup, EPSS scoring, CVSS calculation, exploit detection, and Python package vulnerability checking.89MIT
- AlicenseAqualityCmaintenanceEnables AI agents to search, retrieve, and analyze vulnerability data from the NIST National Vulnerability Database through a comprehensive Model Context Protocol server.89MIT
- AlicenseAqualityDmaintenanceMCP server for DefectDojo vulnerability management, exposing 24 tools for managing products, engagements, tests, findings, scan imports, and finding lifecycle through the Model Context Protocol.2431 PyPI1MIT