Official

Sonarqube MCP Server

SonarQube code quality data and security analysis within your AI agent.

Data last scanned yesterday · Reviewed 3 weeks ago

6648 tools621JavaNOASSERTION

Overview

This server integrates SonarQube Server or SonarQube Cloud data directly into your development workflow. It allows AI agents to pull quality gate status and analysis findings, facilitating a tighter feedback loop between your codebase and your security scanning tools. It also supports analyzing code snippets directly inside the assistant's context.

Our verdict

This server carries a high-risk score of 48/100, primarily because it is community-maintained rather than official vendor software and lacks an editorially reviewed security audit for its authentication mechanisms and read-only operations. Users should exercise caution by strictly following the provided security guidelines, such as using environment variables to handle tokens rather than hardcoding them, to prevent potential exposure of sensitive credentials.

  • Zero direct dependencies reduce potential supply-chain vulnerabilities.
  • Active development with commits made within the last 24 hours.
  • Provides a dedicated configuration generator tool for rapid setup.
  • Supports both local SonarQube Server and SonarQube Cloud environments.
  • License is currently set to NOASSERTION.
  • Authentication methods have not undergone a formal security review.
  • Operates as community-maintained code rather than an official product.

Tools

ToolDescriptionRisk
analyze_code_snippetAnalyze file content with SonarQube analyzers to identify code quality and security issues.low
analyze_file_listAnalyze files in the current working directory using SonarQube for IDE.low
toggle_automatic_analysisEnable or disable SonarQube for IDE automatic analysis.medium
run_advanced_code_analysisRun Vortex analysis on SonarQube Cloud for a single file.low
search_files_by_coverageSearch for files in a project sorted by coverage.low
get_file_coverage_detailsGet line-by-line coverage information for a specific file.low
search_dependency_risksSearch for software composition analysis issues of a SonarQube project.low
list_enterprisesList the enterprises available in SonarQube Cloud that you have access to.low
change_sonar_issue_statusChange the status of a SonarQube issue to accept, falsepositive or to reopen an issue.medium
search_sonar_issues_in_projectsSearch for SonarQube issues in my organization's projects.low

Compatibility

ClientLocalDockerRemoteRead-only
ChatGPT
Claude Desktop
Cursor
VS Code
Windsurf

Frequently asked questions

What is the recommended way to generate a configuration for this server?

The fastest way to get started is to use the SonarQube MCP Server Configuration Generator, which is an interactive tool that produces a ready-to-use configuration for your preferred AI agent client.

How should I handle my SonarQube token to ensure security?

You should avoid hardcoding your token in command-line arguments to prevent it from being saved in shell history. Instead, use environment variables for tokens and ensure they are never committed to version control.

Which container runtimes are compatible with the SonarQube MCP server?

The server is distributed as a container image and is compatible with any OCI-compliant container runtime, such as Docker, Podman, or nerdctl.

How do I connect the server to SonarQube Cloud US?

You must set the SONARQUBE_URL environment variable to https://sonarqube.us and ensure this variable is passed through the container arguments.

Can I pin the server to a specific version?

Yes, you can replace the latest image tag with a specific version tag, such as sonarsource/sonarqube-mcp:1.19.0.2785, for reproducible deployments.

Changelog

Badge

Sonarqube MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.