sonarqube-mcp
v1.5.0SonarQube Cloud over MCP: quality gates, issues, hotspots, measures, coverage and issue triage.
Not smoke-tested: nuget packages are not smoke-tested yet.
Values you need
| Variable | What it is | |
|---|---|---|
SONARQUBE_TOKEN | required secret | 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 | optional | 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 | optional | 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 | optional | 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 | optional | Set to 1 to register only the twenty read tools. The five write tools - transitionIssue, assignIssue, addIssueComment, setHotspotStatus and bulkUpdateIssues - are then absent from tools/list rather than refused when called. |
No installable package or endpoint was found. See the README for build-from-source steps.
For AI agents
- Ask the user for: SONARQUBE_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- If it fails, check that the required runtime is installed (none) and that the values above are set.
Machine-readable: install.md · manifest.json