SonarQube MCP Server
Analyze code quality and security with SonarQube Server or Cloud directly in AI assistants.
SonarQube MCP Server scores 28 (Limited), licensed Other and written in Java. It installs as a local process. It declares 40 tools. Filed under Developer tools. GitHub shows 697 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
28 of 100 from six public signals. Nobody can buy a point.
- License present: other.
License, quality and maintenance
Quality: Grade B
70/100 for listing completeness. Lost points: no README, 1 of 40 tools barely described, short summary.
How quality is graded
Where the 28 comes from
0 + 6 + 9 + 6 + 4 + 3 = 28. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 9 of 20 points.A clear, OSI-style open-source license.
License: 6 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 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": { "sonarsource-sonarqube-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "docker.io/sonarsource/sonarqube-mcp" ], "env": { "SONARQUBE_TOKEN": "YOUR_SONARQUBE_TOKEN", "SONARQUBE_ORG": "YOUR_SONARQUBE_ORG", "SONARQUBE_URL": "YOUR_SONARQUBE_URL" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
SONARQUBE_TOKENSecret | Required | Your SonarQube USER token |
SONARQUBE_ORGSecret | Optional | Your SonarQube Cloud organization key (if using SonarQube Cloud) |
SONARQUBE_URLSecret | Optional | Your SonarQube Server URL (if using SonarQube Server) |
Tools40Tool docs quality grade C
All capabilitiesAnalyze file content with SonarQube analyzers to identify code quality and security issues. Always analyzes the complete file content for accuracy. Optionally filter results to a specific code snippet.
Analyze files in the current working directory using SonarQube for IDE. This tool connects to a running SonarQube for IDE instance to perform code quality analysis on a list of files.
Review a Security Hotspot by changing its status. When marking as REVIEWED, you must specify a resolution (FIXED, SAFE, or ACKNOWLEDGED).
Change the status of a SonarQube issue to "accept", "falsepositive" or to "reopen" an issue.
codeSnippettoolCode snippet to filter issues (must match content in fileContent) - String
enterpriseIdtoolEnterprise uuid. Can be omitted only if 'favorite' parameter is supplied with value true - String
enterpriseKeytoolOptional enterprise key to filter results - String
fileContenttoolComplete file content as a string. Required when workspace is not mounted - String
filePathtoolProject-relative path of the file to analyze (e.g., src/main/java/MyClass.java). Used when the workspace is mounted at /app/mcp-workspace - String
fileScopetoolDefines in which scope the file originates from: 'MAIN' or 'TEST' (default: MAIN) - String
List of absolute file paths to analyze - Required String[]
Get SonarQube measures for a component (project, directory, file).
About
Interact with SonarQube Cloud, Server and Community build over the web API. Analyze code to identify quality and security issues.
Frequently asked questions
What is SonarQube MCP Server?
Analyze code quality and security with SonarQube Server or Cloud directly in AI assistants.
How do I install SonarQube 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 Server runs locally from the Docker image docker.io/sonarsource/sonarqube-mcp with the command docker run -i --rm docker.io/sonarsource/sonarqube-mcp.
Is SonarQube MCP Server free and open source?
SonarQube MCP Server is released under the Other license, which is not on MCPpedia's list of OSI-approved open-source licenses. Read the license terms before using it, especially commercially.
Does SonarQube MCP Server support remote (HTTP) connections?
No remote endpoint is listed for SonarQube MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does SonarQube MCP Server provide?
SonarQube MCP Server provides 40 tools, including analyze_code_snippet, analyze_file_list, change_security_hotspot_status, and change_sonar_issue_status. See the full tool list for descriptions and parameters.
How is SonarQube MCP Server's trust score calculated?
SonarQube MCP Server scores 28 out of 100 (Limited). 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.