
Description
The SonarQube MCP Server is the official Model Context Protocol server from SonarSource for code quality and security. It connects an AI agent to SonarQube Server or SonarQube Cloud, so the agent can look up quality and security information, and it can analyze a code snippet directly within the agent's context. The README has a quick setup section and a configuration generator, an interactive tool that produces a ready configuration for your chosen agent client. For manual setup, the simplest route is the container image sonarsource/sonarqube-mcp, which can be pinned to a version tag for reproducible deployments or pulled automatically. Some releases are tagged with the SonarQube Server version they match. The README says that any OCI-compatible container runtime works, such as Podman or nerdctl. It also includes guidance on the sensitive token used to connect, saying to keep it in environment variables rather than command-line arguments, which end up in shell history, and never to commit it to version control. Instructions for specific agent clients are included, such as the Antigravity MCP Store, where you provide a user token and an organization key for SonarQube Cloud or the URL for SonarQube Server. It is aimed at developers who want their AI agent to check code against their SonarQube analysis.…
Highlights
- Connects agents to SonarQube Server or SonarQube Cloud
- Analyzes code snippets in the agent context
- Configuration generator for agent clients
- Official container image with version tags
- Guidance on protecting the SonarQube token
Ratings & Reviews
No ratings yet
Be the first to rate SonarQube.
People also visit

codescene-mcp-server
The CodeScene MCP Server exposes CodeScene’s Code Health analysis as local
SonarQube FAQ
What does the SonarQube MCP Server do?
It connects an AI agent to SonarQube Server or Cloud for code quality and security, and it can analyze code snippets.
How do I set it up?
Use the configuration generator in the README for your agent client, or set it up manually with the sonarsource/sonarqube-mcp container image.
Which container runtime do I need?
Any OCI-compatible runtime, such as Docker, Podman or nerdctl, according to the README.
How should I store my token?
The README says to keep it in an environment variable, avoid it in command-line arguments, and never commit it to version control.
Does it work with SonarQube Cloud US?
The README says to set the URL to https://sonarqube.us for SonarQube Cloud US in the Antigravity setup.
Is it open source?
Yes. The source is on GitHub under the SonarSource organization.
What are the best SonarQube alternatives?
Popular alternatives to SonarQube include TokenSave, codehealth-mcp and java-mcp-server-generator. See all SonarQube alternatives

















