1. Conduid
  2. Developer Tools
  3. SonarQube
MCP server · Developer Tools

SonarQube

Official SonarQube MCP Server for code quality and security in AI agents

Unclaimed Custom license aidevtoolssonarqubeagentmcp-servermcp
79Good

Scored 6 hours ago · breakdown

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

From source
git clone https://github.com/SonarSource/sonarqube-mcp-server

Tools (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

1.27.2.52801.27.2.5280 · 23 Nov 2026SonarQube MCP Server v1.27.2 Bug Fixes Fixed `search_security_hotspots` failing with HTTP 400 on self-hosted SonarQube, including Community Build 26.11. Container Updates Updated the bundled Java runtime to Temurin `21.0.13.1+2` and…
1.33.0.52601.33.0.5260 · 20 Nov 2026SonarQube MCP Server v1.33.0 This release expands architecture support for agents, fixes several reliability and correctness issues, and improves startup performance. New Features Architecture coverage — Agents can now read numeric…
1.32.0.51181.32.0.5118 · 10 Nov 2026SonarQube MCP Server v1.32.0 This release expands Architecture support with new directives and findings tools, and several improvements to filtering, API migration, and snippet analysis. Features Architecture directives — Agents can now…
1.31.0.48911.31.0.4891 · 2 Nov 2026SonarQube MCP Server v1.31.0 This release introduces an opt-in architecture toolset, and fixes tool calls hanging indefinitely over HTTP. Features Architecture toolset — Added a new opt-in `architecture` toolset exposing `architecture_get`…
1.27.1.47701.27.1.4770 · 23 Oct 2026SonarQube MCP Server v1.27.1 This patch release delivers certificate trust improvements, and routine dependency updates. Bug Fixes Certificate trust and TLS consistency — Updated bundled runtimes (Node.js 24.22.1) and refreshed Java…

README

The repository's README runs to about 11K words, fetched 2 days ago. The original in the repository is authoritative.

Read full README
Questions

About SonarQube

How do I install SonarQube?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is SonarQube safe to use with an AI agent?

Its trust score is 79 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Conduid's scan of 338 source files found that it starts other programs (1 call), makes outbound network calls (53 calls) and writes or deletes files (6 calls). It has no ConduID identity yet, so agent calls to it are not receipted.

Is SonarQube still maintained?

Yes — the latest release is 1.27.2.5280 (23 Nov 2026), and the last commit was 10 hours ago. The repository has 697 stars and 18 open issues.

What tools does SonarQube provide?

Conduid read 51 tools from the source: analyze_code_snippet, analyze_file_list, architecture_get, architecture_set, change_security_hotspot_status, change_sonar_issue_status, check_dependency, create_webhook and 43 more.

What license is SonarQube released under?

The repository has a license file that does not match a standard license, so read its terms before using it in a product.