SonarQube

SonarQube

Interact with SonarQube Cloud, Server and Community build over the web API. Analyze code to identify quality and security issues.

10K+

22 Tools

Packaged by
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

Tools

NameDescription
analyze_code_snippetAnalyze a file or code snippet with SonarQube analyzers to identify code quality and security issues. Specify the language of the snippet to improve analysis accuracy.
change_sonar_issue_statusChange the status of a Sonar issue. This tool can be used to change the status of an issue to "accept", "falsepositive" or to "reopen" an issue. An example request could be: I would like to accept the issue having the key "AX-HMISMFixnZED"
create_webhookCreate a new webhook for the SonarQube organization or project. Requires 'Administer' permission on the specified project, or global 'Administer' permission.
get_component_measuresGet SonarQube measures for a component (project, directory, file).
get_project_quality_gate_statusGet the Quality Gate Status for the SonarQube project. Either 'analysisId', 'projectId' or 'projectKey' must be provided.
get_raw_sourceGet source code as raw text from SonarQube. Require 'See Source Code' permission on file.
get_scm_infoGet SCM information of SonarQube source files. Require See Source Code permission on file's project
get_system_healthGet the health status of SonarQube Server instance. Returns GREEN (fully operational), YELLOW (usable but needs attention), or RED (not operational).
get_system_infoGet detailed information about SonarQube Server system configuration including JVM state, database, search indexes, and settings. Requires 'Administer' permissions.
get_system_logsGet SonarQube Server system logs in plain-text format. Requires system administration permission.
get_system_statusGet state information about SonarQube Server. Returns status (STARTING, UP, DOWN, RESTARTING, DB_MIGRATION_NEEDED, DB_MIGRATION_RUNNING), version, and id.
list_languagesList all programming languages supported in this SonarQube instance
list_portfoliosList enterprise portfolios available in SonarQube Cloud with filtering and pagination options.
list_quality_gatesList all quality gates in my SonarQube.
list_rule_repositoriesList rule repositories available in SonarQube.
list_webhooksList all webhooks for the SonarQube organization or project. Requires 'Administer' permission on the specified project, or global 'Administer' permission.
ping_systemPing the SonarQube Server system to check if it's alive. Returns 'pong' as plain text.
search_dependency_risksSearch for software composition analysis issues (dependency risks) of a SonarQube project, paired with releases that appear in the analyzed project, application, or portfolio.
search_metricsSearch for SonarQube metrics
search_my_sonarqube_projectsFind SonarQube projects. The response is paginated.
search_sonar_issues_in_projectsSearch for SonarQube issues in my organization's projects.
show_ruleShows detailed information about a SonarQube rule.

Manual installation

You can install the MCP server using:

Installation for

Related servers