NeuralTrust has been recognized by Gartner → Read more

Connect SonarQube MCP to your AI agents, securely.

One secured endpoint for every SonarQube call your AI agents make, scoped per user, inspected, and logged.

Select the tools your AI agents can call

38 tools from the SonarQube MCP schema.

Showing 38 tools

  • analyze_code_snippetreadAnalyses a file or code snippet with SonarQube analyzers to identify code quality and security issues.
  • get_raw_sourcereadRetrieves the source of a file as analysed by SonarQube.
  • toggle_automatic_analysiswriteEnables or disables SonarQube for IDE automatic analysis.
  • analyze_file_listreadAnalyses a list of files in the working directory using a running SonarQube for IDE instance.
  • run_advanced_code_analysisreadRuns server-side advanced analysis on a single file to identify code quality and security issues.
  • search_sonar_issues_in_projectsreadSearches issues across projects: bugs, vulnerabilities and code smells, with filters for severity, status and new code period.
  • change_sonar_issue_statuswriteChanges the status of an issue, to accept it, mark it as a false positive or reopen it.
  • get_project_quality_gate_statusreadGets the quality gate status for a project, branch or pull request.
  • list_quality_gatesreadLists the quality gate definitions configured on the instance.
  • search_security_hotspotsreadSearches for Security Hotspots in a project, with filters for new code and assignment.
  • show_security_hotspotreadShows the details of a Security Hotspot, including its risk description.
  • change_security_hotspot_statuswriteReviews a Security Hotspot by changing its status.
  • get_component_measuresreadGets the measures for a component: a project, directory or file.
  • search_metricsreadLists the metrics available to query on this instance.
  • get_file_coverage_detailsreadGets line-by-line coverage for a file, including uncovered lines and partially covered branches.
  • search_files_by_coveragereadSearches for files in a project sorted by coverage, worst first.
  • list_branchesreadLists the analysed branches of a project with their quality gate and analysis date.
  • list_pull_requestsreadLists the pull requests available for PR-decorated analysis.
  • get_scm_inforeadGets SCM information for source files.
  • search_my_sonarqube_projectsreadFinds SonarQube projects by project name or key.
  • show_rulereadShows the definition and rationale of an analysis rule.
  • get_duplicationsreadGets the duplicated blocks detected in a component.
  • search_dependency_risksreadSearches the SCA dependency risks found in a project.
  • search_duplicated_filesreadSearches for files with code duplications in a project.
  • list_portfoliosreadLists enterprise portfolios in SonarQube Cloud, with filtering and pagination.
  • list_enterprisesreadLists the SonarQube Cloud enterprises you have access to.
  • create_webhookwriteCreates a new webhook for a project or organization.
  • list_webhooksreadLists the webhooks for a project or organization.
  • list_organizationsreadLists the SonarQube Cloud organizations the user is a member of.
  • start_agentic_readiness_assessmentwriteStarts an agentic readiness assessment for a project or branch.
  • get_agentic_readiness_assessmentreadRetrieves the result of an agentic readiness assessment, including the readiness level and a per-pillar breakdown.
  • list_agentic_readiness_assessmentsreadLists the agentic readiness assessments for a project, newest first.
  • get_system_inforeadGets detailed SonarQube Server system configuration, including JVM state, database, search indexes and settings.
  • get_system_healthreadGets the health status of the SonarQube Server instance.
  • ping_systemreadPings the SonarQube Server system to check that it is alive.
  • get_system_statusreadGets the status, version and ID of the SonarQube Server.
  • get_system_logsreadGets SonarQube Server system logs in plain text.
  • list_languagesreadLists the programming languages supported in the instance.

What SonarQube MCP exposes

SonarQube MCP groups its 38 tools into 10 categories, each with a suggested starting policy.

All 38 tools as JSON, ready to paste.

CategoryCoversAccessSuggested policy
AnalysisAnalysing a code snippet or file with SonarQube analyzers in the agent contextRead / WriteSnippets are sent to the analyzers; avoid pasting secrets
IssuesIssue search across projects, details, status transitions and assignmentRead / WriteAudit status transitions; they close findings
Quality GatesQuality gate status for a project, branch or pull request, and gate definitionsReadSafe to poll from pipelines
Security HotspotsHotspot search, details and status reviewRead / WriteHotspot review is a security judgement; keep a human in the loop
Coverage & MeasuresComponent measures, available metrics, under-covered files and line-by-line coverageReadAllow read-only reporting
ProjectsProject search, branches and pull requests available for analysisReadLimit to the projects in scope
Rules & DependenciesRule definitions, duplications and SCA dependency risksReadAllow read-only lookups
Organizations & WebhooksListing organizations, enterprises and portfolios, and listing and creating webhooksRead / WriteWebhook creation needs Administer permission; review target URLs
Agentic ReadinessStarting, listing and reading agentic readiness assessments for a projectRead / WriteLow risk; assessments run on SonarQube
SystemSonarQube Server health, status, ping, system information, logs and supported languagesReadSystem info and logs need admin rights; limit to operators

Connect SonarQube MCP to your AI agent

Four steps, under ten minutes.

  1. 01

    Sign in to NeuralTrust

    Open the NeuralTrust platform, sign in and go to Getting started, then Connect your tools.

    Sign in to NeuralTrust
  2. 02

    Choose your agent

    When asked which agent you use, pick Claude Code, Codex, Cursor, Windsurf, Copilot or your own code.

    Choose your agent
  3. 03

    Connect SonarQube

    Find SonarQube in the tool list and connect it.

    Connect SonarQube
  4. 04

    Connect your agent

    Follow the steps on screen to add the config to your agent, then send the test prompt.

    Connect your agent

Permissions down to the single tool

You do not allow SonarQube MCP or block it. You allow the exact tools each agent can call, one by one.

SonarQube MCP38 TOOLS AVAILABLE
Code review agent4 tools, read only
Issue triage bot9 tools
Platform team assistantall 38 tools
  • Tool by toolConnecting the server is not the unit of access. Each tool is granted on its own.
  • Default denyA tool you have not enabled is never exposed to the agent.
  • Approval on writesTools that change or delete things can require a human to confirm.

Is SonarQube MCP secure?

One endpoint instead of raw credentials. Every call is checked against policy and logged.

AI agentsConnect through your MCP client configuration.NeuralTrustApply controls based on your configuration.SonarQube MCP38 documented tools.
Coding assistantsConnection & credentialsper userSystem6 tools
Internal copilotsTool access policiesdeny by defaultAnalysis5 tools
Workflow automationsRequest & response inspectioninlineOrganizations & Webhooks5 tools
Compatible MCP clientsActivity monitoringalerts and logsAll other tools22 tools
FAQ

Common questions about running SonarQube MCP through TrustGate.

Connect SonarQube MCP instantly

Pick the tools, point your agent at TrustGate, and SonarQube MCP is live: scoped, inspected, logged.