Sonarqube MCP
io.github.lahma/sonarqube-mcp
v1.3.0Updated Nov 18, 2026stdio · NuGet
SonarQube Cloud over MCP: quality gates, issues, hotspots, measures, coverage and issue triage.
Install
Needs 1 secret. Replace 1 placeholder with your own values.
Run in your terminal. Replace 1 placeholder.
claude mcp add sonarqube-mcp -e 'SONARQUBE_TOKEN=<your-sonarqube-token>' -- dnx [email protected] --yesConfiguration
5 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.
SONARQUBE_TOKENEnv var· required· secretSonarQube Cloud user token, sent as a Bearer credential. Create one at https://sonarcloud.io/account/security and pick the User Token type - a project analysis token is not accepted by these endpoints. Without it the server still starts and reads public projects anonymously, but nothing private is reachable and no write tool works.SONARQUBE_ORGEnv var· optionalOrganization key - the last segment of https://sonarcloud.io/organizations/{key}. Only listProjects and getRule require it, and a public organization answers both anonymously, so it is optional; set it and every project in that organization becomes discoverable.SONARQUBE_URLEnv var· optionalBase URL of the SonarQube Cloud instance. Defaults to https://sonarcloud.io; the only other accepted host is https://sonarqube.us. SonarQube Server is out of scope and any other value is ignored.SONARQUBE_MCP_DEFAULT_PROJECTEnv var· optionalProject key used when a tool call omits projectKey. It is the id in a sonarcloud.io project URL, not the repository name. Setting it is worth it when this server is configured per checkout.SONARQUBE_MCP_READ_ONLYEnv var· optionalSet to 1 to register only the eighteen read tools. The five write tools - transitionIssue, assignIssue, addIssueComment, setHotspotStatus and bulkUpdateIssues - are then absent from tools/list rather than refused when called.
Links
Listed in the official MCP Registry since Nov 18, 2026. Mirrored daily; last checked Nov 26, 2026.