Skip to content
VS Code

sonarqube mcp for VS Code

io.github.mshegolev/sonarqube-mcp

SonarQube MCP — projects, metrics, quality gate, issues, worst-metric ranking.

client:VS Code transport:stdio runtime:pypi

Install sonarqube mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "sonarqube-url",
      "description": "SONARQUBE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "sonarqube-token",
      "description": "SONARQUBE_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "sonarqube-ssl-verify",
      "description": "SONARQUBE_SSL_VERIFY",
      "password": true
    }
  ],
  "servers": {
    "sonarqube-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "sonarqube-mcp"
      ],
      "env": {
        "SONARQUBE_URL": "${input:sonarqube-url}",
        "SONARQUBE_TOKEN": "${input:sonarqube-token}",
        "SONARQUBE_SSL_VERIFY": "${input:sonarqube-ssl-verify}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

sonarqube mcp in other clients