Basic information
About SonarQube MCP Server
Official SonarQube MCP Server for code quality and security in AI agents
SonarQube is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by SonarSource. Supported transport: stdio. Runtime: java. The repository has 591 GitHub stars. Source code is hosted on github.com. Related topics: agent, ai, application-security, clean-code, code-quality.
Setup
{
"mcpServers": {
"sonarqube": {
"command": "docker",
"args": [
"run",
"--init",
"--pull=always",
"-i",
"--rm",
"-e",
"SONARQUBE_TOKEN",
"-e",
"SONARQUBE_URL",
"-e",
"SONARQUBE_ORG",
"sonarsource/sonarqube-mcp"
],
"env": {
"SONARQUBE_TOKEN": "<token>",
"SONARQUBE_URL": "<url>",
"SONARQUBE_ORG": "<org>"
}
}
}
}
{
"mcpServers": {
"sonarqube": {
"command": "docker",
"args": [
"run",
"--init",
"--pull=always",
"-i",
"--rm",
"-e",
"SONARQUBE_TOKEN",
"-e",
"SONARQUBE_URL",
"-e",
"SONARQUBE_ORG",
"sonarsource/sonarqube-mcp"
],
"env": {
"SONARQUBE_TOKEN": "<token>",
"SONARQUBE_URL": "<url>",
"SONARQUBE_ORG": "<org>"
}
}
}
}
{
"servers": {
"sonarqube": {
"command": "docker",
"args": [
"run",
"--init",
"--pull=always",
"-i",
"--rm",
"-e",
"SONARQUBE_TOKEN",
"-e",
"SONARQUBE_URL",
"-e",
"SONARQUBE_ORG",
"sonarsource/sonarqube-mcp"
],
"env": {
"SONARQUBE_TOKEN": "<token>",
"SONARQUBE_URL": "<url>",
"SONARQUBE_ORG": "<org>"
}
}
}
}
SonarQube MCP Server — by SonarSource config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"sonarqube": {
"command": "docker",
"args": [
"run",
"--init",
"--pull=always",
"-i",
"--rm",
"-e",
"SONARQUBE_TOKEN",
"-e",
"SONARQUBE_URL",
"-e",
"SONARQUBE_ORG",
"sonarsource/sonarqube-mcp"
],
"env": {
"SONARQUBE_TOKEN": "<token>",
"SONARQUBE_URL": "<url>",
"SONARQUBE_ORG": "<org>"
}
}
}
}
SonarQube MCP Server — by SonarSource tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is SonarQube?
The SonarQube MCP Server is a Model Context Protocol (MCP) server that enables seamless integration with SonarQube Server or Cloud for code quality and security. It also supports the analysis of code snippets directly within the agent context.
How to use SonarQube?
Use the SonarQube MCP Server Configuration Generator at mcp.sonarqube.com/config-generator.html or manually configure your AI agent client with the Docker image sonarsource/sonarqube-mcp. Set environment variables for authentication: SONARQUBE_TOKEN is required; for SonarQube Cloud add SONARQUBE_ORG, for SonarQube Server add SONARQUBE_URL. Configuration examples are provided for Antigravity, Claude Code, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, GitHub Copilot coding agent, and Kiro.
Key features of SonarQube
- Integrates with SonarQube Server or Cloud.
- Analyzes code snippets within the agent context.
- Provides code quality and
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In