MCP directory
SM

Sonarqube Mcp

by github.com/lahma · v1.3.0 · updated Nov 18, 2026

SonarQube Cloud over MCP: quality gates, issues, hotspots, measures, coverage and issue triage.

NuGet

Run it locally

Install the package and point your AI client at it.

NuGet

dnx mcp-sonarqube --yes

Environment variables

  • SONARQUBE_TOKENrequiredsecret

    SonarQube 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 r...

  • SONARQUBE_ORG

    Organization 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_URL

    Base 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_PROJECT

    Project 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_ONLY

    Set 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.

More from github.com/lahma

More MCP servers