# DefectDojo

> DefectDojo is an open-source MCP server for security. Official DefectDojo MCP server: search, triage and import findings, read-only by default. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/defectdojo/defectdojo-mcp
- **MCP Registry name:** io.github.DefectDojo/defectdojo-mcp
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

Security teams that keep their vulnerability findings in DefectDojo can point an assistant at their own instance through its REST API v2. It works with open-source DefectDojo 2.x and 3.x and with DefectDojo Pro, and asks for the instance URL and an API key from a dedicated account that has only the permissions the assistant needs.

Read tools cover findings, products, product types, engagements, tests, scan types, locations and import history. A finding search can filter by product, severity, status flags, CVE, CWE, component, file path, tags and dates, and a stats tool returns exact counts by severity and status. Write tools are not registered at all unless DEFECTDOJO_ALLOW_WRITES is true; then an assistant can import or reimport scans, add notes, change finding status, risk-accept up to 50 findings and create products and engagements.

Text coming back from DefectDojo is marked as untrusted because scanner output can carry prompt injection. Scan files can be read only from folders listed in DEFECTDOJO_IMPORT_DIRS, or sent as base64. The README states there is no telemetry.

## Features

- **Finding search:** Filters findings by product, severity, CVE, CWE, status, component, path, tags and dates.
- **Exact statistics:** Returns counts by severity and status for a product, engagement, test or the whole instance.
- **Read-only by default:** Write tools exist only when DEFECTDOJO_ALLOW_WRITES is enabled.
- **Scan import:** Uploads or reimports scan reports, closing fixed findings and adding new ones.
- **Triage actions:** Sets finding status, adds notes and risk-accepts up to 50 findings.
- **Untrusted text marking:** Flags text from DefectDojo as untrusted because scanner output can contain prompt injection.

## Good for

- Ask for open critical findings in one product
- Compare what two scan imports created or closed
- Import a CI scan report into an engagement
- Mark confirmed false positives with a note
- Check which scan types an instance can import

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add defectdojo-mcp --env DEFECTDOJO_URL='<DEFECTDOJO_URL>' --env DEFECTDOJO_API_KEY='<DEFECTDOJO_API_KEY>' -- uvx defectdojo-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add defectdojo-mcp --env DEFECTDOJO_URL='<DEFECTDOJO_URL>' --env DEFECTDOJO_API_KEY='<DEFECTDOJO_API_KEY>' -- uvx defectdojo-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.defectdojo-mcp]
command = "uvx"
args = ["defectdojo-mcp-server"]
env = { DEFECTDOJO_URL = "<DEFECTDOJO_URL>", DEFECTDOJO_API_KEY = "<DEFECTDOJO_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e DEFECTDOJO_URL='<DEFECTDOJO_URL>' -e DEFECTDOJO_API_KEY='<DEFECTDOJO_API_KEY>' defectdojo-mcp uvx -- defectdojo-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "defectdojo-mcp": {
      "command": "uvx",
      "args": [
        "defectdojo-mcp-server"
      ],
      "env": {
        "DEFECTDOJO_URL": "<DEFECTDOJO_URL>",
        "DEFECTDOJO_API_KEY": "<DEFECTDOJO_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 of 23 tools change data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `get_instance_info` (name suggests: reads): Instance URL, DefectDojo version, edition, current user and whether writes are on.
- `list_findings` (name suggests: reads): Searches findings with many filters.
- `get_finding` (name suggests: reads): One finding with full text, ids, CWE, path, component, notes and context.
- `get_finding_stats` (name suggests: reads): Exact counts by severity and status.
- `list_finding_notes` (name suggests: reads): Notes on a finding.
- `list_products` (name suggests: reads): Lists products.
- `get_product` (name suggests: reads): Returns one product.
- `list_product_types` (name suggests: reads): Lists product types.
- `list_engagements` (name suggests: reads): Lists engagements.
- `get_engagement` (name suggests: reads): Returns one engagement.
- `list_tests` (name suggests: reads): Lists tests.
- `get_test` (name suggests: reads): Returns one test.
- `list_scan_types` (name suggests: reads): Scan types the instance can import.
- `list_test_imports` (name suggests: reads): Import and reimport history for a test.
- `get_current_user` (name suggests: reads): The user the API key belongs to.
- `list_locations` (name suggests: reads): Hosts, URLs and other locations.
- `import_scan`: Uploads a scan report as a new test (writes enabled).
- `reimport_scan`: Uploads a newer report into an existing test (writes enabled).
- `add_finding_note` (name suggests: changes): Adds a note to a finding (writes enabled).
- `update_finding_status` (name suggests: changes): Sets active, verified, false positive, out of scope or mitigated (writes enabled).
- `risk_accept_findings`: Risk-accepts or revokes acceptance for up to 50 findings (writes enabled).
- `create_product` (name suggests: changes): Creates a product (writes enabled).
- `create_engagement` (name suggests: changes): Creates an engagement (writes enabled).

## FAQ

### Can DefectDojo change data by default?

No. It is read-only unless DEFECTDOJO_ALLOW_WRITES is set to true.

### Which DefectDojo versions work?

Open-source 2.x and 3.x, and DefectDojo Pro.

### How do I install DefectDojo?

Run it with uvx defectdojo-mcp-server, or use the ghcr.io/defectdojo/defectdojo-mcp container image, with DEFECTDOJO_URL and DEFECTDOJO_API_KEY set.

### Which PyPI package is right?

defectdojo-mcp-server; a package called defectdojo-mcp on PyPI is an unrelated project.

### How are report files read?

From folders listed in DEFECTDOJO_IMPORT_DIRS, or as a base64 upload; path imports are refused when no folder is set.

### Is DefectDojo free?

Yes. DefectDojo is open source, so you can use and self-host it for free.

### How do I add DefectDojo to Claude Code?

Run this command in your terminal: claude mcp add defectdojo-mcp --env DEFECTDOJO_URL='<DEFECTDOJO_URL>' --env DEFECTDOJO_API_KEY='<DEFECTDOJO_API_KEY>' -- uvx defectdojo-mcp-server

### What are the best alternatives to DefectDojo?

The closest alternatives to DefectDojo are REA, AiSOC, x64dbg-mcp-server, redamon and Treasure Map.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [Treasure Map](https://ai-powered.com/mcp/treasure-map): Treasure Map is an open-source MCP server for security.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.
- [Runeward](https://ai-powered.com/mcp/runeward): Runeward is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/defectdojo
