Official SonarQube MCP Server for code quality and security in AI agents
README
The SonarQube MCP Server is a Model Context Protocol (MCP) server that enables seamless integration with SonarQube Server or Cloud for code quality and security. It also supports the analysis of code snippet directly within the agent context.
🔒 Important: Your SonarQube token is a sensitive credential. Follow these security practices:
When using CLI commands:
When using configuration files:
The fastest way to get started is the SonarQube MCP Server Configuration Generator – an interactive tool that produces a ready-to-use configuration for your preferred AI agent client.
If you prefer to configure things yourself, the simplest method is to use our container image hosted at mcp/sonarqube. Read below if you want to build it locally.
You can also use the SonarSource image at sonarsource/sonarqube-mcp. Unlike Docker's MCP Hub, which only publishes a latest tag, the SonarSource image provides