SonarQube MCP Server

MCP

by SonarSource · v1.21.0

Analyze code quality and security with SonarQube Server or Cloud directly in AI assistants.

mcplocal

MCP configuration

stdio

Command

docker run -i --rm docker.io/sonarsource/sonarqube-mcp

Environment

  • SONARQUBE_TOKENrequiredsecret

    Your SonarQube USER token

  • SONARQUBE_ORGsecret

    Your SonarQube Cloud organization key (if using SonarQube Cloud)

  • SONARQUBE_URLsecret

    Your SonarQube Server URL (if using SonarQube Server)

Install in one click with Zurek

Browse here, install from the native macOS app — pick targets, fill env vars, and write configs safely.