Code confidence for the agentic software factory
open coreLGPL-3.0-or-laterself-hostablefreeMCP
SonarQube by Sonar (SonarSource) analyses source code for bugs, maintainability problems, security vulnerabilities and leaked secrets across more than 45 languages and infrastructure-as-code formats, and blocks merges with quality gates in pull requests and CI. It comes as SonarQube Cloud (formerly SonarCloud), a hosted service priced by lines of code with a free tier; SonarQube Server, the self-managed Developer, Enterprise and Data Center editions sold per instance by lines of code; and the free, LGPL-licensed SonarQube Community Build (formerly Community Edition). The SonarQube for IDE extension, a CLI and an MCP server bring the same checks to editors and AI coding agents.
Problems it solves
- catch bugs and code smells in pull requests before they get merged
- block a merge automatically when new code has too little test coverage or new vulnerabilities
- scan our code for SQL injection and other security flaws as part of CI
- stop developers committing API keys and passwords to the repository
- measure technical debt across dozens of repositories and see which projects are getting worse
- check our Terraform, CloudFormation and Kubernetes files for security misconfigurations
- review the code our AI assistants write for bugs and security issues before it ships
- show code quality and security problems in the editor while developers type
- get suggested fixes for the code issues static analysis finds
- enforce the same coding rules across Java, C#, Python, JavaScript and Go projects
- run a free self-hosted static analysis server on our own machine with Docker
- free code quality analysis for our open source project on GitHub
- comment on GitHub, GitLab, Bitbucket or Azure DevOps pull requests with code analysis results
- produce OWASP and PCI DSS compliance reports from our code scans for auditors
- check C and C++ code against MISRA rules
- find vulnerable open source dependencies and generate an SBOM along with code scanning
- analyse legacy COBOL, PL/I and RPG code for quality problems
- give our coding agent a way to check its changes against our code quality rules
- a hosted code analysis service priced by lines of code rather than per developer
- our code must never leave our network, so code analysis has to run on our own servers
- IT requires everyone to sign in to our code quality tool with SAML through Okta or Entra ID
- detect architecture drift when code stops following our intended module structure
Features
- bug, code smell and maintainability analysis for more than 45 languages and frameworks
- quality gates that pass or fail pull requests and branches
- SAST, taint analysis and secrets detection
- IaC scanning for Terraform, CloudFormation, Kubernetes, ARM and Ansible
- AI CodeFix suggested fixes in the IDE and pull requests
- pull request decoration for GitHub, GitLab, Bitbucket and Azure DevOps
- SonarQube for IDE for VS Code, Visual Studio, JetBrains IDEs and Eclipse
- Advanced Security add-on: SCA, licence checks and SBOMs
- portfolio dashboards and OWASP, PCI DSS and regulatory reports (Enterprise)
- MISRA C++:2023 rules (Enterprise)
View 6 more
- agentic add-ons: Sonar Vortex, Remediation Agent and Hunter Agent
- SonarQube MCP Server and SonarQube CLI for AI coding agents
- Web API for Cloud and Server
- SonarQube Cloud hosted in the EU (Frankfurt) or the US (Virginia)
- free Community Build under the LGPL, run with Docker
- SAML SSO on SonarQube Server and Community Build; SAML or OIDC SSO and SCIM on SonarQube Cloud Enterprise
Ways to run it
SonarQube Cloud
free for private projects up to 50k LOC and for OSS maintainers; Team starts at $34 a month (up to 100k LOC); Enterprise by quote123
Only in this edition
- hosting in the EU (Frankfurt) or the US (Northern Virginia)
- SAML or OIDC SSO and SCIM on Enterprise
SonarQube Server
Developer, Enterprise and Data Center editions priced per instance per year by lines of code; contact sales45
Only in this edition
- AI CodeFix
- taint analysis and stronger secrets detection
- C, C++, Swift and other commercial languages
- SCIM provisioning with Okta and Entra ID from Enterprise Edition
- portfolio and compliance reports on Enterprise
- commercial support
You arrange
- a licence key priced by lines of code
- a server or container host
- a PostgreSQL, SQL Server or Oracle database
- TLS, backups and upgrades
SonarQube Community Build
Not included
- AI CodeFix, AI Code Assurance and compliance reporting6
- the stronger secrets detection and SAST with taint analysis of SonarQube Server6
- C, C++, Dart/Flutter, Swift, T-SQL and PL/SQL analysis6
- Advanced Security (SCA, SBOM, advanced SAST)6
- high availability, autoscaling and commercial support6
You arrange
- a host with at least 4 GB RAM (8 GB recommended) and 2 CPU cores
- Docker (the sonarqube image) or Java 21 or 25 for the ZIP install
- a PostgreSQL, SQL Server or Oracle database for production: the embedded H2 database is for tests only
- TLS, backups and upgrades
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Has single sign-on | SonarQube Cloud: Enterprise plan, priced by sales; SonarQube Server: every plan, priced by sales; SonarQube Community Build13511 |
| Sends webhooks | plan not known |
Alternatives
The same job
These do what SonarQube does.
- Bearer CLI Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks
- Snyk Find, fix and prevent vulnerabilities in code, open source dependencies, container images and cloud configurations
- Semgrep Code security: SAST, supply chain and secrets scanning with rules that look like code
- Qlty Universal linting, auto-formatting, maintainability, and security scanning
- DeepSource AI code review platform that combines static analysis with AI review agents
- CodeQL GitHub's semantic code analysis engine for finding vulnerabilities
