Skip to main content
Integrate Semgrep Guardian with VS Code through MCP servers.

Prerequisites

Setup

2
Add the Semgrep MCP server to VS Code. Create .vscode/mcp.json in your workspace (or run the MCP: Open User Configuration command from the Command Palette for a user-wide entry) and paste the following:
3
Reload VS Code. Semgrep tools become available in the Copilot Chat Agent mode.
VS Code does not expose a post-write hook today, so Semgrep tools are invoked when the agent calls them through MCP.

What rules does this setup use?

This integration scans with the rules enabled for your Semgrep organization through your Policies. See Rules and configuration for how this differs from the Claude Code remote plugin.

Next steps