About SonarQube
SonarQube is an MCP server published by SonarSource in the Developer Tools category: official SonarQube MCP Server for code quality and security in AI agents. Conduid read 51 tools from its source: analyze_code_snippet, analyze_file_list, architecture_get, architecture_set, change_security_hotspot_status, change_sonar_issue_status and 45 more. No package is published for it, so it installs from a source checkout.
The repository has 697 stars and 105 forks, and its last commit was on 2 Dec 2026. The latest release is 1.27.2.5280 (23 Nov 2026): SonarQube MCP Server v1.27.2 Bug Fixes Fixed search_security_hotspots failing with HTTP 400 on self-hosted SonarQube, including Community Build 26.11. It follows 1.33.0.5260 (20 Nov 2026), and the 5 most recent releases go back to 1.27.1.4770 (23 Oct 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include devtools and sonarqube.
Install
git clone https://github.com/SonarSource/sonarqube-mcp-serverTools (51)
analyze_code_snippetAnalyze 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_file_listAnalyze 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.architecture_getRead current dependencies, intended architecture, project directives, findings, or per-language finding counts and coverage when supported.architecture_setReplace the whole intended architecture or create, update and delete project directives. Available on supported Cloud and Server builds when writes are enabled.change_security_hotspot_statusReview a Security Hotspot by changing its status. When marking as REVIEWED, you must specify a resolution (FIXED, SAFE, or ACKNOWLEDGED).change_sonar_issue_statusChange the status of a SonarQube issue to "accept", "falsepositive" or to "reopen" an issue.check_dependencyCheck a third-party dependency for security vulnerabilities, supply-chain malware, and license compliance before adding or updating it.create_webhookCreate a new webhook for the SonarQube organization or project. Requires 'Administer' permission on the specified project, or global 'Administer' permission.get_agentic_readiness_assessmentRetrieve the result of an assessment. Re-call with the same `assessmentId` until status is `COMPLETED`, `FAILED`, or `INTERRUPTED`. When completed, returns the overall level and a per-pillar breakdown with recommended actions and evidence.get_component_measuresGet SonarQube measures for a component (project, directory, file).get_current_architectureGet a hierarchical architecture graph filtered by path prefix and depth. Useful for exploring module structure and high-level dependencies.get_downstream_call_flowTrace what functions a given function calls. Useful for impact analysis and understanding execution flow.get_duplicationsGet duplications for a file. Require Browse permission on file's project.get_file_coverage_detailsGet line-by-line coverage information for a specific file, including which exact lines are uncovered and which have partially covered branches. This tool helps identify precisely where to add test coverage. Use after identifying files with low coverage via search_files_by_coverage.get_guidelinesGet coding guidelines based on SonarQube project issues, catalog categories, or a combination of both.get_intended_architectureGet user-defined architectural constraints specifying which modules are allowed to depend on others.get_project_quality_gate_statusGet the Quality Gate Status for the SonarQube project.get_raw_sourceGet source code as raw text from SonarQube. Require 'See Source Code' permission on file.get_referencesGet direct inbound and outbound code references for a class or module. Returns only direct (non-transitive) references.get_scm_infoGet SCM information of SonarQube source files. Require See Source Code permission on file's project.get_source_codeGet complete source code (signature and body) for a code element by its fully qualified name.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.get_type_hierarchyGet the full inheritance hierarchy for a class-like structure (class, interface, enum, record, exception, struct). Essential for understanding inheritance trees and refactoring.get_upstream_call_flowTrace what functions call a given function. Useful for finding all callers and entry points, and understanding what breaks if a signature changes.list_agentic_readiness_assessmentsList all assessments for a project, newest first. Use `get_agentic_readiness_assessment` for full pillar-level results.list_branchesList analyzed branches for a project.list_enterprisesList the enterprises available in SonarQube Cloud that you have access to. Use this tool to discover enterprise IDs that can be used with other tools.list_languagesList all programming languages supported in this SonarQube instance.list_organizationsList SonarQube Cloud organizations that a user is a member of, including keys, names, IDs, and UUIDs. Use a returned key as `organization` on subsequent tools.list_portfoliosList enterprise portfolios available in SonarQube with filtering and pagination options.list_pull_requestsList all pull requests for a project. Use this tool to discover pull requests for PR-decorated analysis (coverage, issues, quality gate). Returns the pull request key/ID which can be used with other tools. For branch-based analysis without pull requests, use `list_branches` instead.list_quality_gatesList all quality gates in my 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.run_advanced_code_analysisRun Vortex analysis on a single file. SonarQube Server uses the nil UUID placeholder.search_by_body_patternsFind code elements by their implementation body using regex patterns. Useful for locating where APIs or patterns are actually used.search_by_signature_patternsFind code elements (classes, methods, interfaces, ...) by their declaration signatures using regex patterns.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_duplicated_filesSearch for files with code duplications in a SonarQube project. By default, automatically fetches all duplicated files across all pages (up to 10,000 files max). Returns only files with duplications.search_files_by_coverageSearch for files in a project sorted by coverage (ascending - worst coverage first). This tool helps identify files that need test coverage improvements.search_metricsSearch for SonarQube metrics.search_my_sonarqube_projectsFind SonarQube projects. The response is paginated.search_security_hotspotsSearch for Security Hotspots in a SonarQube project.search_sonar_issues_in_projectsSearch for SonarQube issues in my organization's projects.show_ruleShows detailed information about a SonarQube rule.show_security_hotspotGet detailed information about a specific Security Hotspot, including rule details, code context, flows, and comments.start_agentic_readiness_assessmentStart an agentic readiness assessment for a project. Returns immediately with status `PENDING` and an `assessmentId`. Use `get_agentic_readiness_assessment` to poll for results.toggle_automatic_analysisEnable or disable SonarQube for IDE automatic analysis. When enabled, SonarQube for IDE will automatically analyze files as they are modified in the working directory. When disabled, automatic analysis is turned off.Security checks
- ✓README presentThe repository's README runs to about 11K words.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 338 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 1 callsrc/main/java/org/sonarsource/sonarqube/mcp/client/ManagedStdioClientTransport.java:120
- Outbound network calls
- 53 callssrc/main/java/org/sonarsource/sonarqube/mcp/analytics/AnalyticsClient.java:25, src/main/java/org/sonarsource/sonarqube/mcp/analytics/AnalyticsClient.java:42, src/main/java/org/sonarsource/sonarqube/mcp/analytics/AnalyticsClient.java:45
- Writes or deletes files
- 6 callssrc/main/java/org/sonarsource/sonarqube/mcp/plugins/PluginsSynchronizer.java:64, src/main/java/org/sonarsource/sonarqube/mcp/plugins/PluginsSynchronizer.java:112, src/main/java/org/sonarsource/sonarqube/mcp/plugins/PluginsSynchronizer.java:148
- Lockfile
- None in the repository
Pattern matches on the source text of 338 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 11K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README