Interact with SonarQube Cloud, Server and Community build over the web API. Analyze code to identify quality and security issues.
10K+
22 Tools
Version 4.43 or later needs to be installed to add the server automatically
Tools
Name | Description |
---|---|
analyze_code_snippet | Analyze 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_status | Change 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_webhook | Create a new webhook for the SonarQube organization or project. Requires 'Administer' permission on the specified project, or global 'Administer' permission. |
get_component_measures | Get SonarQube measures for a component (project, directory, file). |
get_project_quality_gate_status | Get the Quality Gate Status for the SonarQube project. Either 'analysisId', 'projectId' or 'projectKey' must be provided. |
get_raw_source | Get source code as raw text from SonarQube. Require 'See Source Code' permission on file. |
get_scm_info | Get SCM information of SonarQube source files. Require See Source Code permission on file's project |
get_system_health | Get the health status of SonarQube Server instance. Returns GREEN (fully operational), YELLOW (usable but needs attention), or RED (not operational). |
get_system_info | Get detailed information about SonarQube Server system configuration including JVM state, database, search indexes, and settings. Requires 'Administer' permissions. |
get_system_logs | Get SonarQube Server system logs in plain-text format. Requires system administration permission. |
get_system_status | Get state information about SonarQube Server. Returns status (STARTING, UP, DOWN, RESTARTING, DB_MIGRATION_NEEDED, DB_MIGRATION_RUNNING), version, and id. |
list_languages | List all programming languages supported in this SonarQube instance |
list_portfolios | List enterprise portfolios available in SonarQube Cloud with filtering and pagination options. |
list_quality_gates | List all quality gates in my SonarQube. |
list_rule_repositories | List rule repositories available in SonarQube. |
list_webhooks | List all webhooks for the SonarQube organization or project. Requires 'Administer' permission on the specified project, or global 'Administer' permission. |
ping_system | Ping the SonarQube Server system to check if it's alive. Returns 'pong' as plain text. |
search_dependency_risks | Search for software composition analysis issues (dependency risks) of a SonarQube project, paired with releases that appear in the analyzed project, application, or portfolio. |
search_metrics | Search for SonarQube metrics |
search_my_sonarqube_projects | Find SonarQube projects. The response is paginated. |
search_sonar_issues_in_projects | Search for SonarQube issues in my organization's projects. |
show_rule | Shows detailed information about a SonarQube rule. |
Manual installation
You can install the MCP server using:
Installation for