Skip to main content
MCP (Model Context Protocol) is an open standard that defines a consistent way for applications to share relevant context and information with Large Language Models (LLMs). MCP servers expose specific capabilities through the standardized Model Context Protocol. For more information on MCP, refer to the MCP documentation. The Endor Labs MCP server runs in your IDE and scans your code as you write. You get findings and automated fixes in your editor for both human and AI-generated code, before the code reaches production.
You can also connect the Endor Labs documentation MCP server to get accurate, real-time answers about Endor Labs directly in your AI tools.
The Endor Labs MCP server runs locally on your machine as a lightweight process. Your IDE or CLI launches it through npx or a system-installed endorctl and communicates with it over stdio. When the AI agent needs security context, the server calls the Endor Labs cloud platform and returns the results. The server uses the stdio transport only, so configure it with a command and args entry rather than an HTTP (type: http) URL. The following diagram shows how your IDE or CLI connects to Endor Labs through the local MCP server.

How Endor Labs MCP server helps your development workflow

The Endor Labs MCP server helps developers and AI agents in the following ways:
  • Provide guardrails for agents before code review: Reduce the number of known vulnerabilities entering your code and save developers time by checking AI agent suggestions in real time. Integrate security before an issue is discovered in CI or in production.
  • Improve the speed of remediating security risks: Agents use vulnerability context from Endor Labs to help implement secure changes, from writing more secure code to upgrading dependencies.

How to use the Endor Labs MCP server

The Endor Labs MCP server provides the following tools:
  • check_dependency_for_vulnerabilities: Check if a dependency version in your project (python, java, go, npm, or maven) has known vulnerabilities.
  • check_dependency_for_risks: Check a dependency version for security risks. Returns confirmed vulnerability IDs (vulnerability_ids) and malware IDs (malware_ids) separately, excluding disputed or withdrawn CVEs and contested malware records.
  • get_endor_vulnerability: Get the details of a specific vulnerability (CVE or GHSA ID) from the Endor Labs vulnerability database.
  • describe_resource_schema: Inspect the valid snake_case field paths for a supported resource type (Project, PackageVersion, Vulnerability, Finding, Metric, ScanRequest, ScanResult, or Policy), optionally scoped with path_prefix and max_depth. Use these paths to request a subset of fields with get_resource.
  • get_resource: Retrieve an Endor Labs resource (Project, PackageVersion, Vulnerability, Finding, Metric, ScanRequest, ScanResult, or Policy) by uuid or exact name. Accepts an optional fields list of field mask paths to return only the requested fields and avoid timeouts on large resources, and an optional namespace override.
  • scan: Run an Endor Labs security scan (vulnerabilities, dependencies, secrets, sast, ai-sast, or ghactions). Requires an absolute repository path and rejects relative paths. Supports the following options:
    • namespace: Override the server’s configured namespace for a single scan call.
    • scan_options.summary: Returns severity counts and the top five findings by default (true). Set scan_options.summary to false to return the full list of findings.
    • scan_options.diff_scope: Limit sast, ai-sast, secrets, or vulnerabilities scans to uncommitted local changes (local) or changes relative to the default branch (baseline). Cannot be combined with pr_incremental, pr_baseline, include_path, or exclude_path.
    • scan_options.languages: Limit dependency scanning to specific languages. Passing "c" selects Conan C/C++ dependency scanning only.
    • scan_options.segment_match_languages: Run source-level segment matching, such as ["c"] for C/C++ projects that don’t use Conan.
  • security_review: Perform security review analysis on code diffs (local_changes or main_vs_last_commit). The tool sets the --diff-scope scan option automatically based on the review type, and accepts an optional namespace override. Requires the Enterprise Edition and AI security code review enabled for your namespace. See AI security code review for setup instructions.
After you set up the MCP server, you can choose to disable the tools that you do not want to use.

Choose your IDE or platform to get started

Cursor

Configure the Endor Labs MCP server in Cursor for AI-powered development workflows.

Grok Build

Configure the Endor Labs MCP server in Grok Build for AI-powered development workflows.

Claude Code

Integrate the Endor Labs MCP server with Claude Code for AI-powered development workflows.

OpenAI Codex

Configure the Endor Labs MCP server in OpenAI Codex for AI-powered development workflows.

Visual Studio Code

Configure the Endor Labs MCP server in Visual Studio Code with GitHub Copilot for AI-powered development workflows.

Devin

Configure the Endor Labs MCP server in Devin through the MCP Marketplace.

Gemini CLI

Configure the Endor Labs MCP server in Gemini CLI for AI-powered development workflows.

Augment Code

Configure the Endor Labs MCP server in Augment Code for AI-powered development workflows.

Google Antigravity

Configure the Endor Labs MCP server in Google Antigravity for AI-powered development workflows.

IntelliJ IDEA

Configure the Endor Labs MCP server in IntelliJ IDEA with GitHub Copilot for AI-powered development workflows.

GitHub AgentHQ

Add the Endor Labs agent in GitHub Copilot to check dependencies and vulnerabilities.

OpenCode

Configure the Endor Labs MCP server in OpenCode for AI-powered development workflows.
Related: To run Endor Labs security workflows such as finding triage, dependency remediation, and onboarding checks through your AI coding agent, see the Endor Labs Agent Kit.