Using SonarQube MCP Server

This page describes how to integrate the SonarQube MCP Server with SonarQube for IDE to enhance your development workflow in an AI-enabled environment.

The primary focus of these examples is to help you set up your environment variables, particularly SONARQUBE_IDE_PORT, using container examples for both SonarQube Cloud and SonarQube Server. Once configured, your can use your AI agent to analyze code snippets or entire files directly within your IDE.

If needed, check out the Quickstart guide to get on your way before interacting with the SonarQube MCP Server.

Using the MCP tools

After you Configure your SonarQube MCP server, you can open the chat view in your AI-enabled IDE and start using the MCP server. You'll see your custom tools available, and you can even get suggestions for how to use them. See the Tools page for a full list of built-in tools.

Last updated

Was this helpful?