Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Auth and security - official Datadog server

Datadog Code Security MCP server

A local stdio MCP server that wraps Datadog security binaries to run SAST, secrets detection, SCA, IaC scanning and SBOM generation on source code from an AI coding assistant. It runs locally from datadog-labs/pack/datadog-code-security-mcp (homebrew) with API key auth.

Last verified 7 tools3 sources

Install

Terminal
claude mcp add datadog-code-security \
  -e DD_API_KEY=<DATADOG_API_KEY> \
  -e DD_APP_KEY=<DATADOG_APP_KEY> \
  -e DD_SITE=<YOUR_DATADOG_SITE> \
  -- datadog-code-security-mcp start
TOML
[mcp_servers.datadog-code-security]
command = "datadog-code-security-mcp"
args = ["start"]
[mcp_servers.datadog-code-security.env]
DD_API_KEY = "<DATADOG_API_KEY>"
DD_APP_KEY = "<DATADOG_APP_KEY>"
DD_SITE = "<YOUR_DATADOG_SITE>"
JSON
{
    "mcpServers": {
        "datadog-code-security": {
            "command": "datadog-code-security-mcp",
            "args": ["start"],
            "env": {
                "DD_API_KEY": "<DATADOG_API_KEY>",
                "DD_APP_KEY": "<DATADOG_APP_KEY>",
                "DD_SITE": "<YOUR_DATADOG_SITE>"
            }
        }
    }
}

VS Code

JSON
{
    "mcp": {
        "servers": {
            "datadog-code-security": {
                "command": "datadog-code-security-mcp",
                "args": ["start"],
                "env": {
                    "DD_API_KEY": "<DATADOG_API_KEY>",
                    "DD_APP_KEY": "<DATADOG_APP_KEY>",
                    "DD_SITE": "<YOUR_DATADOG_SITE>"
                }
            }
        }
    }
}

Generic

Terminal
brew update
brew install datadog-labs/pack/datadog-code-security-mcp

Tools

datadog_code_security_scan
SAST, secrets, SCA, and IaC in parallel.
datadog_sast_scan
Static Application Security Testing.
datadog_secrets_scan
Hardcoded secrets detection.
datadog_sca_scan
Dependency vulnerability scanning (CVEs).
datadog_iac_scan
Infrastructure-as-Code security scanning.
datadog_generate_sbom
Software Bill of Materials generation (no auth required).
datadog_library_vulnerability_scan
Library vulnerability lookup by package URL.

As documented on October 17, 2026. A running server reports its current list through tools/list.

Notes and caveats

  • In Preview.
  • Separate from the remote Datadog MCP Server; local-only.
  • Requires a Datadog API key and application key (DD_API_KEY, DD_APP_KEY, optional DD_SITE) for every scan except SBOM generation.
  • Needs the Datadog scanner binaries installed separately (datadog-static-analyzer, datadog-sbom-generator, datadog-security-cli, datadog-iac-scanner).
  • Runs on macOS and Linux (amd64, arm64) and Windows (amd64); SCA is not supported on Windows and the IaC scanner is not available on macOS amd64.
  • Not supported on GovCloud sites.
  • The generic field holds the documented Homebrew install command; the server starts with 'datadog-code-security-mcp start'.

FAQ

What does the Datadog Code Security MCP server do?

A local stdio MCP server that wraps Datadog security binaries to run SAST, secrets detection, SCA, IaC scanning and SBOM generation on source code from an AI coding assistant. The vendor documents 7 tools, including datadog_code_security_scan, datadog_sast_scan, datadog_secrets_scan and datadog_sca_scan.

How do I add the Datadog Code Security MCP server to Claude Code?

Datadog documents a Claude Code config; copy it from the Claude Code section of this page. Snippets for Codex, Cursor, VS Code and Generic are there too.

Does the Datadog Code Security MCP server need authentication?

Yes, API key. Transport: stdio. Status: Preview, last checked October 17, 2026.

Sources

Last verified against 3 Datadog pages, then re-checked independently.

Newsletter

New MCP servers, the week they ship

One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.