DefectDojo Community
Read-only MCP server for DefectDojo Community Edition: triage findings, grouped across products.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
defectdojo-community-mcpclaude 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
{
"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>"
}
}
}
}
Environment variables
DEFECTDOJO_URLrequired Base URL of your DefectDojo instance, e.g. https://defectdojo.example.com (no trailing /api/v2).DEFECTDOJO_API_KEYrequired secret DefectDojo API v2 token. Use a dedicated read-only user: this server never needs write access.DEFECTDOJO_VERIFY_TLSSet to false to skip TLS certificate verification. Discouraged; see SECURITY.md.DEFECTDOJO_TIMEOUT_SECONDSPer-request HTTP timeout in seconds. Defaults to 30.
ghcr.io/systechgd/defectdojo-community-mcp:0.1.1claude 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
{
"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>"
}
}
}
}
Environment variables
DEFECTDOJO_URLrequired Base URL of your DefectDojo instance, e.g. https://defectdojo.example.com (no trailing /api/v2).DEFECTDOJO_API_KEYrequired secret DefectDojo API v2 token. Use a dedicated read-only user: this server never needs write access.
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
Contents
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 /mcp | On your machine, as a local MCP process |
| Transport | Streamable HTTP | stdio |
| Tools | 18 in the read-only core toolset | 7 |
| Writes | None 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-mcppackage on PyPI, which is a different third-party project. This one isdefectdojo-community-mcp.
Tools
| Tool | What it does |
|---|---|
health_check | Verify connectivity and auth; returns the instance URL and product count |
list_products | Every product, with its findings count |
list_critical_findings | Actionable criticals, optionally scoped to one product |
list_findings_by_severity | The same, for any severity |
group_critical_by_vuln | The useful one. Groups criticals across all products by CVE (else CWE+title), widest blast radius first |
list_duplicate_findings | Findings DefectDojo marked as duplicates |
get_finding | 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-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.
| Variable | Required | Default | Notes |
|---|---|---|---|
DEFECTDOJO_URL | yes | — | Base URL, e.g. https://defectdojo.example.com. No trailing /api/v2. |
DEFECTDOJO_API_KEY | yes | — | API v2 token. See below for scoping it down. |
DEFECTDOJO_VERIFY_TLS | no | true | false disables certificate verification. See SECURITY.md. |
DEFECTDOJO_TIMEOUT_SECONDS | no | 30 | 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) 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,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.
Frequently asked questions
What is DefectDojo Community?
Read-only MCP server for DefectDojo Community Edition: triage findings, grouped across products.
How do I install DefectDojo Community?
It runs on your machine. In 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. For other clients, paste the JSON configuration from this page into their MCP settings.
Does DefectDojo Community need an API key?
Yes. It expects DEFECTDOJO_URL, DEFECTDOJO_API_KEY, which you set in its configuration.
Is DefectDojo Community open source?
Yes. Its code is on GitHub under the Apache-2.0 license.
Who maintains DefectDojo Community?
It is published by systechgd. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.