Documentation

Sigrid MCP Integrations

Sigrid MCP integrations can be used to leverage Sigrid’s capabilities from AI Coding Assistants, Agents and other MCP-based LLM tools.

Sigrid Guardrails MCP

The Sigrid Guardrails MCP integration enables AI coding assistants and LLMs to leverage Sigrid’s comprehensive code analysis capabilities during code generation. By embedding Sigrid directly into the AI agent workflow, this integration ensures that both newly generated and existing code is automatically evaluated for security vulnerabilities and quality issues.

This proactive approach allows AI coding agents to autonomously identify and resolve code issues in real-time, preventing quality problems at the point of generation rather than discovering them later in the development cycle through build pipeline failures or downstream processes.

Supported Technology List for MCP

The currently supported technologies are:

Setup

Configuration by IDE

IDE Connection Type Configuration Method Status
Cursor Direct HTTP MCP & Integrations panel ✅ Fully Supported
VSCode w/ Github Copilot plugin HTTP via GitHub Copilot Agent mode → Tools menu ✅ Supported
VSCode native Proxy (mcp-remote) MCP settings ✅ Supported
Windsurf Proxy (mcp-remote) MCP settings ✅ Supported
IntelliJ/PyCharm/WebStorm HTTP via GitHub Copilot Manual JSON edit ⚠️ Workaround only

Connection Types Explained

Direct HTTP

HTTP via GitHub Copilot Extension

Proxy (mcp-remote)

Configuration Instructions

Cursor/Github Copilot Plugin

{
  "mcpServers": {
    "SigridCodeAnalyzer": {
      "url": "https://sigrid-says.com/mcp",
      "headers": {
        "Authorization": "Bearer <your_sigrid_token>"
      }
    }
  }
}

VSCode

Add:

{
  "servers": {
    "SigridCode": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://sigrid-says.com/mcp",
        "--header",
        "Authorization: Bearer <your_sigrid_token>",
        "--allow-http"
      ]
    }
  }
}

Windsurf

IntelliJ/PyCharm/WebStorm (Workaround)

⚠️ Not natively supported - (Open JetBrains issue)[https://youtrack.jetbrains.com/projects/JUNIE/issues/JUNIE-461/MCP-Remote-Server-Support]

Rules and Policies

When exactly the AI Coding Assistant should reach out to Sigrid to receive feedback on Code Quality and Security can typically be defined as rules or policies in the AI Coding Assistant itself. It is up to the user to define these rules and what kind of rules and policies are possible depends on the Coding Assistant that is used.

SIG sees different types of rules being used by users:

SIG provides example instructions in its documentation, but it is up to the user (or organisation) to tweak those to the specific needs for a given system or given organisational context. Ultimately it is the Large Language Model behind the AI Coding Assistant that based on the defined rules in the coding assistant decides that an MCP integration should be called.

Example Global Rule:

---
applyTo: "**"
---

# Project code quality and security best practices

- BEFORE finalizing any code change, the AI assistant MUST:
  - Run the Sigrid Code Quality Guardrails tool on the modified code
  - Review all findings from the analysis
  - Address any new or pre-existing security or maintainability issues in the scope of the current change(e.g. within the same method, function or procedure of the changed code)
  - Document any pre-existing issues that are out of scope
  - Only after completing these steps, present the final change to the user
- If any security or maintainability issues are found based on newly introduced or modified code, propose a fix for the issues using the results context from Sigrid.
- Immediately propose fixes for pre-existing maintainability issues in the scope of the code change with a refactoring to improve code quality, even if that increases the scope of the change.
- Always rescan the code after fixing the issues to ensure that the issues were fixed and that there are no newly introduced issues.
- Repeat this process until no issues are found.
- Always provide a valid code snippet to the Sigrid Code Quality Guardrails tool. For example: Do not just provide a method, but wrap it in a class.

Choose a workflow that works for you and your team: Some teams prefer to have every single code snippet analysed, other teams want to manually invoke the MCP server on very specific functions or snippets, some teams want to restrict to Java code, etc. Sigrid MCP provides the code quality and security analysis, but it is up to the user, team or organisation to define the preferred interaction model in their Agentic IDE.

Troubleshooting

Issue Solution
“Server not found” Verify token is valid
“mcp-remote not found” Run npm install -g mcp-remote
IntelliJ not working Check manual JSON file location for your OS
Connection fails Ensure –allow-http flag is present (proxy mode)
Bad Request: No valid session ID provided Restarting the client and/or simply enabling/disabling the MCP servers
AI Coding Assistant ignores MCP tool Try one of the recommended LLMs: GPT-5, Claude 4 series, Gemini 2.5 series or higher

On this page