talira

SonarQube

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

View all 22 problems

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

Hosted by Sonar

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

Pricing

SonarQube Server

You run it, under a commercial licence

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

Pricing

SonarQube Community Build

You run it, LGPL-3.0-or-later

free678910

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

Self-hosting docs

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has an MCP serverplan not known
Has single sign-onSonarQube Cloud: Enterprise plan, priced by sales; SonarQube Server: every plan, priced by sales; SonarQube Community Build13511
Sends webhooksplan not known

Alternatives

The same job

These do what SonarQube does.

  1. Bearer CLI Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks
  2. Snyk Find, fix and prevent vulnerabilities in code, open source dependencies, container images and cloud configurations
  3. Semgrep Code security: SAST, supply chain and secrets scanning with rules that look like code
  4. Qlty Universal linting, auto-formatting, maintainability, and security scanning
  5. DeepSource AI code review platform that combines static analysis with AI review agents
  6. CodeQL GitHub's semantic code analysis engine for finding vulnerabilities

Compare SonarQube with the top 3