Skip to main content
Glama
defectdojo-http-api-mcp

defectdojo-http-api-mcp

by rkorablin

defectdojo-http-api-mcp

MCP (Model Context Protocol) server for DefectDojo over the official HTTP API (Authorization: Token …). Same style as gitlab-http-api-mcp / youtrack-http-api-mcp: controlled tool surface, no OpenAPI dump.

Для новой сессии агента: /session-start (.cursor/commands/session-start.md).

Requirements

  • Node.js 18+

  • DefectDojo URL + API token

Related MCP server: Dependency-Track MCP Server

Install

From source (GitLab / GitHub)

git clone git@gitlab.greenworm.ru:ai/defectdojo-http-api-mcp.git
cd defectdojo-http-api-mcp
npm install

Публичное зеркало: https://github.com/rkorablin/defectdojo-http-api-mcp.

From npm

npm install defectdojo-http-api-mcp
# or
npm install -g defectdojo-http-api-mcp

Configuration

Variable

Required

Description

DEFECTDOJO_URL

Yes

Base URL without trailing slash

DEFECTDOJO_API_TOKEN

Yes

API token (Authorization: Token …)

DEFECTDOJO_ORGANIZATION

No

Default product type name filter (e.g. Cubekit)

DEFECTDOJO_ENGAGEMENT

No

Optional label for docs / host wrappers

Usage

Standalone (stdio)

export DEFECTDOJO_URL="http://defectdojo.example.com"
export DEFECTDOJO_API_TOKEN="…"
node server.mjs

Cursor / MCP host

Option 1: Local clone

"defectdojo": {
  "command": "node",
  "args": ["/absolute/path/to/defectdojo-http-api-mcp/server.mjs"],
  "env": {
    "DEFECTDOJO_URL": "http://defectdojo.example.com",
    "DEFECTDOJO_API_TOKEN": "…"
  }
}

Option 2: npm / npx

"defectdojo": {
  "command": "npx",
  "args": ["--yes", "--prefer-online", "defectdojo-http-api-mcp@latest"],
  "env": {
    "DEFECTDOJO_URL": "http://defectdojo.example.com",
    "DEFECTDOJO_API_TOKEN": "…"
  }
}

See ~/.config/ai-mcp pattern (GitLab / YouTrack / Confluence):

  • secrets in ~/.config/ai-mcp/it-aces.env (DEFECTDOJO_*)

  • launcher ~/.config/ai-mcp/bin/run-defectdojo-mcp-itaces.sh

  • entry in ~/ai/general/.cursor/mcp.json

Tools

Tool

Purpose

defectdojo_whoami

Identity smoke: /user_profile/ → /users/me/ → products-count fallback

defectdojo_list_product_types

Organizations / product types

defectdojo_list_products

Products (optional org / name filter)

defectdojo_list_engagements

Engagements

defectdojo_list_tests

Tests under engagement

defectdojo_list_findings

Findings with triage filters (compact by default)

defectdojo_get_finding

One finding by id

defectdojo_update_finding

PATCH status / false_p / risk_accepted / …

defectdojo_list_notes

Notes on a finding

defectdojo_add_note

Note via POST /findings/{id}/notes/

Typical agent workflow

  1. defectdojo_whoami — check token

  2. defectdojo_list_products with organization — inventory

  3. defectdojo_list_findings (active=true, severity filters)

  4. defectdojo_get_finding — details

  5. defectdojo_update_finding / defectdojo_add_note — triage

Tests

npm test

Remotes

npm publish (без TOTP каждый раз)

Релизы — через Trusted Publishing (OIDC) и workflow .github/workflows/publish.yml: тег v* на GitHub. Одноразовая настройка и детали: docs/npm-trusted-publishing.md.

License

MIT

Available Tools

10 tools
defectdojo_add_noteC

Add a note to a finding (POST /findings/{id}/notes/)

Inputs: entry (required), finding_id (required), private, note_type.

defectdojo_get_findingC

Get one finding by id (full object)

Inputs: id (required).

defectdojo_list_engagementsC

List engagements; optional product id

Inputs: limit, offset, product_id.

defectdojo_list_findingsB

List findings with triage filters (severity, active, false_p, verified, duplicate, product). Compact by default.

Inputs: raw, limit, active, offset, +8 more.

defectdojo_list_notesC

List notes on a finding

Inputs: finding_id (required).

defectdojo_list_productsC

List DefectDojo products (compact). Optional name / product_type filters.

Inputs: raw, name, limit, offset, +2 more.

defectdojo_list_product_typesC

List product types (organizations in UI terms)

Inputs: name, limit, offset.

defectdojo_list_testsC

List tests; optional engagement id

Inputs: limit, offset, engagement_id.

defectdojo_update_findingC

PATCH finding triage fields (active, verified, false_p, out_of_scope, risk_accepted, is_mitigated, severity). Notes via defectdojo_add_note.

Inputs: id (required), active, false_p, severity, +4 more.

defectdojo_whoamiA

Identity smoke: prefers GET /user_profile/ (username), then /users/me/, else products-count fallback for CI/service tokens. 404 on /users/me/ is normal on some DD builds.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clearly distinct resource and action: product types, products, engagements, tests, findings, and notes. The only shared verb is list, but the objects are unambiguous and filters are described. get_finding, update_finding, list_notes, and add_note are also easy to distinguish.

    Naming Consistency4/5

    Almost all tools follow a consistent defectdojo_verb_noun snake_case pattern, such as list_products, get_finding, and update_finding. The only notable deviation is defectdojo_whoami, which is a readable but non-verb_noun identity tool.

    Tool Count5/5

    Ten tools is well within the expected range and each appears to serve a specific role in browsing DefectDojo resources and triaging findings. The set is focused rather than bloated.

    Completeness3/5

    The server covers the core read hierarchy and finding triage/notes well, including listing products, product types, engagements, tests, and findings. However, it lacks create/delete operations for findings and write lifecycle operations for products, engagements, and tests, plus note update/delete, so it is not complete CRUD coverage for the stated DefectDojo API domain.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides 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.
      11
      142 PyPI
      22
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with Azure DevOps, including listing pipelines and runs, viewing logs and artifacts, collecting and normalizing security reports, and triggering pipelines with safety controls.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables LLM agents to browse and triage vulnerability observations, manage products, branches and rules, import scan reports and SBOMs, run scans and background jobs, and generate VEX documents via SecObserve's REST API.
      18
      126 PyPI
      2
      MIT