Dependency scanning with GitHub MCP Server is in public preview

Published: (May 5, 2026 at 04:45 PM EDT)
2 min read

Source: GitHub Changelog

The GitHub MCP Server can now scan your code changes for vulnerable dependencies before you commit or open a pull request. You’ll catch known vulnerabilities while you write code with MCP‑compatible IDEs and AI coding agents. It’s now in public preview for repositories with Dependabot alerts enabled.

How it works

The dependency vulnerability scanning tools ship as part of the GitHub MCP Server’s dependabot toolset. Once enabled, your AI coding agent can run dependency vulnerability scanning based on your prompts. When you ask the agent to check for vulnerable dependencies, it:

  1. Invokes the dependabot toolset.
  2. Sends dependency information to the GitHub Advisory Database.
  3. Returns structured results with affected packages, severity, and recommended fixed versions.

For more thorough post‑commit checks, the toolset can also run the Dependabot CLI locally to diff dependency graphs before and after your changes.

Get started

Set up the GitHub MCP Server

Set up the GitHub MCP Server in your developer environment and enable the dependabot toolset:

  • GitHub Copilot CLI (preinstalled with the MCP Server):
copilot --add-github-mcp-toolset dependabot
  • Visual Studio Code: add the header "X-MCP-Toolsets": "dependabot" to your GitHub MCP Server configuration, or select Dependabot from the toolset selector in Copilot Chat.

Install the advanced‑security plugin (optional)

For a more tailored dependency‑vulnerability scanning experience:

  • GitHub Copilot CLI:
/plugin install advanced-security@copilot-plugins
  • Visual Studio Code: install the advanced‑security agent plugin (instructions) and then use the /dependency-scanning command in Copilot Chat.

You can now ask your agent to scan your current changes before committing, e.g.:

Scan the dependencies I added on this branch for known vulnerabilities and tell me which versions to upgrade to before I commit.

Learn more

Join the discussion in the GitHub Community announcements.

0 views
Back to Blog

Related posts

Read more »

Learning In Public | Day 0

Day - 0 Update log I have completed the Odin Project Introduction and Prerequisites. In the introduction I learned about what the Odin Project is, web developm...