checkmarx-mcp
Provides tools for full programmatic access to the Checkmarx One security platform, including project and scan management, scan triggering from Git repositories, local directories, and container images, findings listing and details, scan comparison, and per-engine findings summaries.
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., "@checkmarx-mcp trigger a SAST and SCA scan on the payments-api repo"
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.
checkmarx-mcp
MCP server providing AI coding agents with full programmatic access to the Checkmarx One security platform — projects, scans, findings, and scan triggering.
Available Tools
Tool | Description |
| Verify connectivity to Checkmarx One |
| List projects with optional name filter |
| Get full project details by ID |
| List scans filtered by project, status |
| Get scan details (use to poll status) |
| Start a scan from a Git repository URL |
| Zip and upload a local directory for scanning. Zips the same files as |
| Compare two scans, e.g. a pipeline scan and a local scan of the same commit: engines, per-engine counts, findings matched by |
| Scan an arbitrary public container image by reference (Container Security) |
| Per-engine severity, status and state counters ( |
| List findings with severity/type/state filters and |
| Full finding data flow (SAST) or CVE chain (SCA / Containers) |
All scan-trigger tools accept a scanTypes array. Valid values:
sast, sca, kics, apisec, secrets, containers.
Defaults remain ["sast", "sca", "kics"] — Container Security is opt-in.
Related MCP server: Checkmarx
Setup
Prerequisites
Node.js >= 18
A Checkmarx One account with an API key
Configuration
Copy .env.example and fill in your credentials:
cp .env.example .envVariable | Required | Default | Description |
| Yes | — | API key (refresh token) from IAM |
| Yes | — | Checkmarx One tenant name |
| No |
| API base URL (change for EU/DEU regions) |
| No |
| IAM URL (change for EU/DEU regions) |
| No | — | Default project UUID (tools accept per-call override) |
| No |
|
|
| No |
| Port for HTTP transport |
| No |
| Logging verbosity ( |
| No | off |
|
| For | — | Path to the |
| No |
| SCA Resolver version that |
| No |
| Image |
| No |
| Docker platform. The resolver is built for x86_64 only |
| No |
| Resolver timeout |
| No | published checksum | Expected SHA-256 of the downloaded tarball |
| No | off |
|
| For | — | Path to a containers resolver binary built from |
| No |
|
|
| No |
| Docker platform for the build and the run |
| No |
| Resolver timeout |
Claude Code (npx)
{
"mcpServers": {
"checkmarx": {
"command": "npx",
"args": ["-y", "@nntndfrk/checkmarx-mcp"],
"env": {
"CHECKMARX_API_KEY": "your-api-key",
"CHECKMARX_TENANT": "your-tenant"
}
}
}
}Cursor (npx)
Add to .cursor/mcp.json in your workspace:
{
"mcpServers": {
"checkmarx": {
"command": "npx",
"args": ["-y", "@nntndfrk/checkmarx-mcp"],
"env": {
"CHECKMARX_API_KEY": "your-api-key",
"CHECKMARX_TENANT": "your-tenant"
}
}
}
}From source
If running from a local clone, replace npx with node and point to the built file:
{
"command": "node",
"args": ["/path/to/checkmarx-mcp/dist/index.js"]
}Claude Desktop (HTTP mode)
Start the server:
CHECKMARX_API_KEY=your-key CHECKMARX_TENANT=your-tenant TRANSPORT=http node dist/index.jsThen configure Claude Desktop to connect to http://localhost:3000/mcp.
Docker
docker build -t checkmarx-mcp .
docker run -p 3000:3000 \
-e CHECKMARX_API_KEY=your-key \
-e CHECKMARX_TENANT=your-tenant \
-e CHECKMARX_BASE_URL=https://eu.ast.checkmarx.net \
-e CHECKMARX_IAM_URL=https://eu.iam.checkmarx.net \
checkmarx-mcpDevelopment
# Install dependencies
npm install
# Run in dev mode (stdio)
CHECKMARX_API_KEY=your-key CHECKMARX_TENANT=your-tenant npm run dev
# Build for production
npm run build
# Run tests
npm test
# Type check
npm run typecheck
# Lint & format
npm run lint
npm run formatExample Prompts
Quick security overview
"Check Checkmarx connectivity, list my projects, and show a findings summary for the latest completed scan."
Scan local code
"Scan the current directory for vulnerabilities using Checkmarx."
Scan a Git repository
"Scan the main branch of https://github.com/org/repo with SAST and SCA."
Triage critical findings
"Show me all CRITICAL and HIGH findings from the latest scan on my-app project. For each SAST finding, show the data flow."
Compare scan results
"Compare findings between the two most recent scans on project my-api. What's new, what's fixed?"
Fix a vulnerability
"Get the full data flow for finding XYZ from scan ABC, then suggest a code fix based on the source and sink."
SCA dependency audit
"List all SCA findings for the latest scan. Group them by package and show which ones have a recommended fix version."
Filter by state
"Show me all findings marked as TO_VERIFY in my latest scan. Help me triage them as CONFIRMED or NOT_EXPLOITABLE."
Infrastructure-as-Code review
"List all KICS findings from the latest scan. Group by platform (Terraform, Dockerfile, K8s) and severity."
Monitor scan progress
"Trigger a SAST-only scan of the current directory, then poll until it completes and show the results."
Scan a base image for CVEs
"Scan nginx:1.27-alpine-slim and tell me what CVEs are in it. Prioritize HIGH and CRITICAL."
Audit Dockerfile base images in a repo
"Scan this repo including container security, then list the containers findings grouped by base image and recommend upgrades."
Container Security
The MCP exposes the Checkmarx One Container Security engine in two flavors:
Dockerfile-based (inside a repo/local scan)
Add "containers" to scanTypes when triggering a scan of code that contains a
Dockerfile. Checkmarx will resolve each FROM image, extract its package
inventory, and flag CVEs in those base-image layers.
trigger_scan_local({
directory: "/path/to/app",
scanTypes: ["sast", "sca", "kics", "containers"]
})By default Checkmarx resolves the images named in the uploaded files. To
analyse images the way a cx pipeline does, including images it can't pull
such as the one your pipeline builds, use containersResolution: "local" and
containerImages (see Containers).
Image-only (no Dockerfile required)
trigger_scan_image scans any public image reference by synthesizing a minimal
Docker context (FROM <image>) and uploading it. It works for any public
registry — Docker Hub, GHCR, public ECR, Quay.
trigger_scan_image({ image: "nginx:1.27-alpine-slim" })
trigger_scan_image({ image: "ghcr.io/org/app:v1" })
trigger_scan_image({ image: "nginx@sha256:<digest>" })For private registries, configure a Private Registry Integration in
Checkmarx One first. Local docker pull is not used by the MCP.
Matching a cx pipeline scan
To check a fix before you push, a local scan should store the same findings as
the pipeline scan that runs cx scan create. The Checkmarx UI and the scan
counters show what a scan stores, so the scan itself has to match, not only
what you read back.
SCA: resolve dependencies locally
A pipeline that runs cx scan create --sca-resolver resolves dependencies with
Checkmarx SCA Resolver on the build agent and uploads the result. Without it,
Checkmarx resolves the uploaded lock files in the cloud, dev dependencies
included, so the stored SCA results differ (for example 1148 packages instead
of 47).
Pass scaResolution: "local", or set CHECKMARX_SCA_RESOLVER to make it the
default, and trigger_scan_local runs SCA Resolver the same way. Without the
variable, a per-call "local" runs it in Docker mode with the defaults below.
It copies the directory to a temp folder, skipping excluded folders.
It runs
ScaResolver offline -s <copy> -n <project name> -r <out>.json <scaResolverParams>.It zips the directory as usual and adds the resolver output as
.cxsca-results.jsonat the zip root.
If the resolver fails or times out, the tool returns the error and the last 50 lines of resolver output, and no scan is created. It never falls back to cloud resolution.
Docker mode (CHECKMARX_SCA_RESOLVER=docker) needs Docker running. It
downloads the linux64 build of SCA Resolver once to
~/.cache/checkmarx-mcp/sca-resolver/<version>/, checks it against the
published SHA-256, and runs it in CHECKMARX_SCA_RESOLVER_IMAGE. Use this on
macOS: the macOS build of SCA Resolver is x86_64 only. The image must contain
the package managers your projects use. The default Node image covers npm,
which is all SCA Resolver needs for package-lock.json (no node_modules).
Native mode (CHECKMARX_SCA_RESOLVER=native) runs the binary at
CHECKMARX_SCA_RESOLVER_PATH with the package managers on your PATH.
Pass the pipeline's --sca-resolver-params string unchanged as
scaResolverParams:
trigger_scan_local({
directory: "/path/to/app",
branch: "feature/login-mcp",
scanTypes: ["sast", "sca", "kics"],
sastFilter: "!**\\node_modules,!**\\.git,!**\\dist",
scaResolverParams: "--extract-archives zip,ear,war --extract-depth 1 --ignore-dev-dependencies --maven-parameters='-Dscope=runtime'"
})The result reports scaResolution, the resolver mode and version, and the
number of resolved packages. Pass scaResolution: "cloud" to skip the resolver
for one scan. A scan resolved in the cloud returns a warning that it will not
match a pipeline scan that uses cx --sca-resolver.
hideDevAndTestDependencies on list_findings and findings_summary is
still useful for scans resolved in the cloud, but it only filters what you
read. The stored scan keeps the dev dependencies.
Scan a commit instead of the working tree
A pipeline scans a fresh checkout. Your folder also has untracked files,
uncommitted changes and local build output. Pass gitRef (a commit, branch or
tag) to scan what a CI checkout of that commit sees: tracked files only, with
no .git, ignored or untracked files. The MCP checks the commit out to a temp
folder with a temporary git index, so your index and working tree don't
change. .gitattributes filters and line endings apply as in a checkout;
export-ignore does not, because CI checkouts keep those files. Submodules are
not included.
If the pipeline builds before it scans, add the build output from your working
tree with extraPaths. Paths are relative to directory and go through the
same zip filters as the rest:
trigger_scan_local({
directory: "/path/to/app",
branch: "main-mcp",
gitRef: "4f2c9e1",
extraPaths: ["dist", "iac/generated"],
scanTypes: ["sast", "sca", "kics", "containers"],
scaResolution: "local",
containerImages: ["registry.example.com/team/app:1.2.3"]
})The result reports the commit the ref resolved to.
Compare the scans
compare_scans compares a pipeline scan (baseScanId) with a local scan
(compareScanId) and lists what differs in differences:
the engines that ran;
per-engine counts by severity, and the findings only one scan has, matched by
similarityId;SAST findings per file, and SAST LOC, file count and preset;
the stored SCA packages with their direct, dev and test flags, read from the SCA
ScanReportJsonexport ascxdoes.
An empty differences list means the scans match.
Files and settings
trigger_scan_localzips the same file types as thecxCLI (2.3.27) and skips onlynode_modules,.git,.vs,.vscodeand.idea. UsezipMode: "all"to upload every file type instead.Local build output and caches, such as
dist/or.angular/, are uploaded too, ascxwould. If the pipeline scans a clean checkout, add them toexcludePatterns, or set a matchingsastFilter.Pass the same
sastFilter,scaFilter,kicsFilter,presetNameandincrementalvalues the pipeline passes tocx.Use a separate branch label for manual scans, for example
<branch>-mcp, so they don't mix into the real branch history.
Containers: resolve images locally
When containers is in the scan types and the tenant flag
CONTAINER_ENGINE_CLI_ENABLED is on, cx scan create resolves containers on
the build agent before it zips the source:
It finds images in Dockerfiles, Docker Compose files and Helm charts, and adds the images from
--container-images.It analyses each image with syft (Checkmarx
containers-resolver).It adds
.checkmarx/containers/containers-resolution.jsonto the zip. SAST scans that file too, so its image and layer digests can show up asTruffleHog_HighEntropy_Stringsfindings.
With containersResolution: "local", trigger_scan_local does the same:
It reads
CONTAINER_ENGINE_CLI_ENABLEDascxdoes. When the flag is off, an explicit"local"fails, becausecxwould not resolve locally either.It copies the directory to a temp folder, skipping excluded folders, and runs the resolver on that copy. Your folder is never written to.
It adds the result to the zip as
.checkmarx/containers/containers-resolution.json, replacing any file with that name in the folder. Whencontainersis the only scan type, the zip holds only that file, as withcx.
Pass the pipeline's --container-images value as containerImages. Giving
containerImages selects local resolution:
trigger_scan_local({
directory: "/path/to/app",
branch: "feature/login-mcp",
scanTypes: ["sast", "sca", "kics", "containers"],
scaResolution: "local",
containerImages: ["registry.example.com/team/app:1.2.3"]
})The result reports containersResolution and, per image, its origins
(UserInput, Dockerfile, DockerCompose, Helm), the files that name it
and its package count. Images the resolver could not analyse are listed in
notAnalyzed and in warnings.
The resolver reads images from the local Docker daemon first, then from the
registry. Pull or build private images locally before you scan, for
example docker pull registry.example.com/team/app:1.2.3. An image rebuilt
locally from the same Dockerfile has different digests, so only the
TruffleHog findings on those digests will differ from the pipeline scan.
Checkmarx ships no standalone resolver binary:
Docker mode (default, or
CHECKMARX_CONTAINERS_RESOLVER=docker) needs Docker running. The first scan builds the wrapper incontainers-resolver/main.goin agolang:1.24container, inside theast-climodule at tagCHECKMARX_CONTAINERS_RESOLVER_VERSION, so it uses the same containers-resolver, syft and stereoscope versions as thatcxrelease. The binary is cached in~/.cache/checkmarx-mcp/containers-resolver/<version>/<platform>/. The build takes a few minutes, longer under emulation on Apple Silicon. Scans run the binary ingolang:1.24with/var/run/docker.sockmounted and the source copy mounted read-only.Native mode (
CHECKMARX_CONTAINERS_RESOLVER=native) runs the binary atCHECKMARX_CONTAINERS_RESOLVER_PATH. Build it as the comment at the top ofmain.goshows. It needs a Docker or Podman daemon for local images.
Set CHECKMARX_CONTAINERS_RESOLVER to make local resolution the default for
every scan with containers. Without it, a scan with containers on a tenant
with the flag on returns a warning that it will differ from a cx scan.
Troubleshooting
"Invalid configuration" on startup — Check that CHECKMARX_API_KEY and CHECKMARX_TENANT are set. See .env.example for all available options.
"Auth failed: invalid_grant" — Your API key may have expired. Generate a new one in Checkmarx One under IAM > API Keys.
"Health check failed" — Verify CHECKMARX_BASE_URL matches your region (US: ast.checkmarx.net, EU: eu.ast.checkmarx.net).
Containers resolver build fails: the first local container resolution clones ast-cli from GitHub and downloads Go modules in Docker. Check network access from Docker, and that CHECKMARX_CONTAINERS_RESOLVER_VERSION is an existing ast-cli tag.
Scans stuck in "Queued" — This is normal for large queues. Use get_scan to poll. Scans typically start within a few minutes.
License
MIT
Available Tools
12 toolscompare_scansA
Compare two scans, e.g. a cx pipeline scan (base) and a trigger_scan_local scan of the same commit (compare). Reports the engines that ran, per-engine counts by severity, findings matched by similarityId, SAST findings per file, SAST LOC, and the stored SCA packages with their direct, dev and test flags. differences lists what differs; it is empty when the scans match.
Inputs: baseScanId (required), compareScanId (required), maxItems, hideDevAndTestDependencies.
findings_summaryA
Get a severity breakdown of findings for a completed scan, grouped by scanner type. Returns total count, per-engine severity/status/state counters, and the number of SCA packages.
Inputs: scanId (required), hideDevAndTestDependencies.
get_finding_detailsA
Get full details for a specific finding, including data flow (SAST) or vulnerability chain (SCA). Use list_findings first to get valid finding IDs.
Inputs: scanId (required), findingId (required).
get_projectB
Get details for a specific Checkmarx One project by its ID.
Inputs: projectId (required).
get_scanA
Get details for a specific scan. Use this to poll scan status after triggering a scan.
Inputs: scanId (required).
health_checkA
Verify connectivity to the Checkmarx One platform. Returns ok status and a diagnostic message.
Inputs: no named parameters.
list_findingsB
List security findings from a scan with filtering by severity, type, and state. SAST findings include file location and data flow length. SCA findings include package, CVE, and remediation data. KICS (IaC) findings include platform, file, and expected/actual values. Containers findings include image, package, CVE, and recommended image data.
Inputs: scanId (required), type, limit, state, +3 more.
list_projectsB
List Checkmarx One projects. Supports filtering by name and pagination.
Inputs: name, limit, offset.
list_scansA
List recent scans, optionally filtered by project and status. Returns scan IDs, status, engines, and timestamps.
Inputs: limit, offset, statuses, projectId.
trigger_scan_gitA
Trigger a new scan from a Git repository URL. Returns the created scan with its ID for status polling.
Inputs: branch (required), repoUrl (required), projectId, scanTypes.
trigger_scan_imageA
Scan a specific container image (e.g. 'nginx:1.27-alpine-slim', 'ghcr.io/org/app:v1') via Checkmarx Container Security. Works for any public registry (Docker Hub, GHCR, public ECR, Quay). Returns a scan ID for polling. For private registries, set up a Private Registry Integration in Checkmarx One first.
Inputs: image (required), branch, projectId.
trigger_scan_localA
Scan a local directory by zipping and uploading it. Returns the created scan ID for status polling. By default the zip holds the same files as a cx scan create pipeline scan, so results can be compared. Local build output and caches (e.g. dist/, .angular/) are included like cx does; add them to excludePatterns if the pipeline scans a clean checkout. Use a separate branch label (e.g. '-mcp') so manual scans don't mix into the real branch history. With scaResolution 'local', dependencies are resolved locally as cx --sca-resolver does, and with containersResolution 'local', container images are resolved locally as cx does, so the scan stores the same SCA packages and container findings as the pipeline scan. Pass gitRef to scan a commit as a CI checkout sees it, plus extraPaths for CI build output. The result lists warnings when the scan can't match a cx pipeline scan.
Inputs: directory (required), branch, gitRef, zipMode, +13 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a distinct resource and action: projects (list/get), scans (list/get/trigger variants), findings (list/details/summary), plus compare and health. The three trigger_scan_* tools are cleanly separated by input source (Git URL, local directory, container image), and the list/get pairs are unambiguous thanks to explicit ID-based descriptions. findings_summary (aggregate counts), list_findings (enumerated findings), and compare_scans (diff between two scans) have clearly different outputs, so an agent can select confidently.
The dominant pattern is verb_noun snake_case (list_projects, get_scan, trigger_scan_git, list_findings, compare_scans), and the trigger_scan_* family is nicely prefixed. Two outliers break the pattern: health_check (noun_verb) and findings_summary (noun-first instead of something like summarize_findings). These are minor and still readable, so the set is mostly predictable.
Twelve tools is a good fit for a scanning platform: read access to projects, scans, and findings, three distinct scan-entry points, a comparison tool, and a connectivity check. Nothing looks redundant or padded, and no obvious operation is missing from a scope perspective.
The surface covers the main lifecycle: list/get projects, list/get/trigger scans across three sources, list/detail/summarize findings, and compare scans, which is enough for the core 'scan and inspect results' workflow. Gaps are minor: no cancel/delete scan (useful while polling a long scan), and no project creation or scan configuration/preset listing, but agents can fall back to the Checkmarx One UI or note the limitation.
Maintenance
Related MCP Connectors
Security scanning for code, containers and IaC: request scans, read findings, report fixes.
Security scanner for AI-written code: SAST, secrets, dependencies, IaC, containers and DAST.
Connect AI agents to CloudBees Unify: feature flags, CI/CD, release orchestration, and security
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to scan project dependencies and Infrastructure as Code files for security vulnerabilities and misconfigurations. It also provides automated fixing capabilities to remediate identified security issues.183MIT
- AlicenseNot gradedqualityCmaintenanceThe Checkmarx Security MCP server bridges your AI assistant (Claude, Cursor, Copilot, etc.) with Checkmarx One's enterprise application security platform. It exposes security workflows as natural-language-accessible MCP tools, allowing developers to scan code, investigate findings, and receive context-aware fixes without leaving their development environment.1Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to scan code for security and quality issues and receive machine-readable reports with suggested fixes and verification criteria.82 npm2MIT

Apiiro Guardian Agent MCPofficial
AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to leverage Application Security Posture Management (ASPM) capabilities, allowing developers to write secure code, query security risks, trigger diff scans, and manage security findings directly from their AI assistant.5Apache 2.0