SonarQube Cloud-hosted
The SonarQube Cloud-hosted configuration ensures you use the most up to date version of the SonarQube MCP Server and gives you access to a subset of tools.
Last updated
Was this helpful?
The SonarQube Cloud-hosted configuration ensures you use the most up to date version of the SonarQube MCP Server and gives you access to a subset of tools.
To always use the most up-to-date version of the SonarQube MCP Server, connect directly to the SonarQube Cloud-hosted MCP server. No local setup is required.
Use the SonarQube MCP server embedded in SonarQube Cloud to avoid running and maintaining your own MCP infrastructure while always using the current server version. The embedded server exposes a smaller, fixed subset of tools.

Use the official SonarQube MCP Server configuration generator to get a configuration snippet. To do this:
Identify your agent.
Find your common variables.
Enter the information into the SonarQube MCP Server configuration generator with the SonarQube Cloud (embedded) configuration.
Paste the generated configuration into your configuration file.
Add this configuration to your mcp.json file in your AI-enabled client config folder.
Note: Replace your
"url"withhttps://api.sonarqube.us/mcpif you're connecting to a SonarQube Cloud organization in the US region.
Optional headers include:
SONARQUBE_READ_ONLY: Boolean. Set to true to enable read-only mode (default) or false to allow write operations.
SONARQUBE_TOOLSETS: The embedded MCP server includes a default list of toolsets. A subset of this list can be defined:
analysis,coverage,dependency-risks,duplications,quality-gates,issues,measures,projects,rules,security-hotspots
The analysis toolset is only available with Sonar Vortex's agentic analysis features.
For more details about the tools in each toolset, see the SonarQube MCP Server Tools page.
Warning: Using the optional headers replaces the default configuration. For example, when you add
"SONARQUBE_TOOLSETS": "issues,projects", you won't load thesecurity-hotspotsandquality-gatestoolsets.
When you use the SonarQube MCP Server through SonarQube Cloud, you get a smaller, fixed set of tools compared to running the MCP Server yourself. This is by design and can't be changed:
Heavy analysis tools are disabled to protect the shared SonarQube Cloud infrastructure.
Context augmentation tools are not available because they require a local filesystem mount, which the hosted environment cannot provide. To use context augmentation tools, set up a local MCP Server using Stdio. The recommended methods are the SonarQube plugin or SonarQube CLI; see the Add context to generate better code page.
Rarely used, non-default tools are excluded to keep the MCP context small and focused.
For the complete list of tools supported by a self-hosted SonarQube MCP Server, see the Tools page.
Last updated
Was this helpful?
Was this helpful?
"sonarqube": {
"type": "http",
"url": "https://api.sonarcloud.io/mcp",
"headers": {
"Authorization": "Bearer <YourSonarQubeUserToken>",
"SONARQUBE_ORG": "<YourSonarQubeOrganization>"
// "SONARQUBE_READ_ONLY": "false" // Default value is true.
// "SONARQUBE_TOOLSETS": "<YourOptionalToolset>" // Using this optional header refines the default toolsets.
}
}
