Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Mcp Contrast

    MCP Server for Contrast Security

    10 stars
    Java
    Updated Oct 14, 2025

    Table of Contents

    • What's New
    • Available Tools
    • Applications
    • Vulnerabilities
    • Libraries (SCA)
    • Protection (ADR/Protect)
    • Coverage
    • SAST (Scan)
    • Quick Start
    • Prerequisites
    • VS Code (GitHub Copilot) - One-Click Install
    • IntelliJ IDEA (GitHub Copilot)
    • Other AI Assistants
    • Sample Prompts
    • For the Developer
    • Remediate Vulnerabilities in Code
    • Third-Party Library Remediation
    • Retrieve Applications by Tag
    • Retrieve Applications by Metadata
    • Retrieve Vulnerabilities by Session Metadata
    • For the Security Professional
    • Getting the JAR File
    • Download (Recommended)
    • Build from Source
    • Proxy Configuration
    • Java Process (JAR Deployment)
    • Direct Java Command
    • MCP Configuration File
    • Docker (Docker Deployment)
    • Direct Docker Run Command
    • MCP Configuration File
    • Common Issues
    • Review Log
    • Enable Debug Logging
    • Certificate Issues
    • Data Privacy

    Table of Contents

    • What's New
    • Available Tools
    • Applications
    • Vulnerabilities
    • Libraries (SCA)
    • Protection (ADR/Protect)
    • Coverage
    • SAST (Scan)
    • Quick Start
    • Prerequisites
    • VS Code (GitHub Copilot) - One-Click Install
    • IntelliJ IDEA (GitHub Copilot)
    • Other AI Assistants
    • Sample Prompts
    • For the Developer
    • Remediate Vulnerabilities in Code
    • Third-Party Library Remediation
    • Retrieve Applications by Tag
    • Retrieve Applications by Metadata
    • Retrieve Vulnerabilities by Session Metadata
    • For the Security Professional
    • Getting the JAR File
    • Download (Recommended)
    • Build from Source
    • Proxy Configuration
    • Java Process (JAR Deployment)
    • Direct Java Command
    • MCP Configuration File
    • Docker (Docker Deployment)
    • Direct Docker Run Command
    • MCP Configuration File
    • Common Issues
    • Review Log
    • Enable Debug Logging
    • Certificate Issues
    • Data Privacy

    Documentation

    Contrast MCP Server

    Java CI with Maven

    License

    The Contrast MCP Server allows you to connect Contrast Security to your AI coding agent to automatically remediate vulnerabilities, update insecure libraries, and analyze security coverage—all through natural language prompts.

    • Remediate vulnerabilities directly from Contrast Assess data
    • Identify and update insecure third-party libraries with Contrast SCA insights
    • Review route coverage, Protect/ADR findings, and other security metadata on demand

    [!WARNING]

    CRITICAL SECURITY WARNING: Exposing Contrast vulnerability data to an AI service that trains on your prompts can leak sensitive information. Only use mcp-contrast with environments that contractually guarantee data isolation and prohibit model training on your inputs.

    Verify AI Data Privacy: Confirm that your service agreement prevents model training on your prompts and consult your security team before sharing Contrast data.

    UNSAFE: Public consumer LLM sites (e.g., free ChatGPT, Gemini, Claude) that use prompts for training.

    POTENTIALLY SAFE: Enterprise services with contractual privacy guarantees (e.g., Google Cloud AI, AWS Bedrock, Azure OpenAI).

    What's New

    See CHANGELOG.md for the complete release history, including breaking changes and new features.

    Available Tools

    The Contrast MCP Server provides 13 tools for security analysis and vulnerability management:

    Applications

    ToolDescription
    search_applicationsSearch applications by name, tag, or metadata filters
    get_session_metadataGet session metadata fields available for an application

    Vulnerabilities

    ToolDescription
    search_vulnerabilitiesSearch vulnerabilities across all applications (org-level)
    search_app_vulnerabilitiesSearch vulnerabilities within a specific application with session filtering
    get_vulnerabilityGet detailed vulnerability info including stack trace and remediation guidance
    list_vulnerability_typesList all available vulnerability types for filtering

    Libraries (SCA)

    ToolDescription
    list_application_librariesList libraries used by an application with vulnerability counts
    list_applications_by_cveFind applications affected by a specific CVE

    Protection (ADR/Protect)

    ToolDescription
    search_attacksSearch attack events with filtering by status, type, and rules
    get_protect_rulesGet protection rules configured for an application

    Coverage

    ToolDescription
    get_route_coverageGet route coverage data showing exercised vs discovered routes

    SAST (Scan)

    ToolDescription
    get_scan_projectGet SAST project details and vulnerability counts
    get_scan_resultsGet SAST scan results in SARIF format

    Quick Start

    Prerequisites

    • Docker (recommended) or Java 17+ for JAR deployment
    • Contrast API credentials (how to get API credentials)

    VS Code (GitHub Copilot) - One-Click Install

    Install in VS Code

    Click the button above to automatically install in VS Code. For manual setup, see VS Code (GitHub Copilot) Installation Guide.

    IntelliJ IDEA (GitHub Copilot)

    Add this to your mcp.json configuration file and replace the placeholder values with your Contrast credentials:

    json
    {
      "servers": {
        "contrast": {
          "command": "docker",
          "args": [
            "run",
            "-e",
            "CONTRAST_HOST_NAME",
            "-e",
            "CONTRAST_API_KEY",
            "-e",
            "CONTRAST_SERVICE_KEY",
            "-e",
            "CONTRAST_USERNAME",
            "-e",
            "CONTRAST_ORG_ID",
            "-i",
            "--rm",
            "contrast/mcp-contrast:latest",
            "-t",
            "stdio"
          ],
          "env": {
            "CONTRAST_HOST_NAME": "example.contrastsecurity.com",
            "CONTRAST_API_KEY": "example",
            "CONTRAST_SERVICE_KEY": "example",
            "CONTRAST_USERNAME": "example@example.com",
            "CONTRAST_ORG_ID": "example"
          }
        }
      }
    }

    📖 Full IntelliJ (GitHub Copilot) Installation Guide - Includes step-by-step setup and JAR deployment option

    Other AI Assistants

    • **Claude Code** - Anthropic's official CLI tool
    • **Claude Desktop** - Standalone Claude application
    • **Cline Plugin** - VS Code alternative AI assistant
    • **All Other MCP Hosts** - Complete installation guides for oterm and more

    Sample Prompts

    For the Developer

    Remediate Vulnerabilities in Code

    • Please list vulnerabilities for Application Y.
    • Give me details about vulnerability X in Application Y.
    • Review vulnerability X and fix it.

    Third-Party Library Remediation

    • Which libraries in Application X have high or critical vulnerabilities and are actively used?
    • Update library X, which has a critical vulnerability, to the safe version.
    • Which libraries in Application X are not being used?

    Retrieve Applications by Tag

    • Please give me the applications tagged with "backend."

    Retrieve Applications by Metadata

    • Please give me the applications with metadata "dev-team" and "backend-team."

    Retrieve Vulnerabilities by Session Metadata

    • Give me the session metadata for Application X.
    • Give me the vulnerabilities in the latest session for Application X.
    • Give me the vulnerabilities for session metadata "Branch Name" "feature/some-new-fix" for Application X.
    • Give me the route coverage for the latest session for Application X.
    • Give me the route coverage for session metadata "Branch Name" "feature/some-new-fix" for Application X.

    For the Security Professional

    • Please give me a breakdown of applications and servers vulnerable to CVE-xxxx-xxxx.
    • Please list the libraries for the application named xxx and tell me what version of commons-collections is being used.
    • Which vulnerabilities in Application X are being blocked by a Protect or ADR rule?

    Getting the JAR File

    If you're using JAR deployment (instead of Docker), you'll need the JAR file:

    Download (Recommended)

    Download the latest pre-built JAR from GitHub Releases.

    The JAR file will be named mcp-contrast-X.X.X.jar.

    Build from Source

    Alternatively, you can build from source if you need the latest development version. Requires Java 17+:

    bash
    mvn clean install

    The built JAR will be located at target/mcp-contrast-X.X.X-SNAPSHOT.jar

    Proxy Configuration

    If you're behind a corporate firewall or proxy, you'll need to configure proxy settings for the MCP server to reach your Contrast instance. The configuration differs depending on whether you're using Docker or JAR deployment.

    Java Process (JAR Deployment)

    Choose ONE of the following based on how you're running the JAR:

    Direct Java Command

    Use this if you're running the JAR directly from the command line or a script.

    Add these two system properties to your java command:

    code
    -Dhttp_proxy_host=proxy.example.com
    -Dhttp_proxy_port=8080

    Complete example:

    bash
    java \
      -Dhttp_proxy_host=proxy.example.com \
      -Dhttp_proxy_port=8080 \
      -jar /path/to/mcp-contrast-X.X.X.jar \
      --CONTRAST_HOST_NAME=example.contrastsecurity.com \
      --CONTRAST_API_KEY=example \
      --CONTRAST_SERVICE_KEY=example \
      --CONTRAST_USERNAME=example@example.com \
      --CONTRAST_ORG_ID=example

    MCP Configuration File

    Use this if you're running the JAR through an MCP host (IntelliJ, Claude Desktop, Cline, etc.).

    Add these two lines to the beginning of your args array:

    json
    "-Dhttp_proxy_host=proxy.example.com",
    "-Dhttp_proxy_port=8080",

    **Complete example using IntelliJ's mcp.json:**

    json
    {
      "servers": {
        "contrast": {
          "command": "java",
          "args": [
            "-Dhttp_proxy_host=proxy.example.com",
            "-Dhttp_proxy_port=8080",
            "-jar",
            "/path/to/mcp-contrast-X.X.X.jar",
            "--CONTRAST_HOST_NAME=example.contrastsecurity.com",
            "--CONTRAST_API_KEY=example",
            "--CONTRAST_SERVICE_KEY=example",
            "--CONTRAST_USERNAME=example@example.com",
            "--CONTRAST_ORG_ID=example"
          ]
        }
      }
    }

    Docker (Docker Deployment)

    Choose ONE of the following based on how you're running Docker:

    Direct Docker Run Command

    Use this if you're running Docker directly from the command line.

    Add these two environment variables to your docker run command:

    bash
    -e http_proxy_host="proxy.example.com" \
    -e http_proxy_port="8080" \

    Complete example:

    bash
    docker run \
      -e http_proxy_host="proxy.example.com" \
      -e http_proxy_port="8080" \
      -e CONTRAST_HOST_NAME=example.contrastsecurity.com \
      -e CONTRAST_API_KEY=example \
      -e CONTRAST_SERVICE_KEY=example \
      -e CONTRAST_USERNAME=example \
      -e CONTRAST_ORG_ID=example \
      -i --rm \
      contrast/mcp-contrast:latest \
      -t stdio

    MCP Configuration File

    Use this if you're running Docker through an MCP host (IntelliJ, VS Code, Claude Desktop, Cline, etc.).

    Add these proxy settings:

    Add to the args array (after the Contrast credentials):

    json
    "-e", "http_proxy_host",
    "-e", "http_proxy_port",

    Add to the env object:

    json
    "http_proxy_host": "proxy.example.com",
    "http_proxy_port": "8080"

    **Complete example using IntelliJ's mcp.json:**

    json
    {
      "servers": {
        "contrast": {
          "command": "docker",
          "args": [
            "run",
            "-e", "CONTRAST_HOST_NAME",
            "-e", "CONTRAST_API_KEY",
            "-e", "CONTRAST_SERVICE_KEY",
            "-e", "CONTRAST_USERNAME",
            "-e", "CONTRAST_ORG_ID",
            "-e", "http_proxy_host",
            "-e", "http_proxy_port",
            "-i", "--rm",
            "contrast/mcp-contrast:latest",
            "-t", "stdio"
          ],
          "env": {
            "CONTRAST_HOST_NAME": "example.contrastsecurity.com",
            "CONTRAST_API_KEY": "example",
            "CONTRAST_SERVICE_KEY": "example",
            "CONTRAST_USERNAME": "example@example.com",
            "CONTRAST_ORG_ID": "example",
            "http_proxy_host": "proxy.example.com",
            "http_proxy_port": "8080"
          }
        }
      }
    }

    For VS Code with input variables, see the VS Code Installation Guide.

    Common Issues

    If you are experiencing issues with the MCP server, here are some common troubleshooting steps:

    Review Log

    A log will be created, by default under /tmp/mcp-contrast.log either locally or within the Docker container. You can view this log to see if there are any errors or issues with the MCP server.

    Enable Debug Logging

    To enable debug logging you can add the following flag to the command line arguments when running the MCP server:

    --logging.level.root=DEBUG

    This can be added at this part of the docker command

    code
    "--rm",
            "contrast/mcp-contrast:latest",
            "-t",
            "--logging.level.root=DEBUG",
            "stdio"
            ],

    Certificate Issues

    If the SSL Certificate for the Teamserver URL is not trusted, you may see the following error:

    code
    Failed to list applications: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    If this occurs you will need to add the certificate to the Java Truststore and then add the following to the command line arguments when running the MCP server:

    -Djavax.net.ssl.trustStore=/location/to/mcp-truststore.jks, -Djavax.net.ssl.trustStorePassword=yourpassword

    More details on how to do this can be found in the Java documentation. Or ask your LLM to help you with this.

    Data Privacy

    The Contrast MCP Server provides a bridge between your Contrast Data and the AI Agent/LLM of your choice.

    By using Contrast's MCP server you will be providing your Contrast Data to your AI Agent/LLM, it is your responsibility to ensure that the AI Agent/LLM you use complies with your data privacy policy.

    Depending on what questions you ask the following information will be provided to your AI Agent/LLM.

    • Application Details
    • Application Rule configuration
    • Vulnerability Details
    • Route Coverage data
    • ADR/Protect Attack Event Details

    Similar MCP

    Based on tags & features

    • ES

      Esp Rainmaker Mcp

      Python·
      9
    • PE

      Personalizationmcp

      Python·
      12
    • FA

      Fal Mcp Server

      Python·
      8
    • ME

      Metmuseum Mcp

      TypeScript·
      14

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • ES

      Esp Rainmaker Mcp

      Python·
      9
    • PE

      Personalizationmcp

      Python·
      12
    • FA

      Fal Mcp Server

      Python·
      8
    • ME

      Metmuseum Mcp

      TypeScript·
      14

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k