sonarqube-mcp MCP Server
SonarQube Cloud over MCP: quality gates, issues, hotspots, measures, coverage and issue triage.
sonarqube-mcp scores 65 (Good), licensed MIT and written in C#. It installs as a local process. It declares 23 tools. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
65 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no README, short summary, no docs link.
How quality is graded
Where the 65 comes from
22 + 20 + 0 + 10 + 10 + 3 = 65. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "lahma-sonarqube-mcp": { "command": "dnx", "args": [ "mcp-sonarqube" ], "env": { "SONARQUBE_TOKEN": "YOUR_SONARQUBE_TOKEN", "SONARQUBE_ORG": "", "SONARQUBE_URL": "", "SONARQUBE_MCP_DEFAULT_PROJECT": "", "SONARQUBE_MCP_READ_ONLY": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
SONARQUBE_TOKENSecret | Required | 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 reachable and no write tool works. |
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. |
Tools23Tool docs quality grade B
All capabilitiesaddIssueCommenttoolPosts a comment on an issue. Two calls make two comments.
assignIssuetoolAssigns an issue to a login, or clears the assignee. me assigns to the token's own account.
bulkUpdateIssuestoolApplies one transition, assignment and/or comment to up to 500 issues at once. SonarQube answers with counts and names no issue, so an illegal transition comes back as ignored.
What SonarQube is doing with the project right now: analyses queued or running, and the last one that finished, each with the branch or pull request it was for and any error. Call it after a CI build — a green scanner step only means the re
Reads named metrics for a project, directory or file. missingMetrics says what was not measured, newCodeValue carries the new-code number, and ratings come back as A–E.
getFileCoveragetoolOne file's per-line coverage: the lines tests never executed, the partially covered ones, the new-code lines and the duplicated ones. The source text is deliberately not returned.
getHotspottoolOne hotspot in full: the risk, what an attacker could do, how to make it safe, the review history, and canChangeStatus.
getIssuetoolOne issue in full: comments, the secondary locations that explain a data-flow finding, and availableTransitions — what transitionIssue will accept for it. Pass the projectKey and the same scope the search used.
One issue's history: who changed its status, resolution or assignee, when, and from what. Read it before re-deciding something a reviewer already decided.
One time series per metric over the analysis history: whether something is getting better or worse, rather than what it is now.
Reads the gate verdict for a project, branch or pull request. failingConditions is the pre-filtered list of what is actually wrong, with thresholds and measured values.
getRuletoolExplains one rule: what it flags, why it matters and how to fix it, with the HTML converted to text and code fenced. Call it once per rule, not once per issue; pass an issue's ruleContext as context to get only that framework's fix.
About
SonarQube Cloud over MCP: quality gates, issues, hotspots, measures, coverage and issue triage.
Frequently asked questions
What is sonarqube-mcp MCP Server?
SonarQube Cloud over MCP: quality gates, issues, hotspots, measures, coverage and issue triage.
How do I install sonarqube-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. sonarqube-mcp MCP Server runs locally from the NuGet package mcp-sonarqube with the command dnx mcp-sonarqube.
Is sonarqube-mcp MCP Server free and open source?
Yes. sonarqube-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does sonarqube-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for sonarqube-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does sonarqube-mcp MCP Server provide?
sonarqube-mcp MCP Server provides 23 tools, including addIssueComment, assignIssue, bulkUpdateIssues, and getAnalysisStatus. See the full tool list for descriptions and parameters.
How is sonarqube-mcp MCP Server's trust score calculated?
sonarqube-mcp MCP Server scores 65 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.